mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
Minor fixes: feedback from Christian
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
7d5b923719
commit
06bc035f59
@ -36,6 +36,7 @@
|
||||
#include <wire/gen_onion_wire.h>
|
||||
#include <wire/gen_peer_wire.h>
|
||||
|
||||
/* FIXME: Define serialization primitive for this? */
|
||||
struct channel_info {
|
||||
secp256k1_ecdsa_signature commit_sig;
|
||||
struct channel_config their_config;
|
||||
|
@ -57,7 +57,8 @@ struct subd {
|
||||
* @msgname: function to get name from messages
|
||||
* @msgcb: function to call when non-fatal message received (or NULL)
|
||||
* @finished: function to call when it's finished (with exit status).
|
||||
* @...: NULL-terminated list of pointers to fds to hand as fd 3, 4... (can be take, if so, set to -1)
|
||||
* @...: NULL-terminated list of pointers to fds to hand as fd 3, 4...
|
||||
* (can be take, if so, set to -1)
|
||||
*
|
||||
* @msgcb gets called with @fds set to NULL: if it returns a positive number,
|
||||
* that many @fds are received before calling again. If it returns -1, the
|
||||
|
@ -96,9 +96,8 @@ class NodeFactory(object):
|
||||
daemon = utils.LightningD(lightning_dir, bitcoind.bitcoin_dir, port=port)
|
||||
# If we have a disconnect string, dump it to a file for daemon.
|
||||
if disconnect:
|
||||
with open(os.path.join(lightning_dir, "dev_disconnect"), "w") as file:
|
||||
for d in disconnect:
|
||||
file.write(d + "\n")
|
||||
with open(os.path.join(lightning_dir, "dev_disconnect"), "w") as f:
|
||||
f.write("\n".join(disconnect))
|
||||
daemon.cmd_line.append("--dev-disconnect=dev_disconnect")
|
||||
# TODO(cdecker) Move into LIGHTNINGD_CONFIG once legacy daemon was removed
|
||||
daemon.cmd_line.append("--dev-broadcast-interval=1000")
|
||||
|
Loading…
Reference in New Issue
Block a user