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"
|
"io"
|
||||||
"math/big"
|
"math/big"
|
||||||
mrand "math/rand"
|
mrand "math/rand"
|
||||||
|
"os"
|
||||||
"sync"
|
"sync"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
@ -1201,9 +1202,10 @@ func (bc *BlockChain) insertChain(chain types.Blocks) (int, []interface{}, []*ty
|
||||||
err := bc.UpdateM1()
|
err := bc.UpdateM1()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err == ErrNotPoSV {
|
if err == ErrNotPoSV {
|
||||||
log.Crit("Error when update M1 ", "err", err)
|
log.Error("Stopping node", "err", err)
|
||||||
|
os.Exit(1)
|
||||||
} else {
|
} 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"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/big"
|
"math/big"
|
||||||
|
"os"
|
||||||
"sync"
|
"sync"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
@ -596,9 +597,10 @@ func (self *worker) commitNewWork() {
|
||||||
err := self.chain.UpdateM1()
|
err := self.chain.UpdateM1()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err == core.ErrNotPoSV {
|
if err == core.ErrNotPoSV {
|
||||||
log.Crit("Error when update M1 ", "err", err)
|
log.Error("Stopping node", "err", err)
|
||||||
|
os.Exit(1)
|
||||||
} else {
|
} 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