b0b67be0a2
This PR changes how sidechains are handled. Before the merge, it was possible to import a chain with lower td and not set it as canonical. After the merge, we expect every chain that we get via InsertChain to be canonical. Non-canonical blocks can still be inserted with InsertBlockWIthoutSetHead. If during the InsertChain, the existing chain is not canonical anymore, we mark it as a sidechain and send the SideChainEvents normally. |
||
---|---|---|
.. | ||
discovery.go | ||
gentrie.go | ||
gentrie_test.go | ||
handler.go | ||
handler_fuzzing_test.go | ||
metrics.go | ||
peer.go | ||
progress_test.go | ||
protocol.go | ||
range.go | ||
range_test.go | ||
sort_test.go | ||
sync.go | ||
sync_test.go | ||
tracker.go |