mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
74ec3a9db7
Currently the mining loop is broken for the polygon chain. This PR fixes this. High level changes: - Introduces new Bor<->Heimdall stage specifically for the needs of the mining flow - Extracts out common logic from Bor<->Heimdall sync and mining stages into shared functions - Removes `mine` flag for the Bor<->Heimdall sync stage - Extends the current `StartMining` function to prefetch span zero if needed before the mining loop is started - Fixes Bor to read span zero (instead of span 1) from heimdall when the span is not initially set in the local smart contract that the Spanner uses Test with devnet "state-sync" scenario: ![Screenshot 2024-01-05 at 17 41 23](https://github.com/ledgerwatch/erigon/assets/94537774/34ca903a-69b8-416a-900f-a32f2d4417fa) |
||
---|---|---|
.. | ||
aura | ||
bor | ||
clique | ||
ethash | ||
merge | ||
misc | ||
mock | ||
chain_reader.go | ||
consensus.go | ||
errors.go | ||
result.go |