mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
Minor fix
This commit is contained in:
parent
e496afb98c
commit
e0b43b0116
1 changed files with 2 additions and 2 deletions
|
|
@ -54,9 +54,9 @@ type BlockSigners struct {
|
|||
|
||||
// GetSnapshotProposerSequence retrieves the in-turn signers of all sprints in a span
|
||||
func (api *API) GetSnapshotProposerSequence(number *rpc.BlockNumber) (BlockSigners, error) {
|
||||
*number -= 1
|
||||
snapNumber := *number - 1
|
||||
var difficulties = make(map[common.Address]uint64)
|
||||
snap, err := api.GetSnapshot(number)
|
||||
snap, err := api.GetSnapshot(&snapNumber)
|
||||
if err != nil {
|
||||
return BlockSigners{}, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue