mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-16 18:00:46 +00:00
Update blockchain.go
This commit is contained in:
parent
4ab49f2752
commit
b6dc253064
1 changed files with 1 additions and 2 deletions
|
|
@ -1219,8 +1219,7 @@ func (bc *BlockChain) insertChain(chain types.Blocks) (int, []interface{}, []*ty
|
||||||
if (chain[i].NumberU64() % bc.chainConfig.XDPoS.Epoch) == (bc.chainConfig.XDPoS.Epoch - bc.chainConfig.XDPoS.Gap) {
|
if (chain[i].NumberU64() % bc.chainConfig.XDPoS.Epoch) == (bc.chainConfig.XDPoS.Epoch - bc.chainConfig.XDPoS.Gap) {
|
||||||
err := bc.UpdateM1()
|
err := bc.UpdateM1()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Error when update masternodes set. Stopping node", "err", err)
|
log.Crit("Error when update masternodes set. Stopping node", "err", err)
|
||||||
os.Exit(1)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue