diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-08 23:14:58 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-08 23:15:45 +0800 |
commit | 1c872ddf4b1db51847a5d9d020e13d432e847f52 (patch) | |
tree | 72ec461427269a25165b58043f328fd374e143ee /core/types/receipt.go | |
parent | 6284604b52e075e454e61f2933cadaaf9ded364b (diff) | |
download | go-tangerine-1c872ddf4b1db51847a5d9d020e13d432e847f52.tar go-tangerine-1c872ddf4b1db51847a5d9d020e13d432e847f52.tar.gz go-tangerine-1c872ddf4b1db51847a5d9d020e13d432e847f52.tar.bz2 go-tangerine-1c872ddf4b1db51847a5d9d020e13d432e847f52.tar.lz go-tangerine-1c872ddf4b1db51847a5d9d020e13d432e847f52.tar.xz go-tangerine-1c872ddf4b1db51847a5d9d020e13d432e847f52.tar.zst go-tangerine-1c872ddf4b1db51847a5d9d020e13d432e847f52.zip |
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.
Diffstat (limited to 'core/types/receipt.go')
-rw-r--r-- | core/types/receipt.go | 19 |
1 files changed, 1 insertions, 18 deletions
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 { |