also check the delegate_id
This commit is contained in:
parent
215b07c1a9
commit
9d73fbb84a
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue