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)
}
}