mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 23:54:22 +01:00
bitcoind: serialize requests.
bitcoind has a limit of 16 requests at once, by default, so our simplest solution is to serialize them. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -127,7 +127,8 @@ static struct lightningd_state *lightningd_state(void)
|
||||
dstate->secpctx = secp256k1_context_create(SECP256K1_CONTEXT_VERIFY
|
||||
| SECP256K1_CONTEXT_SIGN);
|
||||
default_config(&dstate->config);
|
||||
dstate->bitcoind_in_progress = 0;
|
||||
list_head_init(&dstate->bitcoin_req);
|
||||
dstate->bitcoin_req_running = false;
|
||||
return dstate;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user