Skip to content

Commit 6160296

Browse files
authored
core/types: remove unused field 'td' in Block (ethereum#25010)
1 parent b60a08d commit 6160296

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

core/types/block.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,6 @@ type Block struct {
172172
hash atomic.Value
173173
size atomic.Value
174174

175-
// Td is used by package core to store the total difficulty
176-
// of the chain up to and including the block.
177-
td *big.Int
178-
179175
// These fields are used by package eth to track
180176
// inter-peer block relay.
181177
ReceivedAt time.Time
@@ -197,7 +193,7 @@ type extblock struct {
197193
// are ignored and set to values derived from the given txs, uncles
198194
// and receipts.
199195
func NewBlock(header *Header, txs []*Transaction, uncles []*Header, receipts []*Receipt, hasher TrieHasher) *Block {
200-
b := &Block{header: CopyHeader(header), td: new(big.Int)}
196+
b := &Block{header: CopyHeader(header)}
201197

202198
// TODO: panic if len(txs) != len(receipts)
203199
if len(txs) == 0 {

0 commit comments

Comments
 (0)