core-lightning/tests
Rusty Russell 21fe518513 gossip_store: fix 'bad node_announcement' by allowing node_announcement on un-updated channel.
When we first receive a channel_update, we write both the
channel_announcement and that channel_update to the store: we need
that first update so we can set the channel_announcement timestamp.

However, the channel_update can be replaced later.  This means we can
have a channel_announcement, a node_update which relies on it, then
the channel_update later.

So move the "this applies to a pending announcement" check lower, where
gossip_store can use it too.  Has a nice side-effect of avoiding
one lookup of the node id.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-06-03 11:04:25 -07:00
..
data pytest: test starting with db corrupted by dangling peer. 2019-02-21 12:03:54 +01:00
plugins openingd: add openchannel hook. 2019-05-20 20:31:07 -04:00
benchmark.py py-tests: rename 'announce' to 'wait_for_announce' 2018-12-08 15:15:55 -08:00
btcproxy.py pytest: create proper mock failures. 2019-01-29 04:50:01 +00:00
conftest.py pytest: Pass result to fixtures and keep directories of failed tests 2018-08-07 00:54:19 +00:00
fixtures.py pytest: catch more gossip-related errors. 2019-06-03 11:04:25 -07:00
requirements.txt pytest: Update test dependencies to latest version 2019-01-29 00:50:09 +00:00
test_closing.py pytest: tighten a log test Owning output... with address type and confirmation 2019-05-27 13:29:32 +02:00
test_connection.py test: fix flakyness test_no_fee_estimate 2019-06-03 19:30:19 +02:00
test_db.py db: fix dangling peers on db upgrade. 2019-02-21 12:03:54 +01:00
test_gossip.py gossip_store: fix 'bad node_announcement' by allowing node_announcement on un-updated channel. 2019-06-03 11:04:25 -07:00
test_invoices.py bolt11: fix decoding and encoding of unknown fields. 2019-05-10 11:25:36 +00:00
test_misc.py test: fix flakyness of funding_reorg_private openchannel_hook 2019-06-03 19:30:19 +02:00
test_pay.py pytest: Mark repeat offenders as flaky 2019-05-26 16:19:10 +02:00
test_plugin.py test: fix flakyness of funding_reorg_private openchannel_hook 2019-06-03 19:30:19 +02:00
utils.py pytest: added BitcoinD.simple_reorg() method, which can change tx height and/or txindex 2019-05-27 13:29:32 +02:00