mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
daemon: add dev-routefail command.
We're about to change the code so that if it can't route, it will fail the HTLC. The current low-level tests will hate this, so have a dev switch to turn that off. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -204,6 +204,7 @@ static struct lightningd_state *lightningd_state(void)
|
||||
list_head_init(&dstate->bitcoin_req);
|
||||
list_head_init(&dstate->wallet);
|
||||
list_head_init(&dstate->payments);
|
||||
dstate->dev_never_routefail = false;
|
||||
dstate->bitcoin_req_running = false;
|
||||
dstate->nodes = empty_node_map(dstate);
|
||||
return dstate;
|
||||
|
||||
Reference in New Issue
Block a user