Browse Source

Minor fixes: feedback from Christian

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 8 years ago
parent
commit
06bc035f59
  1. 1
      lightningd/peer_control.c
  2. 3
      lightningd/subd.h
  3. 5
      tests/test_lightningd.py

1
lightningd/peer_control.c

@ -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;

3
lightningd/subd.h

@ -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

5
tests/test_lightningd.py

@ -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…
Cancel
Save