check TxMsg
- add validation on TxMsg checking for nil - add test for nil transaction - add test for zero value transaction (no extra validation needed)
This commit is contained in:
@ -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 */}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user