Skip to content

Commit

Permalink
Initial InteractiveTxConstructor design
Browse files Browse the repository at this point in the history
Co-authored-by: Wilmer Paulino <[email protected]>
Co-authored-by: Duncan Dean <[email protected]>
Co-authored-by: Jurvis Tan <[email protected]>
  • Loading branch information
3 people committed Oct 13, 2023
1 parent cd16cdd commit bce504b
Show file tree
Hide file tree
Showing 5 changed files with 929 additions and 7 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 @@ -37,11 +37,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;

/// The parameters required to derive a channel signer via [`SignerProvider`].
#[derive(Clone, Debug, PartialEq, Eq)]
Expand Down
Loading

0 comments on commit bce504b

Please sign in to comment.