fix(ancienttest): use TruncateHead(0) to truly reset before re-appending

This commit is contained in:
VolodymyrBg 2025-09-08 21:29:06 +03:00 committed by GitHub
parent b381804eb1
commit 8ddbafcf8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -227,7 +227,7 @@ func basicWrite(t *testing.T, newFn func(kinds []string) ethdb.AncientStore) {
}
// Write should work after truncating everything
db.TruncateTail(0)
db.TruncateHead(0)
_, err = db.ModifyAncients(func(op ethdb.AncientWriteOp) error {
for i := 0; i < 100; i++ {
op.AppendRaw("a", uint64(i), dataA[i])