Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion crates/chain-orchestrator/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,24 @@ impl SystemContractConsensus {
/// Creates a new [`SystemContractConsensus`] consensus instance with the given authorized
/// signers.
pub fn new(authorized_signer: Address) -> Self {
tracing::info!(
target: "scroll::consensus",
"Initialized system contract consensus with authorized signer: {authorized_signer}"
);
Self { authorized_signer, metrics: SystemContractConsensusMetrics::default() }
}
}

impl Consensus for SystemContractConsensus {
fn update_config(&mut self, update: &ConsensusUpdate) {
match update {
ConsensusUpdate::AuthorizedSigner(signer) => self.authorized_signer = *signer,
ConsensusUpdate::AuthorizedSigner(signer) => {
tracing::info!(
target: "scroll::consensus",
"Authorized signer updated to: {signer}"
);
self.authorized_signer = *signer
}
};
}

Expand Down
Loading