You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And as you can see, 3 ValidatorAdded Events were triggered on the same block.
I took a look at the code responsible for cluster snapshot and it appears to me that it is overwriting the cluster snapshot based on the event's block number. But because the last 3 events have the same block number, it is not picking up the latest, so it's only counting up until 2 validators.
Hello team, a query from a user triggered an investigation this morning, resulted in finding a. possible but in ssv-scanner.
the problem
The user lamented ssv-scanner reporting a validator count of 2, while his expectation was to have 4 validators assigned to his cluster:
For comparison, the SSV API "correctly" says there are 4 validators assigned to this cluster:
A quick look at etherscan made us realize that he's not interacting directly with our contract, but with a contract of his own making:
https://goerli.etherscan.io/txs?a=0xc97A3092dd785e1b65155Dd56664dD358B981e2d
Thanks to the help of ssv-scan tool built by the community we found out that the user is experimenting with bulk calls to the contract:
https://testnet.ssvscan.io/account/0xc97a3092dd785e1b65155dd56664dd358b981e2d
And as you can see, 3
ValidatorAdded
Events were triggered on the same block.I took a look at the code responsible for cluster snapshot and it appears to me that it is overwriting the cluster snapshot based on the event's block number. But because the last 3 events have the same block number, it is not picking up the latest, so it's only counting up until 2 validators.
https://github.com/bloxapp/ssv-scanner/blob/main/src/lib/ClusterScanner/ClusterScanner.ts#L72
The text was updated successfully, but these errors were encountered: