Skip to content

Commit

Permalink
Merge pull request #2388 from dusk-network/improve-slash-log
Browse files Browse the repository at this point in the history
node: improve slash log
  • Loading branch information
fed-franz authored Sep 13, 2024
2 parents 0a9933a + b2109c9 commit c02ab74
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 c02ab74

Please sign in to comment.