Skip to content

Commit 7d9afb3

Browse files
committed
Group pending payment storage constants
Keep pending payment namespace constants next to the primary payment store constants. This keeps related persistence keys discoverable together. Co-Authored-By: HAL 9000
1 parent f509489 commit 7d9afb3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/io/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ pub(crate) const PEER_INFO_PERSISTENCE_KEY: &str = "peers";
2929
pub(crate) const PAYMENT_INFO_PERSISTENCE_PRIMARY_NAMESPACE: &str = "payments";
3030
pub(crate) const PAYMENT_INFO_PERSISTENCE_SECONDARY_NAMESPACE: &str = "";
3131

32+
/// The pending payment information will be persisted under this prefix.
33+
pub(crate) const PENDING_PAYMENT_INFO_PERSISTENCE_PRIMARY_NAMESPACE: &str = "pending_payments";
34+
pub(crate) const PENDING_PAYMENT_INFO_PERSISTENCE_SECONDARY_NAMESPACE: &str = "";
35+
3236
/// The node metrics will be persisted under this key.
3337
pub(crate) const NODE_METRICS_PRIMARY_NAMESPACE: &str = "";
3438
pub(crate) const NODE_METRICS_SECONDARY_NAMESPACE: &str = "";
@@ -80,7 +84,3 @@ pub(crate) const BDK_WALLET_INDEXER_KEY: &str = "indexer";
8084
///
8185
/// [`StaticInvoice`]: lightning::offers::static_invoice::StaticInvoice
8286
pub(crate) const STATIC_INVOICE_STORE_PRIMARY_NAMESPACE: &str = "static_invoices";
83-
84-
/// The pending payment information will be persisted under this prefix.
85-
pub(crate) const PENDING_PAYMENT_INFO_PERSISTENCE_PRIMARY_NAMESPACE: &str = "pending_payments";
86-
pub(crate) const PENDING_PAYMENT_INFO_PERSISTENCE_SECONDARY_NAMESPACE: &str = "";

0 commit comments

Comments
 (0)