Patch for concurrent iterator & others (onto v1.11.6) #386

Closed
roysc wants to merge 1565 commits from v1.11.6-statediff-v5 into master
Showing only changes of commit a724163e59 - Show all commits

View File

@ -96,6 +96,10 @@ func TestLegacyReceiptDecoding(t *testing.T) {
name string name string
encode func(*Receipt) ([]byte, error) encode func(*Receipt) ([]byte, error)
}{ }{
{
"ReceiptForStorage",
encodeAsReceiptForStorage,
},
{ {
"StoredReceiptRLP", "StoredReceiptRLP",
encodeAsStoredReceiptRLP, 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) { func encodeAsStoredReceiptRLP(want *Receipt) ([]byte, error) {
stored := &storedReceiptRLP{ stored := &storedReceiptRLP{
PostStateOrStatus: want.statusEncoding(), PostStateOrStatus: want.statusEncoding(),