diff --git a/core/rawdb/accessors_chain_test.go b/core/rawdb/accessors_chain_test.go index 1ff6a9b90..7168fa696 100644 --- a/core/rawdb/accessors_chain_test.go +++ b/core/rawdb/accessors_chain_test.go @@ -1128,4 +1128,10 @@ func TestSidecarStorage(t *testing.T) { if entry := ReadBlobSidecars(db, hash, 0); entry != nil { t.Fatalf("Deleted body returned: %v", entry) } + // Write the sidecars again, delete the block, and verify the execution + WriteBlobSidecars(db, hash, 0, sidecars) + DeleteBlock(db, hash, 0) + if entry := ReadBlobSidecars(db, hash, 0); entry != nil { + t.Fatalf("Deleted body returned: %v", entry) + } }