mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
some msg make up
This commit is contained in:
parent
d284374279
commit
efb0d7d724
2 changed files with 8 additions and 4 deletions
|
|
@ -23,6 +23,7 @@ import (
|
|||
"io"
|
||||
"math/big"
|
||||
mrand "math/rand"
|
||||
"os"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
|
@ -1201,9 +1202,10 @@ func (bc *BlockChain) insertChain(chain types.Blocks) (int, []interface{}, []*ty
|
|||
err := bc.UpdateM1()
|
||||
if err != nil {
|
||||
if err == ErrNotPoSV {
|
||||
log.Crit("Error when update M1 ", "err", err)
|
||||
log.Error("Stopping node", "err", err)
|
||||
os.Exit(1)
|
||||
} else {
|
||||
log.Error("Error when update M1 ", "err", err)
|
||||
log.Error("Error when update masternodes set. Keep the current masternodes set for the next epoch.", "err", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ import (
|
|||
"bytes"
|
||||
"fmt"
|
||||
"math/big"
|
||||
"os"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
|
@ -596,9 +597,10 @@ func (self *worker) commitNewWork() {
|
|||
err := self.chain.UpdateM1()
|
||||
if err != nil {
|
||||
if err == core.ErrNotPoSV {
|
||||
log.Crit("Error when update M1 ", "err", err)
|
||||
log.Error("Stopping node", "err", err)
|
||||
os.Exit(1)
|
||||
} else {
|
||||
log.Error("Error when update M1 ", "err", err)
|
||||
log.Error("Error when update masternodes set. Keep the current masternodes set for the next epoch.", "err", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue