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

View file

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