paritytech / substrate-debug-kit

A collection of debug tools, scripts and libraries on top of substrate.
GNU General Public License v3.0
96 stars 36 forks source link

Missing one validator in result #4

Closed akhanaton closed 4 years ago

akhanaton commented 5 years ago

The validator intentions count correctly indetifies the number of nodes currently signalling intention to validate but the results are actually off by one.

Example output:

++ connected to [http://localhost:9933] ++ total_issuance = 7495211_KSM (7,495,211,598,298,384,576) ++ args: [count to elect = 200] [min-count = 10] [output = None] ++ validator intentions count 137 ++ nominator intentions count 76 ++ final slot_stake 0_KSM (500,000,000,000)

But results stop at 136: ...

135 == 999d7ad97545c25188b2aa0b4de352121d5ab44f5704a146bf02416651fb1262 (G3jdEEma...)

[stake_total: 0_KSM (500,000,000,000)] [stake_own: 0_KSM (500,000,000,000) (100%)] [other_stake_sum: 0_KSM (0) (0%)] [other_stake_count: 0] [ctrl: 517f35ac252edc0a8ba53a4b67b61d5f8340778e5ed13a9f98bbd6943d92754f (ERBBie3r...)] Voters:

136 == 5722bd6ec660535893b3a378df4a39814211d95e3d9491afa5d873cb091a085d (EYa1Ae2z...)

[stake_total: 0_KSM (500,000,000,000)] [stake_own: 0_KSM (500,000,000,000) (100%)] [other_stake_sum: 0_KSM (0) (0%)] [other_stake_count: 0] [ctrl: 765b19f6897631b6a4ccbe0d898657dd2f42dcd6fbd7de3b09c2566d4a40608e (FFWEMBfM...)] Voters:

###################################### ...

soc1c commented 4 years ago

Isn't the first validator #0?