Skip to content

Commit e33d2c9

Browse files
jkczyzclaude
andcommitted
f - Flip max_feerate comparison for readability in rbf/rbf_sync
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5f69645 commit e33d2c9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lightning/src/ln/funding.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ impl FundingTemplate {
445445
) -> Result<FundingContribution, ()> {
446446
let FundingTemplate { shared_input, min_rbf_feerate, prior_contribution } = self;
447447
let rbf_feerate = min_rbf_feerate.ok_or(())?;
448-
if max_feerate < rbf_feerate {
448+
if rbf_feerate > max_feerate {
449449
return Err(());
450450
}
451451

@@ -482,7 +482,7 @@ impl FundingTemplate {
482482
) -> Result<FundingContribution, ()> {
483483
let FundingTemplate { shared_input, min_rbf_feerate, prior_contribution } = self;
484484
let rbf_feerate = min_rbf_feerate.ok_or(())?;
485-
if max_feerate < rbf_feerate {
485+
if rbf_feerate > max_feerate {
486486
return Err(());
487487
}
488488

0 commit comments

Comments
 (0)