mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-03 10:33:45 +00:00
Minor fix
This commit is contained in:
parent
b172ba8fbf
commit
c3d180cc46
1 changed files with 2 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ func (api *API) GetSnapshotProposerSequence(number *rpc.BlockNumber) (BlockSigne
|
|||
difficulties[signers[i]] = uint64(len(signers) - (tempIndex - proposerIndex))
|
||||
}
|
||||
|
||||
difficulties2 := rankMapDifficulties(difficulties)
|
||||
rankedDifficulties := rankMapDifficulties(difficulties)
|
||||
|
||||
author, err := api.GetAuthor(number)
|
||||
if err != nil {
|
||||
|
|
@ -99,7 +99,7 @@ func (api *API) GetSnapshotProposerSequence(number *rpc.BlockNumber) (BlockSigne
|
|||
}
|
||||
diff := int(difficulties[*author])
|
||||
blockSigners := &BlockSigners{
|
||||
Signers: difficulties2,
|
||||
Signers: rankedDifficulties,
|
||||
Diff: diff,
|
||||
Author: *author,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue