Rusty Russell
2bc2502b23
wire: move extract_channel_id to here.
...
It can be useful for other daemons.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-01-12 09:43:01 +01:00
Christian Decker
fa6e53bb08
Move short_channel_id primitive into bitcoin
...
Not really a bitcoin primitive but the place where we keep all the
small stuff currently.
2017-08-10 12:34:58 +09:30
Rusty Russell
d492f3872c
wire/peer_wire: rename gossip_msg / unknown_msg / unknown_msg_discardable
...
The next patch includes wire/peer_wire.h and causes a compile error
as lightningd/gossip_control.c defined its own gossip_msg function.
New names are clearer.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-06-29 00:08:21 +02:00
Rusty Russell
996567c250
lightningd: update BOLT to add channel_reestablish message.
...
We don't handle it yet though.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-06-23 09:29:42 +09:30
Christian Decker
05e951d748
wire: Correct the short channel id serialization to use 3+3+2
...
Fixes the `short_channel_id` being serialized as 4 bytes block height,
3 bytes transaction index and 1 byte output number, to use 3+3+2 as
the spec says.
The reordering in the unit test structs is mainly to be able to still
use `eq_upto` for tests.
2017-05-20 20:01:34 +09:30
Rusty Russell
a12a670d85
opening: don't die if we get a gossip packet.
...
Using 'taskset -c 0' I managed to slow down pytest enough to trigger this
locally.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-05-05 16:11:45 +09:30
Rusty Russell
d5be8d26f2
lightningd/ping: ping support.
...
A spec update brings ping support.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-04-25 22:00:28 +02:00
Rusty Russell
4839916038
lightningd/cryptomsg: discard unknown odd messages internally.
...
This saves all callers having to handle it.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-04-01 23:59:46 +10:30