From 908cbbf632d2f095315a57611478152340f01f38 Mon Sep 17 00:00:00 2001 From: Jaynti Kanani Date: Mon, 22 Nov 2021 18:08:12 +0400 Subject: [PATCH] fix: testcases --- core/rawdb/accessors_chain_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/rawdb/accessors_chain_test.go b/core/rawdb/accessors_chain_test.go index 4b173c55ee..eb1951d326 100644 --- a/core/rawdb/accessors_chain_test.go +++ b/core/rawdb/accessors_chain_test.go @@ -470,7 +470,7 @@ func TestAncientStorage(t *testing.T) { } // Write and verify the header in the database - WriteAncientBlocks(db, []*types.Block{block}, []types.Receipts{nil}, big.NewInt(100)) + WriteAncientBlocks(db, []*types.Block{block}, []types.Receipts{nil}, []types.Receipts{nil}, big.NewInt(100)) if blob := ReadHeaderRLP(db, hash, number); len(blob) == 0 { t.Fatalf("no header returned") @@ -609,7 +609,7 @@ func BenchmarkWriteAncientBlocks(b *testing.B) { blocks := allBlocks[i : i+length] receipts := batchReceipts[:length] - writeSize, err := WriteAncientBlocks(db, blocks, receipts, td) + writeSize, err := WriteAncientBlocks(db, blocks, receipts, []types.Receipts{nil}, td) if err != nil { b.Fatal(err) }