mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-09 00:54:22 +01:00
bitcoind: wrap callbacks in transaction.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
8229769438
commit
bccd2f8cf4
@@ -151,7 +151,9 @@ static void bcli_finished(struct io_conn *conn, struct bitcoin_cli *bcli)
|
||||
if (bitcoind->shutdown)
|
||||
return;
|
||||
|
||||
db_begin_transaction(bitcoind->ld->wallet->db);
|
||||
bcli->process(bcli);
|
||||
db_commit_transaction(bitcoind->ld->wallet->db);
|
||||
|
||||
next_bcli(bitcoind);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user