@@ -260,8 +260,6 @@ pub struct ChannelInfo {
260
260
/// Everything else is useful only for sending out for initial routing sync.
261
261
/// Not stored if contains excess data to prevent DoS.
262
262
pub announcement_message : Option < msgs:: ChannelAnnouncement > ,
263
- /// The minimum fee the user is willing to pay to avoid using a channel
264
- pub minimum_fee_penalty : Option < u64 > ,
265
263
}
266
264
267
265
impl std:: fmt:: Display for ChannelInfo {
@@ -278,8 +276,7 @@ impl_writeable!(ChannelInfo, 0, {
278
276
one_to_two,
279
277
node_two,
280
278
two_to_one,
281
- announcement_message,
282
- minimum_fee_penalty
279
+ announcement_message
283
280
} ) ;
284
281
285
282
/// Fees for routing via a given channel or a node
@@ -439,7 +436,7 @@ pub trait ChannelScorer {
439
436
/// the metadata they are tracking (eg metrics for reliability, uptime, floppiness, etc.)
440
437
type Metadata ;
441
438
/// Returns penalty fee for a given channel ID based on user's channel metadata
442
- fn calculate_minimum_fee_penalty ( & self , _channel_id : u64 ) -> Option < u64 > { None }
439
+ fn calculate_minimum_fee_penalty ( & self , _channel_id : u64 ) -> u64 { 0 }
443
440
/// Optional: allows user to count PaymentSent events for channels
444
441
fn score_payment_success ( & self , _route : Vec < Vec < RouteHop > > , _metadata : Vec < Self :: Metadata > ) { }
445
442
/// Optional: allows user to count PaymentFailed events for channels
@@ -587,7 +584,6 @@ impl NetworkGraph {
587
584
node_two : msg. contents . node_id_2 . clone ( ) ,
588
585
two_to_one : None ,
589
586
announcement_message : if should_relay { Some ( msg. clone ( ) ) } else { None } ,
590
- minimum_fee_penalty : None ,
591
587
} ;
592
588
593
589
match self . channels . entry ( msg. contents . short_channel_id ) {
0 commit comments