[votepower] Wrong index used on non-harmony node (#2242)

pull/2247/head
Edgar Aroutiounian 5 years ago committed by GitHub
parent 59859250f1
commit 3c4d5074ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      consensus/votepower/roster.go

@ -103,8 +103,8 @@ func AggregateRosters(rosters []RosterPerShard) map[common.Address]Staker {
) )
for i := range payload.BLSPublicKeysOwned { for i := range payload.BLSPublicKeysOwned {
if payload.BLSPublicKeysOwned[i].ShardID == roster.ShardID { if payload.BLSPublicKeysOwned[i].ShardID == roster.ShardID {
payload.BLSPublicKeysOwned[roster.ShardID].Keys = append( payload.BLSPublicKeysOwned[i].Keys = append(
payload.BLSPublicKeysOwned[roster.ShardID].Keys, key, payload.BLSPublicKeysOwned[i].Keys, key,
) )
} }
} }

Loading…
Cancel
Save