rust-lightning/lightning/src/ln
Matt Corallo 010c34f351 Fix what bolt2_open_channel_sending_node_checks_part1 tests
There are currently two issues with
`bolt2_open_channel_sending_node_checks_part1` which counteract
each other and hide that the test isn't testing what it should be.

First of all, the final `create_channel` call actually fails
because we try to open a channel with ourselves, instead of
panicing as the test is supposed to check for.

However, when we fix the create_channel call to panic, when we
drop `nodes[1]` after `create_channel` panics, we fail the
no-pending-messages test as it as an expeted `accept_channel` in
its outbound buffer. This causes a double-panic.

Previously, these two offset each other - instead of panicing in
`create_channel` we'd panic in the Node drop checks.

This fixes both by fetching the `accept_channel` before we go into
the panic'ing `create_channel` call (who's arguments were
		corrected).
2022-03-04 21:54:21 +00:00
..
chan_utils.rs Drop fuzztarget feature entirely 2022-02-18 17:03:04 +00:00
chanmon_update_fail_tests.rs Disconect announcement_signatures sending from funding_locked 2022-01-26 18:20:26 +00:00
channel.rs Merge pull request #1314 from TheBlueMatt/2022-02-accept_chan_type 2022-02-18 13:53:09 -08:00
channelmanager.rs Merge pull request #1324 from valentinewallace/2022-02-phantom-followup 2022-02-28 18:16:21 +00:00
features.rs Rename Payee to PaymentParameters 2022-01-21 10:39:01 +01:00
functional_test_utils.rs Ensure get_claimable_balances never panicks in tests 2022-03-01 00:43:55 +00:00
functional_tests.rs Fix what bolt2_open_channel_sending_node_checks_part1 tests 2022-03-04 21:54:21 +00:00
mod.rs Drop fuzztarget feature entirely 2022-02-18 17:03:04 +00:00
monitor_tests.rs Fix HTLC tx balance calculation on local commitment transactions 2022-03-01 00:43:55 +00:00
msgs.rs Merge pull request #1324 from valentinewallace/2022-02-phantom-followup 2022-02-28 18:16:21 +00:00
onion_route_tests.rs Fix bug where we encode flags field into all updates on htlc fail 2022-02-24 22:33:35 -05:00
onion_utils.rs Refactor out decode_next_hop util from ChannelManager::decode_update_add_htlc 2022-02-14 14:22:37 -05:00
payment_tests.rs Ensure get_claimable_balances never panicks in tests 2022-03-01 00:43:55 +00:00
peer_channel_encryptor.rs DRY shared hkdf_extract_expand code to new module 2022-02-14 14:22:37 -05:00
peer_handler.rs Correct handling of UnknownRequiredFeature deserialization 2022-01-26 02:12:35 +00:00
reorg_tests.rs Ensure get_claimable_balances never panicks in tests 2022-03-01 00:43:55 +00:00
script.rs Implement Clone for InvalidShutdownScript 2021-11-29 01:30:50 +00:00
shutdown_tests.rs Deprecate Scorer in favor of ProbabilisticScorer 2022-02-02 20:22:27 -06:00
wire.rs Send warning instead of error when we incounter bogus gossip 2022-01-11 19:48:20 +00:00