@@ -379,15 +379,15 @@ func TestBlockReceiptStorage(t *testing.T) {
379379
380380 // Check that no receipt entries are in a pristine database
381381 hash := common .BytesToHash ([]byte {0x03 , 0x14 })
382- if rs := ReadReceipts (db , hash , 0 , params .TestChainConfig ); len (rs ) != 0 {
382+ if rs := ReadReceipts (db , hash , 0 , 0 , params .TestChainConfig ); len (rs ) != 0 {
383383 t .Fatalf ("non existent receipts returned: %v" , rs )
384384 }
385385 // Insert the body that corresponds to the receipts
386386 WriteBody (db , hash , 0 , body )
387387
388388 // Insert the receipt slice into the database and check presence
389389 WriteReceipts (db , hash , 0 , receipts )
390- if rs := ReadReceipts (db , hash , 0 , params .TestChainConfig ); len (rs ) == 0 {
390+ if rs := ReadReceipts (db , hash , 0 , 0 , params .TestChainConfig ); len (rs ) == 0 {
391391 t .Fatalf ("no receipts returned" )
392392 } else {
393393 if err := checkReceiptsRLP (rs , receipts ); err != nil {
@@ -396,7 +396,7 @@ func TestBlockReceiptStorage(t *testing.T) {
396396 }
397397 // Delete the body and ensure that the receipts are no longer returned (metadata can't be recomputed)
398398 DeleteBody (db , hash , 0 )
399- if rs := ReadReceipts (db , hash , 0 , params .TestChainConfig ); rs != nil {
399+ if rs := ReadReceipts (db , hash , 0 , 0 , params .TestChainConfig ); rs != nil {
400400 t .Fatalf ("receipts returned when body was deleted: %v" , rs )
401401 }
402402 // Ensure that receipts without metadata can be returned without the block body too
@@ -407,7 +407,7 @@ func TestBlockReceiptStorage(t *testing.T) {
407407 WriteBody (db , hash , 0 , body )
408408
409409 DeleteReceipts (db , hash , 0 )
410- if rs := ReadReceipts (db , hash , 0 , params .TestChainConfig ); len (rs ) != 0 {
410+ if rs := ReadReceipts (db , hash , 0 , 0 , params .TestChainConfig ); len (rs ) != 0 {
411411 t .Fatalf ("deleted receipts returned: %v" , rs )
412412 }
413413}
@@ -727,7 +727,7 @@ func TestReadLogs(t *testing.T) {
727727
728728 hash := common .BytesToHash ([]byte {0x03 , 0x14 })
729729 // Check that no receipt entries are in a pristine database
730- if rs := ReadReceipts (db , hash , 0 , params .TestChainConfig ); len (rs ) != 0 {
730+ if rs := ReadReceipts (db , hash , 0 , 0 , params .TestChainConfig ); len (rs ) != 0 {
731731 t .Fatalf ("non existent receipts returned: %v" , rs )
732732 }
733733 // Insert the body that corresponds to the receipts
0 commit comments