-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
external/libbacktrace: Update to latest upstream master #2
external/libbacktrace: Update to latest upstream master #2
Commits on Jun 6, 2018
-
gossipd: don't publish private updates after channel_announce.
We generate new ones anyway; removing this code changes fixes coming up which now only need to change one place. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 2431742 - Browse repository at this point
Copy the full SHA 2431742View commit details -
tests: new helper to get pid of a particular subdaemon.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 498ad91 - Browse repository at this point
Copy the full SHA 498ad91View commit details -
tests/test_lightningd.py: test new delayed gossip channel_announce be…
…haviour. The gossip-query spec enhancements say not to forward an channel_announcement until you have receive a channel_update. This test fails for now. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 601a855 - Browse repository at this point
Copy the full SHA 601a855View commit details -
gossipd: only broadcast channel_announcement once we have a channel_u…
…pdate. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for c218922 - Browse repository at this point
Copy the full SHA c218922View commit details -
gossipd: announce own node only after channel announcement actually b…
…roadcast. handle_pending_cannouncement might not actually add the announcment, as it could be waiting for a channel_update. We need to wait for the actual announcement before considering announcing our node. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for c2cc382 - Browse repository at this point
Copy the full SHA c2cc382View commit details -
gossipd: announce nodes after channel announcement.
In general, we need to only publish node announcements after publishing channel announcements, though we can accept node announcements as soon as we see channel announcements. So we keep a flag for those node_announcement which haven't been broadcast yet. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 803e4f8 - Browse repository at this point
Copy the full SHA 803e4f8View commit details -
features: define LOCAL_GOSSIP_QUERIES feature.
From BOLT #9 proposed update. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 3e07971 - Browse repository at this point
Copy the full SHA 3e07971View commit details -
wire: Update to lastest BOLT draft.
This includes the gossip query messages. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 6c6da45 - Browse repository at this point
Copy the full SHA 6c6da45View commit details -
gossipd: infrastructure to handle short_channel_id replies.
We use the same system as for gossip: we trickle out replies when we're otherwise idle. This is minimal infrastructure: we don't actually process the query_short_channel_ids message yet, nor do we append node announcements. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 5864415 - Browse repository at this point
Copy the full SHA 5864415View commit details -
gossipd: send node announcements after short_channel_id replies.
We use the same system as for gossip: we trickle out replies when we're otherwise idle. As we trickle out replies to query_short_channel_ids, we remember the pubkeys of nodes we mention. At the end, we sort and uniquify, and then send any node_announcements we have for those. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 32c39c2 - Browse repository at this point
Copy the full SHA 32c39c2View commit details -
gossipd: handle query_short_channel_ids message.
This doesn't handle zlib yet. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 7ee5da8 - Browse repository at this point
Copy the full SHA 7ee5da8View commit details -
gossipd: wire up infrastructure to generate query_short_channel_ids msg.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 4d8b290 - Browse repository at this point
Copy the full SHA 4d8b290View commit details -
And write the test for it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for c633cbe - Browse repository at this point
Copy the full SHA c633cbeView commit details -
gossipd: add timestamp to each broadcast message.
This lets us filter by timestamp. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 7a32637 - Browse repository at this point
Copy the full SHA 7a32637View commit details -
gossipd: ensure incoming timestamps are reasonable.
This is kind of orthogonal to the other changes, but makes sense: if we would instantly or never prune the message, don't accept it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 97bb6c5 - Browse repository at this point
Copy the full SHA 97bb6c5View commit details -
gossipd: handle gossip_timestamp_filter message.
And initialize filter (to "never") when we negotiated LOCAL_GOSSIP_QUERIES, and send initial filter message. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 531c82b - Browse repository at this point
Copy the full SHA 531c82bView commit details -
gossipd: single-thread the gossip timer.
We have a function called 'wake_pkt_out' which is really 'start gossiping', so rename it to 'wake_gossip_out'. In addition, it's fired both on a timer, and in response to our first gossip_timestamp_filter, which leads to very confusing (though, technically, not incorrect) behavior. Keep a single timer at all times, which now doubles as the flag to indicating we're syncing right now. Set it once we're done syncing gossip. Technically this means we got from once-every-60-seconds to quiet-for-60-seconds-between-gossip, but that's OK. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for db6a644 - Browse repository at this point
Copy the full SHA db6a644View commit details -
gossipd: add dev-send-timestamp-filter command for testing timestamp …
…filtering. Since we currently only (ab)use it to send everything, we need a way to generate boutique queries for testing. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for c34b49c - Browse repository at this point
Copy the full SHA c34b49cView commit details -
gossipd: handle query_channel_range
We send them all the short_channel_ids we have in a given range. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 0dda5d4 - Browse repository at this point
Copy the full SHA 0dda5d4View commit details -
gossip: dev-query-channel-range to test query_channel_range.
We keep a crappy bitmap, and finish when their replies cover everything we asked. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 118f099 - Browse repository at this point
Copy the full SHA 118f099View commit details -
gossipd: dev-set-max-scids-encode-size to artificially force "full" r…
…eplies. We cap each reply at a single one, which forces the code into our recursion logic. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 9e51e19 - Browse repository at this point
Copy the full SHA 9e51e19View commit details -
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 083a2ce - Browse repository at this point
Copy the full SHA 083a2ceView commit details -
gossipd: support and use zlib encoding in short_channel_id encoding.
We still use uncompressed if zlib turns out to be larger. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for f52245d - Browse repository at this point
Copy the full SHA f52245dView commit details -
test_lightningd.py: actually make sure we do zlib encoding.
Previous replies weren't large enough; add another channel and then use IO tracing to make sure the reply is zlib encoded. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for e9483f1 - Browse repository at this point
Copy the full SHA e9483f1View commit details -
gossipd: don't queue node_announce unless we've queued channel_announce.
We *accept* a node_announce if we have a channel_announce, but we can't queue it until we queue the channel_announce, which we only do once we have recieved a channel_update. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 5ec454c - Browse repository at this point
Copy the full SHA 5ec454cView commit details -
utils: make subd_pid return the *last* pid, in case we restarted daemon.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 383b309 - Browse repository at this point
Copy the full SHA 383b309View commit details -
Rename consider_own_node_announce to maybe_send_own_node_announce.
Suggested-by: @cdecker Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 035d606 - Browse repository at this point
Copy the full SHA 035d606View commit details -
pytest: test_gossip_jsonrpc can always test aliases.
The whole test is under DEVELOPER anyway, but even if it weren't it would work fine. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for e4457e5 - Browse repository at this point
Copy the full SHA e4457e5View commit details -
Suggested-by: @cdecker Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 1bb7713 - Browse repository at this point
Copy the full SHA 1bb7713View commit details -
topo: Have chain_topology track both min and max block heights
Signed-off-by: Christian Decker <decker.christian@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0d4b7ea - Browse repository at this point
Copy the full SHA 0d4b7eaView commit details -
wallet: Return both min and max block heights
Signed-off-by: Christian Decker <decker.christian@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 024dca0 - Browse repository at this point
Copy the full SHA 024dca0View commit details -
topo: Tell chain_topology about the min and max block height
Signed-off-by: Christian Decker <decker.christian@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2415f48 - Browse repository at this point
Copy the full SHA 2415f48View commit details -
gossip: Don't ask bitcoind for outpoints we should know
Compares the `blocknum` in the `short_channel_id` with the range of blocks we store in the database and abort if we should have known about it. Avoids bombarding `bitcoind` with requests for channels that have already been spent or were invalid in the first place. Signed-off-by: Christian Decker <decker.christian@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 6298ce3 - Browse repository at this point
Copy the full SHA 6298ce3View commit details -
wallet: Cleanup db files if the tests succeed
Signed-off-by: Christian Decker <decker.christian@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d434032 - Browse repository at this point
Copy the full SHA d434032View commit details -
pytest: Remove directories of successful tests
Signed-off-by: Christian Decker <decker.christian@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 38b7a0e - Browse repository at this point
Copy the full SHA 38b7a0eView commit details -
pytest: Use pytest fixtures for the test directory and clean it up
The modern, pytest based, tests now clean up after themselves by removing directories of successful tests and the base directory if there was no failure. Signed-off-by: Christian Decker <decker.christian@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for de3b359 - Browse repository at this point
Copy the full SHA de3b359View commit details -
gitignore: Ignore .pytest_cache
Signed-off-by: Christian Decker <decker.christian@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 294c76e - Browse repository at this point
Copy the full SHA 294c76eView commit details -
ccan: update to have new configurator.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 437fc5f - Browse repository at this point
Copy the full SHA 437fc5fView commit details -
You can use environment variables or the commandline to set defaults. It looks very autoconf, but you don't need to learn m4. Doesn't cover all the obscure flags, but it's easy to extend. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 2f55e64 - Browse repository at this point
Copy the full SHA 2f55e64View commit details -
configure: add --enable-valgrind/disable-valgrind.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 3bdbaa0 - Browse repository at this point
Copy the full SHA 3bdbaa0View commit details -
We leave VALGRIND env var as an override for testing. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for a3dc980 - Browse repository at this point
Copy the full SHA a3dc980View commit details -
Makefile: not running configure first is so yesterday:
Make should only run configure if config.var already exists: $ make ./configure --reconfigure ./configure: 65: .: config.vars: not found ./configure --reconfigure ./configure: 65: .: config.vars: not found Makefile:179: recipe for target 'ccan/config.h' failed make: *** [ccan/config.h] Error 2
Configuration menu - View commit details
-
Copy full SHA for 2e80aae - Browse repository at this point
Copy the full SHA 2e80aaeView commit details -
travis: use VALGRIND rather than NO_VALGRIND.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 502840b - Browse repository at this point
Copy the full SHA 502840bView commit details -
devtools/Makefile: add devtools/onion.c to DEVTOOLS_TOOL_SRC
This way the object file correctly depends on external headers. Currently a parallel build on a clean tree can give: ``` In file included from ./common/sphinx.h:6:0, from devtools/onion.c:5: ./bitcoin/pubkey.h:8:10: fatal error: secp256k1.h: No such file or directory #include <secp256k1.h> ^~~~~~~~~~~~~ compilation terminated. <builtin>: recipe for target 'devtools/onion.o' failed ``` Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for f1727f3 - Browse repository at this point
Copy the full SHA f1727f3View commit details -
external/Makefile: call git submodule sync and update with --remote.
This is required when the remote URL changes. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for fed3292 - Browse repository at this point
Copy the full SHA fed3292View commit details -
external/libbacktrace: Update to latest master
This contains recent updates to config.sub and config.guess files.
Jan Sarenik committedJun 6, 2018 Configuration menu - View commit details
-
Copy full SHA for c6dcedb - Browse repository at this point
Copy the full SHA c6dcedbView commit details