Commit a57327d1 authored by 0x1337's avatar 0x1337

helper check

parent 77e5ca85
......@@ -1173,16 +1173,16 @@ func (bc *BlockChain) insertChain(chain types.Blocks, verifySeals bool) (int, []
block, err = it.next()
}
// Falls through to the block import
case errChain == ErrDelayTooHigh:
stats.ignored += len(it.chain)
bc.reportBlock(block, nil, errChain)
return it.index, events, coalescedLogs, errChain
// Some other error occurred, abort
case err != nil:
stats.ignored += len(it.chain)
bc.reportBlock(block, nil, err)
return it.index, events, coalescedLogs, err
case errChain == ErrDelayTooHigh:
stats.ignored += len(it.chain)
bc.reportBlock(block, nil, errChain)
return it.index, events, coalescedLogs, errChain
}
//Check if there is a penatly value in chain
......
......@@ -61,9 +61,9 @@ var (
MainnetTrustedCheckpoint = &TrustedCheckpoint{
Name: "mainnet",
SectionIndex: 208,
SectionHead: common.HexToHash(""),
CHTRoot: common.HexToHash(""),
BloomRoot: common.HexToHash(""),
SectionHead: common.HexToHash("0x3e734e398f0e69d772d4f46a0a8bcf631fadda9191fe8fcf77767ccd033028bd"),
CHTRoot: common.HexToHash("0x3e734e398f0e69d772d4f46a0a8bcf631fadda9191fe8fcf77767ccd033028bd"),
BloomRoot: common.HexToHash("0x3e734e398f0e69d772d4f46a0a8bcf631fadda9191fe8fcf77767ccd033028bd"),
}
// TestnetChainConfig contains the chain parameters to run a node on the Ropsten test network.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment