Skip to content

Commit

Permalink
chore: change err msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
jed-wemade committed Sep 25, 2024
1 parent 9829bad commit 797ee66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion consensus/ethash/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func (ethash *Ethash) verifyHeader(chain consensus.ChainHeaderReader, header, pa
}
// Wemix: Verify SPoA block
if chain.Config().IsMontBlanc(header.Number) {
return fmt.Errorf("go-wemix does not support mont blanc fork")
return fmt.Errorf("go-wemix does not support blocks after MontBlanc hard fork")
}
// Wemix: Check if it's generated and signed by a registered node
if !wemixminer.IsPoW() && !wemixminer.VerifyBlockSig(header.Number, header.Coinbase, header.MinerNodeId, header.Root, header.MinerNodeSig, chain.Config().IsPangyo(header.Number)) {
Expand Down
4 changes: 2 additions & 2 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1597,9 +1597,9 @@ func (w *worker) commitWork(interrupt *int32, noempty bool, timestamp int64) {
}
parent := w.chain.CurrentBlock()
height := new(big.Int).Add(parent.Number(), common.Big1)
// Wemix: Skip blocks after mont blanc fork
// Wemix: Skip blocks after MontBlanc hard fork
if w.chain.Config().IsMontBlanc(height) {
log.Warn("go-wemix skips mining due to mont blanc fork", "height", height, "parent-hash", parent.Hash())
log.Warn("go-wemix skips mining due to MontBlanc hard fork", "height", height, "parent-hash", parent.Hash())
return
}
if !wemixminer.IsPoW() {
Expand Down

0 comments on commit 797ee66

Please sign in to comment.