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
}