wallet: keep a list of unreleased transactions.

We're going to use this in the next patch.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-06-05 16:30:02 +09:30
parent ffa84637ea
commit 1a3886c116
8 changed files with 71 additions and 12 deletions

View File

@@ -831,6 +831,7 @@ int main(int argc, char *argv[])
* unreserving UTXOs (see #1737) */
db_begin_transaction(ld->wallet->db);
tal_free(ld->jsonrpc);
free_unreleased_txs(ld->wallet);
db_commit_transaction(ld->wallet->db);
remove(ld->pidfile);