also check the delegate_id

This commit is contained in:
Anatoly Yakovenko 2019-03-26 11:42:28 -07:00 committed by Grimes
parent 215b07c1a9
commit 9d73fbb84a
1 changed files with 3 additions and 1 deletions

View File

@ -127,7 +127,9 @@ impl Locktower {
}
let mut vote_state: VoteState = VoteState::deserialize(&account.data)
.expect("bank should always have valid VoteState data");
if key == self.epoch_stakes.delegate_id {
if key == self.epoch_stakes.delegate_id
|| vote_state.delegate_id == self.epoch_stakes.delegate_id
{
solana_metrics::submit(
influxdb::Point::new("counter-locktower-observed")
.add_field(