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::{CounterpartyOfferedHTLCOutput,CounterpartyReceivedHTLCOutput,HolderHTLCOutput,PackageTemplate,PackageSolvingData,RevokedOutput,WEIGHT_REVOKED_OUTPUT, weight_offered_htlc, weight_received_htlc};
846
846
use chain::Txid;
847
847
use ln::chan_utils::HTLCOutputInCommitment;
848
848
use ln::{PaymentPreimage,PaymentHash};
@@ -878,6 +878,19 @@ mod tests {
878
878
}
879
879
}
880
880
881
+
macro_rules! dumb_counterparty_offered_output {
882
+
($secp_ctx: expr, $amt: expr) => {
883
+
{
884
+
let dumb_scalar = SecretKey::from_slice(&hex::decode("0101010101010101010101010101010101010101010101010101010101010101").unwrap()[..]).unwrap();
885
+
let dumb_point = PublicKey::from_secret_key(&$secp_ctx,&dumb_scalar);
0 commit comments