Skip to content

Commit c15015a

Browse files
guidiazaesedepece
authored andcommitted
fix(json_rpc): global power rankings should start at 1
1 parent 43da0c9 commit c15015a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node/src/actors/chain_manager/handlers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1664,7 +1664,7 @@ impl Handler<QueryStakingPowers> for ChainManager {
16641664
.stakes
16651665
.by_rank(msg.order_by, current_epoch)
16661666
.enumerate()
1667-
.map(|(index, record)| (index, record.0, record.1));
1667+
.map(|(index, record)| (index + 1, record.0, record.1));
16681668

16691669
// Skip first `offset` entries and take next `limit`.
16701670
// If distinct is specified, retain just first appearance per validator.

0 commit comments

Comments
 (0)