Skip to content

EthAPIBackend.GetTd

Source (upstream pre-purge) Current
File eth/api_backend.go api_backend_pow.go
Symbol EthAPIBackend.GetTd EthAPIBackend.GetTd
Ref f4d53133f~1 etc/v1.17.3-full-node

3-way merge — purge → getc ← upstream

pre-purge
func (b *EthAPIBackend) GetTd(ctx context.Context, hash common.Hash) *big.Int {
if header := b.eth.blockchain.GetHeaderByHash(hash); header != nil {
return b.eth.blockchain.GetTd(hash, header.Number.Uint64())
}
return nil
}
core-geth validation — **Identical** ✅ | | | |---|---| | File | [`api_backend.go`](https://github.com/etclabscore/core-geth/blob/v1.12.20/eth/api_backend.go) | | Symbol | `EthAPIBackend.GetTd` | | Ref | `v1.12.20` |

← RPC & API