Skip to content

Commit

Permalink
Merge pull request #252 from jharveyb/prealloc_on_cet_creation
Browse files Browse the repository at this point in the history
fix: prealloc with making CETs
  • Loading branch information
Tibo-lg authored Jan 23, 2025
2 parents 0ea7c72 + 3b441f0 commit 4b7b47c
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 4b7b47c

Please sign in to comment.