mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 00:54:20 +01:00
db: save and restore accepted payments.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -10,8 +10,15 @@ struct payment {
|
||||
u64 msatoshis;
|
||||
struct rval r;
|
||||
struct sha256 rhash;
|
||||
bool complete;
|
||||
};
|
||||
|
||||
/* From database */
|
||||
void payment_add(struct lightningd_state *dstate,
|
||||
const struct rval *r,
|
||||
u64 msatoshis,
|
||||
bool complete);
|
||||
|
||||
struct payment *find_payment(struct lightningd_state *dstate,
|
||||
const struct sha256 *rhash);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user