mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 10:50:44 +00:00
commit
3b9fc516f6
2 changed files with 0 additions and 9 deletions
|
|
@ -262,10 +262,6 @@ func GetBlockReceipts(db DatabaseReader, hash common.Hash, number uint64) types.
|
||||||
receipts[i].BlockHash = hash
|
receipts[i].BlockHash = hash
|
||||||
receipts[i].BlockNumber = big.NewInt(0).SetUint64(number)
|
receipts[i].BlockNumber = big.NewInt(0).SetUint64(number)
|
||||||
receipts[i].TransactionIndex = uint(i)
|
receipts[i].TransactionIndex = uint(i)
|
||||||
for _, log := range receipts[i].Logs {
|
|
||||||
// update BlockHash to fix #208
|
|
||||||
log.BlockHash = hash
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return receipts
|
return receipts
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@ import (
|
||||||
ethereum "github.com/XinFinOrg/XDPoSChain"
|
ethereum "github.com/XinFinOrg/XDPoSChain"
|
||||||
"github.com/XinFinOrg/XDPoSChain/common"
|
"github.com/XinFinOrg/XDPoSChain/common"
|
||||||
"github.com/XinFinOrg/XDPoSChain/common/hexutil"
|
"github.com/XinFinOrg/XDPoSChain/common/hexutil"
|
||||||
"github.com/XinFinOrg/XDPoSChain/core"
|
|
||||||
"github.com/XinFinOrg/XDPoSChain/core/types"
|
"github.com/XinFinOrg/XDPoSChain/core/types"
|
||||||
"github.com/XinFinOrg/XDPoSChain/ethdb"
|
"github.com/XinFinOrg/XDPoSChain/ethdb"
|
||||||
"github.com/XinFinOrg/XDPoSChain/event"
|
"github.com/XinFinOrg/XDPoSChain/event"
|
||||||
|
|
@ -443,10 +442,6 @@ func (api *PublicFilterAPI) GetFilterChanges(id rpc.ID) (interface{}, error) {
|
||||||
case LogsSubscription:
|
case LogsSubscription:
|
||||||
logs := f.logs
|
logs := f.logs
|
||||||
f.logs = nil
|
f.logs = nil
|
||||||
for _, log := range logs {
|
|
||||||
// update BlockHash to fix #208
|
|
||||||
log.BlockHash = core.GetCanonicalHash(api.chainDb, log.BlockNumber)
|
|
||||||
}
|
|
||||||
return returnLogs(logs), nil
|
return returnLogs(logs), nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue