From 22d59a70cc4d5224ef5a0f5b096693e2142b215f Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Sat, 2 Mar 2019 11:27:12 +1100 Subject: [PATCH] Add debug message when validator is penalized --- eth2/types/src/beacon_state.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eth2/types/src/beacon_state.rs b/eth2/types/src/beacon_state.rs index 5591fa301..1c486e9b6 100644 --- a/eth2/types/src/beacon_state.rs +++ b/eth2/types/src/beacon_state.rs @@ -1004,6 +1004,10 @@ impl BeaconState { whistleblower_reward ); self.validator_registry[validator_index].penalized_epoch = current_epoch; + debug!( + "Whistleblower {} penalized validator {}.", + whistleblower_index, validator_index + ); Ok(()) }