Skip to content

Commit d2afd51

Browse files
yiweichifrisitano
andauthored
feat: log authorized signer on init and update (#473)
Co-authored-by: frisitano <35734660+frisitano@users.noreply.github.com>
1 parent 567cc38 commit d2afd51

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

crates/chain-orchestrator/src/consensus.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,24 @@ impl SystemContractConsensus {
6363
/// Creates a new [`SystemContractConsensus`] consensus instance with the given authorized
6464
/// signers.
6565
pub fn new(authorized_signer: Address) -> Self {
66+
tracing::info!(
67+
target: "scroll::consensus",
68+
"Initialized system contract consensus with authorized signer: {authorized_signer}"
69+
);
6670
Self { authorized_signer, metrics: SystemContractConsensusMetrics::default() }
6771
}
6872
}
6973

7074
impl Consensus for SystemContractConsensus {
7175
fn update_config(&mut self, update: &ConsensusUpdate) {
7276
match update {
73-
ConsensusUpdate::AuthorizedSigner(signer) => self.authorized_signer = *signer,
77+
ConsensusUpdate::AuthorizedSigner(signer) => {
78+
tracing::info!(
79+
target: "scroll::consensus",
80+
"Authorized signer updated to: {signer}"
81+
);
82+
self.authorized_signer = *signer
83+
}
7484
};
7585
}
7686

0 commit comments

Comments
 (0)