Skip to content

Commit

Permalink
node: improve slash log
Browse files Browse the repository at this point in the history
  • Loading branch information
fed-franz committed Sep 13, 2024
1 parent 4810fe4 commit b2109c9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion node/src/chain/acceptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,12 @@ impl<DB: database::DB, VM: vm::VMExecution, N: Network> Acceptor<N, DB, VM> {
);

for slashed in Slash::from_block(blk)? {
info!("Slashed {}", slashed.provisioner.to_base58());
info!(
"Slashed {} at block {} (type: {:?})",
slashed.provisioner.to_base58(),
blk.header().height,
slashed.r#type
);
slashed_count += 1;
}

Expand Down

0 comments on commit b2109c9

Please sign in to comment.