Skip to content

Commit

Permalink
Merge pull request #2419 from jurvis/2023-03-interactivetxs
Browse files Browse the repository at this point in the history
Interactive Transaction Construction
  • Loading branch information
TheBlueMatt authored Mar 20, 2024
2 parents 9b7bbe1 + c56198a commit 8354e0c
Show file tree
Hide file tree
Showing 5 changed files with 1,401 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lightning/src/events/bump_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ use bitcoin::secp256k1;
use bitcoin::secp256k1::{PublicKey, Secp256k1};
use bitcoin::secp256k1::ecdsa::Signature;

const EMPTY_SCRIPT_SIG_WEIGHT: u64 = 1 /* empty script_sig */ * WITNESS_SCALE_FACTOR as u64;
pub(crate) const EMPTY_SCRIPT_SIG_WEIGHT: u64 = 1 /* empty script_sig */ * WITNESS_SCALE_FACTOR as u64;

const BASE_INPUT_SIZE: u64 = 32 /* txid */ + 4 /* vout */ + 4 /* sequence */;

const BASE_INPUT_WEIGHT: u64 = BASE_INPUT_SIZE * WITNESS_SCALE_FACTOR as u64;
pub(crate) const BASE_INPUT_WEIGHT: u64 = BASE_INPUT_SIZE * WITNESS_SCALE_FACTOR as u64;

/// A descriptor used to sign for a commitment transaction's anchor output.
#[derive(Clone, Debug, PartialEq, Eq)]
Expand Down
Loading

0 comments on commit 8354e0c

Please sign in to comment.