some msg make up

This commit is contained in:
Tuna 2018-09-05 16:07:21 +07:00
parent d284374279
commit efb0d7d724
2 changed files with 8 additions and 4 deletions

View file

@ -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)
} }
} }
} }

View file

@ -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)
} }
} }
} }