mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-25 16:06:18 +00:00
Merge pull request #675 from gzliudan/fix-issue-650
return right blockHash for eth_getLogs (#650)
This commit is contained in:
commit
8cf0076851
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