Commit 03afe98b authored by 0x1337's avatar 0x1337

tr

parent 8f893ddf
......@@ -1147,13 +1147,9 @@ func (bc *BlockChain) insertChain(chain types.Blocks, verifySeals bool) (int, []
}
switch {
// First block is pruned, insert as sidechain and reorg only if TD grows enough
//Check if there is a penatly value in chain
case errChain == ErrDelayTooHigh:
stats.ignored += len(it.chain)
bc.reportBlock(block, nil, errChain)
return it.index, events, coalescedLogs, errChain
case err == consensus.ErrPrunedAncestor:
return bc.insertSidechain(block, it)
......@@ -1176,6 +1172,11 @@ func (bc *BlockChain) insertChain(chain types.Blocks, verifySeals bool) (int, []
stats.ignored += len(it.chain)
bc.reportBlock(block, nil, err)
return it.index, events, coalescedLogs, err
//Check if there is a penatly value in chain
case errChain == ErrDelayTooHigh:
stats.ignored += len(it.chain)
bc.reportBlock(block, nil, errChain)
return it.index, events, coalescedLogs, errChain
}
// No validation errors for the first block (or chain prefix skipped)
for ; block != nil && err == nil; block, err = it.next() {
......
......@@ -61,9 +61,9 @@ var (
MainnetTrustedCheckpoint = &TrustedCheckpoint{
Name: "mainnet",
SectionIndex: 208,
SectionHead: common.HexToHash("0x1f5ba660a8b888cde2afd302d345f982bc682f179356593c17d9c7e6dd10b88f"),
CHTRoot: common.HexToHash("0x1f5ba660a8b888cde2afd302d345f982bc682f179356593c17d9c7e6dd10b88f"),
BloomRoot: common.HexToHash("0x1f5ba660a8b888cde2afd302d345f982bc682f179356593c17d9c7e6dd10b88f"),
SectionHead: common.HexToHash("0x2086799aeebeae135c246c65021c82b4e15a2c451340993aacfd2751886514f0"),
CHTRoot: common.HexToHash("0x2086799aeebeae135c246c65021c82b4e15a2c451340993aacfd2751886514f0"),
BloomRoot: common.HexToHash("0x2086799aeebeae135c246c65021c82b4e15a2c451340993aacfd2751886514f0"),
}
// 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