Commit 98f21d89 authored by obscuren's avatar obscuren

Compare method for receipts

parent 767d24ea
......@@ -227,6 +227,18 @@ func (self *Receipt) String() string {
self.CumulativeGasUsed)
}
func (self *Receipt) Cmp(other *Receipt) bool {
if bytes.Compare(self.PostState, other.PostState) != 0 {
return false
}
if self.CumulativeGasUsed.Cmp(other.CumulativeGasUsed) != 0 {
return false
}
return true
}
// Transaction slice type for basic sorting
type Transactions []*Transaction
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment