Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit fd4dd7c

Browse files
committed
Update LSPS2 error codes
.. to account for the spec changes in BitcoinAndLightningLayerSpecs/lsp#88
1 parent b18d635 commit fd4dd7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lsps2/msgs.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ use crate::utils;
1717
pub(crate) const LSPS2_GET_INFO_METHOD_NAME: &str = "lsps2.get_info";
1818
pub(crate) const LSPS2_BUY_METHOD_NAME: &str = "lsps2.buy";
1919

20-
pub(crate) const LSPS2_GET_INFO_REQUEST_UNRECOGNIZED_OR_STALE_TOKEN_ERROR_CODE: i32 = 2;
20+
pub(crate) const LSPS2_GET_INFO_REQUEST_UNRECOGNIZED_OR_STALE_TOKEN_ERROR_CODE: i32 = 200;
2121

22-
pub(crate) const LSPS2_BUY_REQUEST_INVALID_OPENING_FEE_PARAMS_ERROR_CODE: i32 = 2;
23-
pub(crate) const LSPS2_BUY_REQUEST_PAYMENT_SIZE_TOO_SMALL_ERROR_CODE: i32 = 3;
24-
pub(crate) const LSPS2_BUY_REQUEST_PAYMENT_SIZE_TOO_LARGE_ERROR_CODE: i32 = 4;
22+
pub(crate) const LSPS2_BUY_REQUEST_INVALID_OPENING_FEE_PARAMS_ERROR_CODE: i32 = 201;
23+
pub(crate) const LSPS2_BUY_REQUEST_PAYMENT_SIZE_TOO_SMALL_ERROR_CODE: i32 = 202;
24+
pub(crate) const LSPS2_BUY_REQUEST_PAYMENT_SIZE_TOO_LARGE_ERROR_CODE: i32 = 203;
2525

2626
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
2727
/// A request made to an LSP to learn their current channel fees and parameters.

0 commit comments

Comments
 (0)