File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ pub enum RuntimeErrorCode {
16
16
BackupServiceUnavailable ,
17
17
/// No backup was found for the provided mnemonic.
18
18
BackupNotFound ,
19
- /// No on-chain funds are available to resolve.
20
- NoOnChainFundsToResolve ,
21
19
22
20
// Breez runtime errors
23
21
/// Information about the remote node isn't cached and couldn't be accessed. Could be a network error.
Original file line number Diff line number Diff line change @@ -2191,7 +2191,7 @@ impl LightningNode {
2191
2191
2192
2192
/// Returns the fees for resolving channel closes if there are enough funds to pay for fees.
2193
2193
///
2194
- /// Throws an [`RuntimeErrorCode::NoOnChainFundsToResolve`] error if no on-chain funds are available to resolve.
2194
+ /// Must only be called when there are onchain funds to resolve.
2195
2195
///
2196
2196
/// Returns the fee information for the available resolving options.
2197
2197
///
@@ -2209,10 +2209,7 @@ impl LightningNode {
2209
2209
. as_msats ( ) ;
2210
2210
2211
2211
if onchain_balance. msats == 0 {
2212
- runtime_error ! (
2213
- RuntimeErrorCode :: NoOnChainFundsToResolve ,
2214
- "No on-chain funds to resolve"
2215
- )
2212
+ invalid_input ! ( "No on-chain funds to resolve" )
2216
2213
}
2217
2214
2218
2215
let lsp_fees =
Original file line number Diff line number Diff line change @@ -764,7 +764,6 @@ enum RuntimeErrorCode {
764
764
"LspServiceUnavailable",
765
765
"BackupServiceUnavailable",
766
766
"BackupNotFound",
767
- "NoOnChainFundsToResolve",
768
767
"NodeUnavailable",
769
768
"FailedFundMigration",
770
769
};
You can’t perform that action at this time.
0 commit comments