Skip to content

Commit

Permalink
Remove duplicate TXIN_BASE_WEIGHT from new_tr_keyspend #31
Browse files Browse the repository at this point in the history
  • Loading branch information
cygnet3 committed Jan 29, 2025
1 parent c22b30b commit 00cdc23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coin_selector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ pub struct Candidate {
impl Candidate {
/// Create a [`Candidate`] input that spends a single taproot keyspend output.
pub fn new_tr_keyspend(value: u64) -> Self {
let weight = TXIN_BASE_WEIGHT + TR_KEYSPEND_SATISFACTION_WEIGHT;
let weight = TR_KEYSPEND_SATISFACTION_WEIGHT;
Self::new(value, weight, true)
}

Expand Down

0 comments on commit 00cdc23

Please sign in to comment.