diff --git a/node/src/chain/consensus.rs b/node/src/chain/consensus.rs index 488f5c866b..369eb3cba1 100644 --- a/node/src/chain/consensus.rs +++ b/node/src/chain/consensus.rs @@ -22,6 +22,7 @@ use tokio::task::JoinHandle; use tracing::{error, info, trace, warn}; use std::sync::Arc; +use std::time::Duration; /// Consensus Service Task is responsible for running the consensus layer. /// @@ -86,10 +87,13 @@ impl Task { Arc::new(Mutex::new(CandidateDB::new(db.clone(), network.clone()))), ); + let round_base_timeout = self.adjust_round_base_timeout(db); + let ru = RoundUpdate::new( self.keys.1.clone(), self.keys.0, most_recent_block, + round_base_timeout, ); self.task_id += 1; @@ -142,6 +146,14 @@ impl Task { }; } } + + /// TBD + fn adjust_round_base_timeout( + &mut self, + _db: &Arc>, + ) -> Duration { + dusk_consensus::config::ROUND_BASE_TIMEOUT + } } #[derive(Debug, Default)] diff --git a/node/testbed.sh b/node/testbed.sh index 8dc5da859b..dd3041745d 100755 --- a/node/testbed.sh +++ b/node/testbed.sh @@ -82,7 +82,7 @@ do #delay=$(($i)) #sleep 20 - run_node "$BOOTSTRAP_ADDR" "127.0.0.1:$PORT" "info" "$DUSK_WALLET_DIR" "$i" "$TEMPD" "127.0.0.1:$WS_PORT" & + run_node "$BOOTSTRAP_ADDR" "127.0.0.1:$PORT" "debug" "$DUSK_WALLET_DIR" "$i" "$TEMPD" "127.0.0.1:$WS_PORT" & # wait for bootstrappers # TODO