mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 14:54:26 +01:00
jsonrpc: wrap all calls in transaction.
This commit is contained in:
committed by
Christian Decker
parent
3a596d6dda
commit
01361ab21b
@@ -506,7 +506,9 @@ static void parse_request(struct json_connection *jcon, const jsmntok_t tok[])
|
||||
return;
|
||||
}
|
||||
|
||||
db_begin_transaction(jcon->ld->wallet->db);
|
||||
cmd->dispatch(jcon->current, jcon->buffer, params);
|
||||
db_commit_transaction(jcon->ld->wallet->db);
|
||||
}
|
||||
|
||||
static struct io_plan *write_json(struct io_conn *conn,
|
||||
|
||||
Reference in New Issue
Block a user