Skip to content

DeleteTd

Source (upstream pre-purge) Current
File core/rawdb/accessors_chain.go accessors_pow.go
Symbol DeleteTd DeleteTd
Ref f4d53133f~1 etc/v1.17.3-full-node

3-way merge — purge → getc ← upstream

pre-purge
// DeleteTd removes all block total difficulty data associated with a hash.
func DeleteTd(db ethdb.KeyValueWriter, hash common.Hash, number uint64) {
if err := db.Delete(headerTDKey(number, hash)); err != nil {
log.Crit("Failed to delete block total difficulty", "err", err)
}
}
core-geth validation — **Identical** ✅ | | | |---|---| | File | [`accessors_chain.go`](https://github.com/etclabscore/core-geth/blob/v1.12.20/core/rawdb/accessors_chain.go) | | Symbol | `DeleteTd` | | Ref | `v1.12.20` |

← Total Difficulty (TD)