Skip to content

Commit 3b9fc51

Browse files
authored
Merge pull request #524 from gzliudan/revert-pr320
Revert PR320
2 parents acc9fc2 + 56d9a6e commit 3b9fc51

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

core/database_util.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,6 @@ func GetBlockReceipts(db DatabaseReader, hash common.Hash, number uint64) types.
262262
receipts[i].BlockHash = hash
263263
receipts[i].BlockNumber = big.NewInt(0).SetUint64(number)
264264
receipts[i].TransactionIndex = uint(i)
265-
for _, log := range receipts[i].Logs {
266-
// update BlockHash to fix #208
267-
log.BlockHash = hash
268-
}
269265
}
270266
return receipts
271267
}

eth/filters/api.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import (
2828
ethereum "github.com/XinFinOrg/XDPoSChain"
2929
"github.com/XinFinOrg/XDPoSChain/common"
3030
"github.com/XinFinOrg/XDPoSChain/common/hexutil"
31-
"github.com/XinFinOrg/XDPoSChain/core"
3231
"github.com/XinFinOrg/XDPoSChain/core/types"
3332
"github.com/XinFinOrg/XDPoSChain/ethdb"
3433
"github.com/XinFinOrg/XDPoSChain/event"
@@ -443,10 +442,6 @@ func (api *PublicFilterAPI) GetFilterChanges(id rpc.ID) (interface{}, error) {
443442
case LogsSubscription:
444443
logs := f.logs
445444
f.logs = nil
446-
for _, log := range logs {
447-
// update BlockHash to fix #208
448-
log.BlockHash = core.GetCanonicalHash(api.chainDb, log.BlockNumber)
449-
}
450445
return returnLogs(logs), nil
451446
}
452447
}

0 commit comments

Comments
 (0)