Skip to content

Commit

Permalink
fix: prealloc with making CETs
Browse files Browse the repository at this point in the history
  • Loading branch information
jharveyb committed Jan 22, 2025
1 parent 0ea7c72 commit 3b441f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ pub fn create_cets(
payouts: &[Payout],
lock_time: u32,
) -> Vec<Transaction> {
let mut txs: Vec<Transaction> = Vec::new();
let mut txs: Vec<Transaction> = Vec::with_capacity(payouts.len());
for payout in payouts {
let offer_output = TxOut {
value: payout.offer,
Expand Down

0 comments on commit 3b441f0

Please sign in to comment.