From 1c872ddf4b1db51847a5d9d020e13d432e847f52 Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 8 Apr 2015 17:14:58 +0200 Subject: Changed how logs are being recorded Logs are now recorded per transactions instead of tossing them out after each transaction. This should also fix an issue with `eth_getFilterLogs` (#629) Also now implemented are the `transactionHash, blockHash, transactionIndex, logIndex` on logs. Closes #654. --- core/types/receipt.go | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'core/types/receipt.go') diff --git a/core/types/receipt.go b/core/types/receipt.go index 83c981f93..414e4d364 100644 --- a/core/types/receipt.go +++ b/core/types/receipt.go @@ -7,8 +7,8 @@ import ( "math/big" "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/rlp" "github.com/ethereum/go-ethereum/core/state" + "github.com/ethereum/go-ethereum/rlp" ) type Receipt struct { @@ -30,12 +30,6 @@ func (self *Receipt) EncodeRLP(w io.Writer) error { return rlp.Encode(w, []interface{}{self.PostState, self.CumulativeGasUsed, self.Bloom, self.logs}) } -/* -func (self *Receipt) RlpData() interface{} { - return []interface{}{self.PostState, self.CumulativeGasUsed, self.Bloom, self.logs.RlpData()} -} -*/ - func (self *Receipt) RlpEncode() []byte { bytes, err := rlp.EncodeToBytes(self) if err != nil { @@ -58,17 +52,6 @@ func (self *Receipt) String() string { type Receipts []*Receipt -/* -func (self Receipts) RlpData() interface{} { - data := make([]interface{}, len(self)) - for i, receipt := range self { - data[i] = receipt.RlpData() - } - - return data -} -*/ - func (self Receipts) RlpEncode() []byte { bytes, err := rlp.EncodeToBytes(self) if err != nil { -- cgit v1.2.3