Skip to content

Commit 048584d

Browse files
committed
Introduce Bolt12ResponseError
Introduce a new category of Bolt12 errors that contains the error generated while trying to respond asynchronously to Bolt12 messages.
1 parent 6c79ef8 commit 048584d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2614,6 +2614,17 @@ pub enum RecentPaymentDetails {
26142614
},
26152615
}
26162616

2617+
/// Error during responding to Bolt12 Messages.
2618+
pub enum Bolt12ResponseError {
2619+
/// Error from BOLT 12 semantic checks.
2620+
SemanticError(Bolt12SemanticError),
2621+
/// Error from failed verification of received [`OffersMessage`]
2622+
VerificationError,
2623+
/// Error generated when custom amount is provided when [`InvoiceRequest`] already
2624+
/// contains amount.
2625+
UnexpectedAmount
2626+
}
2627+
26172628
/// Route hints used in constructing invoices for [phantom node payents].
26182629
///
26192630
/// [phantom node payments]: crate::sign::PhantomKeysManager

0 commit comments

Comments
 (0)