core-lightning/wire
Rusty Russell cd90c8408c lightningd/gossip: clean up channel resolve failure handling.
We were getting an assert "!secp256k1_fe_is_zero(&ge->x)", because
an all-zero pubkey is invalid.  We allow marshal/unmarshal of NULL for
now, and clean up the error handling.

1. Use status_failed if master sends a bad message.
2. Similarly, kill the gossip daemon if it gives a bad reply.
3. Use an array for returned pubkeys: 0 or 2.
4. Use type_to_string(trc, struct short_channel_id, &scid) for tracing.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-05-05 16:11:44 +09:30
..
test sphinx: Updating daemon to new sphinx implementation 2017-05-02 11:47:52 +02:00
fromwire.c lightningd/gossip: clean up channel resolve failure handling. 2017-05-05 16:11:44 +09:30
gen_onion_wire_csv lightningd: check amt_to_forward and outgoing_cltv_value 2017-05-02 11:46:46 +02:00
gen_peer_wire_csv sphinx: Updating daemon to new sphinx implementation 2017-05-02 11:47:52 +02:00
Makefile Update wire from spec ed107e4ef019f33a88aa5567adca7fbb944e93af 2017-04-01 23:59:46 +10:30
onion_defs.h wire: split onion messages from peer wire messages. 2017-01-06 13:40:35 +10:30
peer_wire.c lightningd/ping: ping support. 2017-04-25 22:00:28 +02:00
peer_wire.h lightningd/cryptomsg: discard unknown odd messages internally. 2017-04-01 23:59:46 +10:30
towire.c lightningd/gossip: clean up channel resolve failure handling. 2017-05-05 16:11:44 +09:30
wire_io.c wire/wire_io: support take() arg to io_write_wire(). 2017-03-10 21:45:55 +10:30
wire_io.h wire/wire_io: support take() arg to io_write_wire(). 2017-03-10 21:45:55 +10:30
wire_sync.c wire/wire_sync: helper routines for direct read/write of messages. 2017-01-10 15:21:20 +10:30
wire_sync.h wire/wire_sync: helper routines for direct read/write of messages. 2017-01-10 15:21:20 +10:30
wire.h lightningd/channel: derive local channel_id. 2017-04-12 09:09:19 -07:00