Patch for concurrent iterator & others (onto v1.11.6) #386
@ -96,6 +96,10 @@ func TestLegacyReceiptDecoding(t *testing.T) {
|
||||
name string
|
||||
encode func(*Receipt) ([]byte, error)
|
||||
}{
|
||||
{
|
||||
"ReceiptForStorage",
|
||||
encodeAsReceiptForStorage,
|
||||
},
|
||||
{
|
||||
"StoredReceiptRLP",
|
||||
encodeAsStoredReceiptRLP,
|
||||
@ -170,6 +174,10 @@ func TestLegacyReceiptDecoding(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func encodeAsReceiptForStorage(want *Receipt) ([]byte, error) {
|
||||
return rlp.EncodeToBytes((*ReceiptForStorage)(want))
|
||||
}
|
||||
|
||||
func encodeAsStoredReceiptRLP(want *Receipt) ([]byte, error) {
|
||||
stored := &storedReceiptRLP{
|
||||
PostStateOrStatus: want.statusEncoding(),
|
||||
|
Loading…
Reference in New Issue
Block a user