mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 08:53:46 +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))
|
difficulties[signers[i]] = uint64(len(signers) - (tempIndex - proposerIndex))
|
||||||
}
|
}
|
||||||
|
|
||||||
difficulties2 := rankMapDifficulties(difficulties)
|
rankedDifficulties := rankMapDifficulties(difficulties)
|
||||||
|
|
||||||
author, err := api.GetAuthor(number)
|
author, err := api.GetAuthor(number)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
@ -99,7 +99,7 @@ func (api *API) GetSnapshotProposerSequence(number *rpc.BlockNumber) (BlockSigne
|
||||||
}
|
}
|
||||||
diff := int(difficulties[*author])
|
diff := int(difficulties[*author])
|
||||||
blockSigners := &BlockSigners{
|
blockSigners := &BlockSigners{
|
||||||
Signers: difficulties2,
|
Signers: rankedDifficulties,
|
||||||
Diff: diff,
|
Diff: diff,
|
||||||
Author: *author,
|
Author: *author,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue