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