Skip to content

Commit 85410b7

Browse files
authored
add authoring_duration to basic collator (#82)
1 parent 27a2699 commit 85410b7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

client/consensus/nimbus-consensus/src/collators/basic.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ pub struct Params<Proposer, BI, ParaClient, RClient, CIDP, CS, ADP = ()> {
6565
/// The collator service used for bundling proposals into collations and announcing
6666
/// to the network.
6767
pub collator_service: CS,
68+
/// The amount of time to spend authoring each block.
69+
pub authoring_duration: Duration,
6870
}
6971

7072
/// Run bare Nimbus consensus as a relay-chain-driven collator.

template/node/src/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ fn start_consensus(
410410
max_pov_percentage,
411411
additional_digests_provider: (),
412412
collator_key,
413-
//authoring_duration: Duration::from_millis(500),
413+
authoring_duration: Duration::from_millis(500),
414414
};
415415

416416
let fut = nimbus_consensus::collators::basic::run::<Block, _, _, ParachainBackend, _, _, _, _, _>(

0 commit comments

Comments
 (0)