|
Source (upstream pre-purge) |
Current |
| File |
core/headerchain.go |
headerchain_pow.go |
| Symbol |
lines 648-648 |
HeaderChain.deleteTd |
| Ref |
f4d53133f~1 |
etc/v1.17.3-full-node |
Extracted from inline logic in SetHead; wraps single rawdb.DeleteTd call
Diff — vs pre-nuke original (reimplemented)
--- a/core/headerchain.go
+++ b/core/headerchain_pow.go
@@ -1 +1,4 @@
+// deleteTd removes TD from the database.
+func (hc *HeaderChain) deleteTd(batch ethdb.KeyValueWriter, hash common.Hash, num uint64) {
rawdb.DeleteTd(batch, hash, num)
+}
← Total Difficulty (TD)