Found the problem, I think I examined the code and got the result of the getbeaconbeststate
at the 2357th epoch. In that epoch, incscan shows 2307 and gettotalstaker
returns 2316. Futhermore, the official explorer shows the same numbers. Here is the related part of pretty-printed json result:
If we follow the code (getAllStaker()
at https://github.com/incognitochain/incognito-chain/blob/dev/master-consensus-v2-optimized/dataaccessobject/statedb/statedb.go) and do math, we get 2316 (=7+1989+8*32+8*8). Surprisingly, the beacon committee has 7 validators, not 8. Why? ( To any devs from the team ) If this is true, incscan should show gettotalstaker - 7
. Otherwise, incscan should show gettotalstaker - 8
Currently, incscan shows gettotalstaker - 9
. If this is true and not a bug, where does -1 comes from? Again, any help from the team is appreciated. @Support The calculation of the correct number is also required for IncogWhaleBot.