From af9a49f42d14c4d64225d53265469b0e414d68fb Mon Sep 17 00:00:00 2001 From: Nikita Orlov Date: Tue, 17 Sep 2024 14:46:23 +0200 Subject: [PATCH] fix: fix ensure unused capacity --- src/core/database/mint_memory.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/database/mint_memory.zig b/src/core/database/mint_memory.zig index 61b489e..e1b48a4 100644 --- a/src/core/database/mint_memory.zig +++ b/src/core/database/mint_memory.zig @@ -435,7 +435,7 @@ pub const MintMemoryDatabase = struct { defer self.lock.unlock(); // ensuring that capacity of proofs enough for array - try self.proofs.ensureTotalCapacity(@intCast(proofs.len)); + try self.proofs.ensureUnusedCapacity(@intCast(proofs.len)); // we need full copy for (proofs) |proof| {