Skip to content

Commit

Permalink
docs: notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodylow committed May 27, 2024
1 parent a3e72af commit 793fad3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fedimint-nwc/src/database/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ use redb::{Database as RedbDatabase, ReadTransaction, ReadableTable, WriteTransa
use super::invoice::{Invoice, INVOICES_TABLE};
use super::payment::{Payment, PAYMENTS_TABLE};

/// Database for storing and retrieving payment information
/// Invoices are invoices that we create as part of make_invoice
/// Payments are payments that we perform as part of pay_invoice
/// Any other configs here are just temporary until we have a better way to
/// store them for making the more complex rate limiting and payments caveats
/// for more interesting NWC usecases
#[derive(Debug, Clone)]
pub struct Database {
db: Arc<RedbDatabase>,
Expand Down

0 comments on commit 793fad3

Please sign in to comment.