Skip to content

Commit

Permalink
Set BUFFER_TX_WEIGHT to correct value
Browse files Browse the repository at this point in the history
We are obviously still in the LN-DLC branch, but the buffer
transaction is smaller for vanilla DLC channels.

This change is only needed because we are not back on `master`.
  • Loading branch information
luckysori committed Feb 22, 2024
1 parent d9d8426 commit aedb226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dlc/src/channel/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ pub mod sub_channel;
* scriptSig -> 0
* nSequence -> 4 * 4
* Witness item count -> 1
* Witness -> 366
* Witness -> 220
* OUTPUT:
* nValue -> 8 * 4
* scriptPubkeyLen -> 1 * 4
* scriptPubkey -> 34 * 4
* TOTAL: 599
*/
pub const BUFFER_TX_WEIGHT: usize = 748;
pub const BUFFER_TX_WEIGHT: usize = 599;

/**
* Due to the buffer output script being more complex than the funding output
Expand Down

0 comments on commit aedb226

Please sign in to comment.