go-ethereum/miner
Daniel Liu 51b99e40a8
miner: fix block number extraction for BlockSigner tx (#1894)
Previously, the code used binary.BigEndian.Uint64(data[8:40]), which incorrectly read the index and only extracted the highest 8 bytes of the 32-byte left-padded block number, resulting in wrong values (often zero).
Now, the code uses new(big.Int).SetBytes(data[4:36]).Uint64() to correctly extract the block number from the proper 32-byte field.
This change fixes both the incorrect index and the parsing logic, ensuring accurate block number extraction and correct validation for special transactions.
2026-01-05 15:41:43 +05:30
..
agent.go all: fix staticcheck warning ST1006: don't use generic name self 2024-10-25 21:30:54 +08:00
miner.go miner: fix concurrent map access in Miner.HashRate, close XFN-52 (#1634) 2025-11-03 14:53:37 +05:30
remote_agent.go all: remove ethash pow 27178 (#1378) 2025-08-26 11:54:01 +08:00
unconfirmed.go all: remove duplicate word in comments (#1570) 2025-09-24 07:57:33 +08:00
unconfirmed_test.go metrics: fix some typos (#25551) 2024-12-13 14:00:12 +08:00
worker.go miner: fix block number extraction for BlockSigner tx (#1894) 2026-01-05 15:41:43 +05:30