fix: testcases

This commit is contained in:
Jaynti Kanani 2021-11-22 18:08:12 +04:00
parent ded22da831
commit 908cbbf632
No known key found for this signature in database
GPG key ID: 4396982C976BAE5E

View file

@ -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)
}