You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use chain::package::{CounterpartyReceivedHTLCOutput,HolderHTLCOutput,PackageTemplate,PackageSolvingData,RevokedOutput,WEIGHT_REVOKED_OUTPUT};
845
+
use chain::package::{CounterpartyReceivedHTLCOutput,HolderHTLCOutput,PackageTemplate,PackageSolvingData,RevokedOutput,WEIGHT_REVOKED_OUTPUT, weight_received_htlc};
846
846
use chain::Txid;
847
847
use ln::chan_utils::HTLCOutputInCommitment;
848
848
use ln::{PaymentPreimage,PaymentHash};
@@ -1042,13 +1042,25 @@ mod tests {
1042
1042
fntest_package_weight(){
1043
1043
let txid = Txid::from_hex("c2d4449afa8d26140898dd54d3390b057ba2a5afcf03ba29d7dc0d8b9ffe966e").unwrap();
1044
1044
let secp_ctx = Secp256k1::new();
1045
-
let revk_outp = dumb_revk_output!(secp_ctx);
1046
1045
1047
-
let package = PackageTemplate::build_package(txid,0, revk_outp,0,true,100);
0 commit comments