mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
Fixed only half MNs can be mining block.
This commit is contained in:
parent
780a91e76f
commit
a064131488
1 changed files with 1 additions and 0 deletions
|
|
@ -483,6 +483,7 @@ func WhoIsCreator(snap *Snapshot, header *types.Header) (common.Address, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
func YourTurn(masternodes []common.Address, snap *Snapshot, header *types.Header, cur common.Address) (int, int, bool, error) {
|
func YourTurn(masternodes []common.Address, snap *Snapshot, header *types.Header, cur common.Address) (int, int, bool, error) {
|
||||||
|
masternodes = masternodes[:len(masternodes)/2+1]
|
||||||
if len(masternodes) == 0 {
|
if len(masternodes) == 0 {
|
||||||
return -1, -1, true, nil
|
return -1, -1, true, nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue