File tree 1 file changed +10
-0
lines changed
lightning/src/blinded_path
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ use crate::blinded_path::BlindedHop;
8
8
use crate :: blinded_path:: utils;
9
9
use crate :: io;
10
10
use crate :: ln:: PaymentSecret ;
11
+ use crate :: ln:: channelmanager:: CounterpartyForwardingInfo ;
11
12
use crate :: ln:: features:: BlindedHopFeatures ;
12
13
use crate :: ln:: msgs:: DecodeError ;
13
14
use crate :: offers:: invoice:: BlindedPayInfo ;
@@ -96,6 +97,15 @@ pub struct PaymentConstraints {
96
97
pub htlc_minimum_msat : u64 ,
97
98
}
98
99
100
+ impl From < CounterpartyForwardingInfo > for PaymentRelay {
101
+ fn from ( info : CounterpartyForwardingInfo ) -> Self {
102
+ let CounterpartyForwardingInfo {
103
+ fee_base_msat, fee_proportional_millionths, cltv_expiry_delta
104
+ } = info;
105
+ Self { cltv_expiry_delta, fee_proportional_millionths, fee_base_msat }
106
+ }
107
+ }
108
+
99
109
impl Writeable for ForwardTlvs {
100
110
fn write < W : Writer > ( & self , w : & mut W ) -> Result < ( ) , io:: Error > {
101
111
encode_tlv_stream ! ( w, {
You can’t perform that action at this time.
0 commit comments