@@ -442,9 +442,7 @@ pub(crate) enum InputMaterial {
442
442
preimage : Option < PaymentPreimage > ,
443
443
amount : u64 ,
444
444
} ,
445
- Funding {
446
- channel_value : u64 ,
447
- }
445
+ Funding { }
448
446
}
449
447
450
448
impl Writeable for InputMaterial {
@@ -471,9 +469,8 @@ impl Writeable for InputMaterial {
471
469
preimage. write ( writer) ?;
472
470
writer. write_all ( & byte_utils:: be64_to_array ( * amount) ) ?;
473
471
} ,
474
- & InputMaterial :: Funding { ref channel_value } => {
472
+ & InputMaterial :: Funding { } => {
475
473
writer. write_all ( & [ 3 ; 1 ] ) ?;
476
- channel_value. write ( writer) ?;
477
474
}
478
475
}
479
476
Ok ( ( ) )
@@ -520,10 +517,7 @@ impl Readable for InputMaterial {
520
517
}
521
518
} ,
522
519
3 => {
523
- let channel_value = Readable :: read ( reader) ?;
524
- InputMaterial :: Funding {
525
- channel_value
526
- }
520
+ InputMaterial :: Funding { }
527
521
}
528
522
_ => return Err ( DecodeError :: InvalidValue ) ,
529
523
} ;
@@ -1864,7 +1858,7 @@ impl<ChanSigner: ChannelKeys> ChannelMonitor<ChanSigner> {
1864
1858
}
1865
1859
let should_broadcast = self . would_broadcast_at_height ( height) ;
1866
1860
if should_broadcast {
1867
- claimable_outpoints. push ( ClaimRequest { absolute_timelock : height, aggregable : false , outpoint : BitcoinOutPoint { txid : self . funding_info . 0 . txid . clone ( ) , vout : self . funding_info . 0 . index as u32 } , witness_data : InputMaterial :: Funding { channel_value : self . channel_value_satoshis } } ) ;
1861
+ claimable_outpoints. push ( ClaimRequest { absolute_timelock : height, aggregable : false , outpoint : BitcoinOutPoint { txid : self . funding_info . 0 . txid . clone ( ) , vout : self . funding_info . 0 . index as u32 } , witness_data : InputMaterial :: Funding { } } ) ;
1868
1862
}
1869
1863
if should_broadcast {
1870
1864
if let Some ( commitment_tx) = self . onchain_tx_handler . get_fully_signed_local_tx ( ) {
0 commit comments