Skip to content

Commit d3e3a46

Browse files
core/rawdb: fix logs to print block number, not address (#23328)
1 parent 28ba686 commit d3e3a46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/rawdb/accessors_indexes.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ func ReadTransaction(db ethdb.Reader, hash common.Hash) (*types.Transaction, com
106106
}
107107
body := ReadBody(db, blockHash, *blockNumber)
108108
if body == nil {
109-
log.Error("Transaction referenced missing", "number", blockNumber, "hash", blockHash)
109+
log.Error("Transaction referenced missing", "number", *blockNumber, "hash", blockHash)
110110
return nil, common.Hash{}, 0, 0
111111
}
112112
for txIndex, tx := range body.Transactions {
113113
if tx.Hash() == hash {
114114
return tx, blockHash, *blockNumber, uint64(txIndex)
115115
}
116116
}
117-
log.Error("Transaction not found", "number", blockNumber, "hash", blockHash, "txhash", hash)
117+
log.Error("Transaction not found", "number", *blockNumber, "hash", blockHash, "txhash", hash)
118118
return nil, common.Hash{}, 0, 0
119119
}
120120

@@ -137,7 +137,7 @@ func ReadReceipt(db ethdb.Reader, hash common.Hash, config *params.ChainConfig)
137137
return receipt, blockHash, *blockNumber, uint64(receiptIndex)
138138
}
139139
}
140-
log.Error("Receipt not found", "number", blockNumber, "hash", blockHash, "txhash", hash)
140+
log.Error("Receipt not found", "number", *blockNumber, "hash", blockHash, "txhash", hash)
141141
return nil, common.Hash{}, 0, 0
142142
}
143143

0 commit comments

Comments
 (0)