aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-03-30 22:21:41 +0800
committerzelig <viktor.tron@gmail.com>2015-04-01 19:32:42 +0800
commit6ffea34d8bf19fb358c1a7f01e20bf25f1061c5e (patch)
tree7a8b1a60915ef36b66a36ccaacc62b2f7db4f878 /core
parent82da6bf4d213784cfc7ba45432f9f96c2d6b4d9d (diff)
downloaddexon-6ffea34d8bf19fb358c1a7f01e20bf25f1061c5e.tar.gz
dexon-6ffea34d8bf19fb358c1a7f01e20bf25f1061c5e.tar.zst
dexon-6ffea34d8bf19fb358c1a7f01e20bf25f1061c5e.zip
check TxMsg
- add validation on TxMsg checking for nil - add test for nil transaction - add test for zero value transaction (no extra validation needed)
Diffstat (limited to 'core')
-rw-r--r--core/types/block.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/types/block.go b/core/types/block.go
index a40bac42c..d5cd8a21e 100644
--- a/core/types/block.go
+++ b/core/types/block.go
@@ -250,10 +250,10 @@ func (self *Block) AddReceipt(receipt *Receipt) {
}
func (self *Block) RlpData() interface{} {
- // return []interface{}{self.header, self.transactions, self.uncles}
- // }
+ return []interface{}{self.header, self.transactions, self.uncles}
+}
- // func (self *Block) RlpDataForStorage() interface{} {
+func (self *Block) RlpDataForStorage() interface{} {
return []interface{}{self.header, self.transactions, self.uncles, self.Td /* TODO receipts */}
}