Optionally clone block behind work-package.

This commit is contained in:
Gav Wood
2016-06-30 12:56:58 +02:00
parent 5665083e20
commit 9c07e5c355
6 changed files with 48 additions and 3 deletions

View File

@@ -52,6 +52,7 @@ fn sync_provider() -> Arc<TestSyncProvider> {
fn miner_service(spec: Spec, accounts: Arc<AccountProvider>) -> Arc<Miner> {
Miner::new(
MinerOptions {
new_work_notify: vec![],
force_sealing: true,
reseal_on_external_tx: true,
reseal_on_own_tx: true,
@@ -60,7 +61,7 @@ fn miner_service(spec: Spec, accounts: Arc<AccountProvider>) -> Arc<Miner> {
pending_set: PendingSet::SealingOrElseQueue,
reseal_min_period: Duration::from_secs(0),
work_queue_size: 50,
new_work_notify: vec![],
enable_resubmission: true,
},
spec,
Some(accounts)