aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/receipt.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-05 19:32:47 +0800
committerobscuren <geffobscura@gmail.com>2014-12-05 19:32:47 +0800
commitd80f8bda940a8ae8f6dab1502a46054c06cee5cc (patch)
tree3397c3d58bcef44840de4098c23d5ef93056a7f3 /core/types/receipt.go
parent3cf0477c21376b16492cb0b8705b9c7b951e2fb8 (diff)
downloadgo-tangerine-d80f8bda940a8ae8f6dab1502a46054c06cee5cc.tar
go-tangerine-d80f8bda940a8ae8f6dab1502a46054c06cee5cc.tar.gz
go-tangerine-d80f8bda940a8ae8f6dab1502a46054c06cee5cc.tar.bz2
go-tangerine-d80f8bda940a8ae8f6dab1502a46054c06cee5cc.tar.lz
go-tangerine-d80f8bda940a8ae8f6dab1502a46054c06cee5cc.tar.xz
go-tangerine-d80f8bda940a8ae8f6dab1502a46054c06cee5cc.tar.zst
go-tangerine-d80f8bda940a8ae8f6dab1502a46054c06cee5cc.zip
Fixed issue in VM where LOG didn't pop anything of the stack
Diffstat (limited to 'core/types/receipt.go')
-rw-r--r--core/types/receipt.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/types/receipt.go b/core/types/receipt.go
index 25fa8fb07..bac64e41d 100644
--- a/core/types/receipt.go
+++ b/core/types/receipt.go
@@ -64,5 +64,18 @@ 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 {
+ return ethutil.Encode(self.RlpData())
+}
+
func (self Receipts) Len() int { return len(self) }
func (self Receipts) GetRlp(i int) []byte { return ethutil.Rlp(self[i]) }