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