Rusty Russell
61f048bbf1
gossip: rename is_gossip_msg to is_msg_for_gossipd.
...
We're going to expand the range of messages which go through gossipd
when we support queries.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2018-03-13 16:34:55 +01:00
Rusty Russell
904a3e4ae3
MAX_FUNDING_SATOSHI: clean up def to be max, fix name, share with openingd.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2018-01-15 12:45:12 +01:00
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
Rusty Russell
fea412dd94
BOLT: Update text to latest commit.
...
This brings us up to 955e874acc535ab2c74c1cf0eab61896ea4224ff in
https://github.com/lightningnetwork/lightning-rfc
This doesn't actually change anything; the only actual change is held back
for the next commit.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2017-08-22 14:56:02 +02:00
Christian Decker
28cc92cd15
gossip: Use bit 3 (mask 0x08) to signal initial routing sync
...
After quite some back and forth we seem to finally agree on the bit
3 (mask 0x08) to signal optional initial_routing_sync.
Signed-off-by: Christian Decker <decker.christian@gmail.com >
2017-08-09 10:01:33 +09:30
Rusty Russell
de5bf56ffa
opening: update to new open_channel with channel_flags.
...
While we're there, make the announcement conditional on it.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2017-06-29 00:08:21 +02:00
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
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
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