File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -253,31 +253,31 @@ impl_writeable_tlv_based!(CounterpartyReceivedHTLCOutput, {
253
253
#[ derive( Clone , PartialEq , Eq ) ]
254
254
pub ( crate ) struct HolderHTLCOutput {
255
255
preimage : Option < PaymentPreimage > ,
256
- amount : u64 ,
256
+ amount_msat : u64 ,
257
257
/// Defaults to 0 for HTLC-Success transactions, which have no expiry
258
258
cltv_expiry : u32 ,
259
259
}
260
260
261
261
impl HolderHTLCOutput {
262
- pub ( crate ) fn build_offered ( amount : u64 , cltv_expiry : u32 ) -> Self {
262
+ pub ( crate ) fn build_offered ( amount_msat : u64 , cltv_expiry : u32 ) -> Self {
263
263
HolderHTLCOutput {
264
264
preimage : None ,
265
- amount ,
265
+ amount_msat ,
266
266
cltv_expiry,
267
267
}
268
268
}
269
269
270
- pub ( crate ) fn build_accepted ( preimage : PaymentPreimage , amount : u64 ) -> Self {
270
+ pub ( crate ) fn build_accepted ( preimage : PaymentPreimage , amount_msat : u64 ) -> Self {
271
271
HolderHTLCOutput {
272
272
preimage : Some ( preimage) ,
273
- amount ,
273
+ amount_msat ,
274
274
cltv_expiry : 0 ,
275
275
}
276
276
}
277
277
}
278
278
279
279
impl_writeable_tlv_based ! ( HolderHTLCOutput , {
280
- ( 0 , amount , required) ,
280
+ ( 0 , amount_msat , required) ,
281
281
( 2 , cltv_expiry, required) ,
282
282
( 4 , preimage, option)
283
283
} ) ;
You can’t perform that action at this time.
0 commit comments