mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
core: fix wrong blockHash for eth_getLogs (#650)
This commit is contained in:
parent
22c54206bd
commit
693190e5b9
1 changed files with 4 additions and 0 deletions
|
|
@ -262,6 +262,10 @@ func GetBlockReceipts(db DatabaseReader, hash common.Hash, number uint64) types.
|
|||
receipts[i].BlockHash = hash
|
||||
receipts[i].BlockNumber = big.NewInt(0).SetUint64(number)
|
||||
receipts[i].TransactionIndex = uint(i)
|
||||
for _, log := range receipts[i].Logs {
|
||||
// set BlockHash to fix #650
|
||||
log.BlockHash = hash
|
||||
}
|
||||
}
|
||||
return receipts
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue