Skip to content

Commit 720cb28

Browse files
committed
f Less error types
1 parent 698e652 commit 720cb28

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/error.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@ pub enum LdkLiteError {
1313
AlreadyRunning,
1414
/// Returned when trying to stop LdkLite while it is not running.
1515
NotRunning,
16-
/// An input of the funding transaction tried spending a non-SegWit output. This should never happen, but
17-
/// better safe than sorry..
18-
FundingTxNonWitnessOuputSpend,
19-
/// The funding transaction could not be finalized.
20-
FundingTxNotFinalized,
16+
/// The funding transaction could not be created.
17+
FundingTxCreationFailed,
2118
/// A network connection has been closed.
2219
ConnectionFailed,
2320
/// Payment of the given invoice has already been intiated.
@@ -49,8 +46,7 @@ impl fmt::Display for LdkLiteError {
4946
match *self {
5047
LdkLiteError::AlreadyRunning => write!(f, "LDKLite is already running."),
5148
LdkLiteError::NotRunning => write!(f, "LDKLite is not running."),
52-
LdkLiteError::FundingTxNonWitnessOuputSpend => write!(f, "an input of the funding transaction tried spending a non-SegWit output, which is insecure"),
53-
LdkLiteError::FundingTxNotFinalized => write!(f, "the funding transaction could not be finalized"),
49+
LdkLiteError::FundingTxCreationFailed => write!(f, "the funding transaction could not be created"),
5450
LdkLiteError::ConnectionFailed => write!(f, "network connection closed"),
5551
LdkLiteError::NonUniquePaymentHash => write!(f, "an invoice must not get payed twice."),
5652
LdkLiteError::PeerInfoParse(ref e) => write!(f, "given peer info could not be parsed: {}", e),

0 commit comments

Comments
 (0)