Skip to content

unconfirmedBlocks

Source (upstream pre-purge) Current
File miner/unconfirmed.go unconfirmed_pow.go
Symbol unconfirmedBlocks unconfirmedBlocks
Ref d4961881d~1 etc/v1.17.3-full-node

Tracks locally mined blocks for canonical chain inclusion. Logs when blocks become canonical, uncle, or lost. Removed in PR #27218 (miner suspension refactor).

3-way merge — purge → getc ← upstream

pre-purge
// unconfirmedBlocks implements a data structure to maintain locally mined blocks
// have not yet reached enough maturity to guarantee chain inclusion. It is
// used by the miner to provide logs to the user when a previously mined block
// has a high enough guarantee to not be reorged out of the canonical chain.
type unconfirmedBlocks struct {
chain chainRetriever // Blockchain to verify canonical status through
depth uint // Depth after which to discard previous blocks
blocks *ring.Ring // Block infos to allow canonical chain cross checks
lock sync.Mutex // Protects the fields from concurrent access
}
core-geth validation — **Identical** ✅ | | | |---|---| | File | [`unconfirmed.go`](https://github.com/etclabscore/core-geth/blob/v1.12.20/miner/unconfirmed.go) | | Symbol | `unconfirmedBlocks` | | Ref | `v1.12.20` |

← Miner