Skip to content

Commit

Permalink
Merge branch 'zig-bitcoin:main' into feat/wallet_memory_methods
Browse files Browse the repository at this point in the history
  • Loading branch information
lana-shanghai authored Sep 17, 2024
2 parents 0dd0a6c + af9a49f commit d698084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/database/mint_memory.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down

0 comments on commit d698084

Please sign in to comment.