rust-lightning/lightning/src/ln
Matt Corallo 21804de70c Ensure transactions_confirmed is idempotent
In many complexity-reduced implementations of chain syncing using
esplora `transactions_confirmed` may be called redundantly for
transactions which were already confirmed. To ensure this is
idempotent we add two new `ConnectionStyle`s in our tests which
(a) call `transactions_confirmed` twice for each call, ensuring
simple idempotency is ensured and (b) call `transactions_confirmed`
once for each historical block every time we're connecting a new
block, ensuring we're fully idempotent even if every call is
repeated constantly.

In order to actually behave correctly this requires a simple
already-confirmed check in `ChannelMonitor`, which is included.
2022-11-24 03:40:48 +00:00
..
chan_utils.rs Bump workspace to rust edition 2018 2022-10-21 14:47:34 -07:00
chanmon_update_fail_tests.rs Replace manual node reloading with a macro/function in tests 2022-11-15 22:38:11 +00:00
channel.rs Merge pull request #1790 from tnull/2022-10-inbound-user-channel-id-randomization 2022-11-15 22:35:17 +00:00
channelmanager.rs Merge pull request #1855 from tnull/2022-11-inbound-user-channel-id-randomization-fixup 2022-11-16 20:46:30 +00:00
features.rs Builder for creating offers 2022-11-08 13:18:15 -06:00
functional_test_utils.rs Ensure transactions_confirmed is idempotent 2022-11-24 03:40:48 +00:00
functional_tests.rs Ensure transactions_confirmed is idempotent 2022-11-24 03:40:48 +00:00
inbound_payment.rs Remove generic Signer parameter where it can be inferred from KeysInterface 2022-11-09 16:15:11 -08:00
mod.rs Move restart-related tests to their own file 2022-11-15 22:38:12 +00:00
monitor_tests.rs Allow users to specify the PaymentId for new outbound payments 2022-11-02 01:09:07 +00:00
msgs.rs Merge pull request #1413 from ViktorTigerstrom/2022-04-default-to-bolt4-tlv-onions 2022-11-11 00:49:45 +00:00
onion_route_tests.rs Replace manual node reloading with a macro/function in tests 2022-11-15 22:38:11 +00:00
onion_utils.rs Merge pull request #1413 from ViktorTigerstrom/2022-04-default-to-bolt4-tlv-onions 2022-11-11 00:49:45 +00:00
payment_tests.rs Ensure transactions_confirmed is idempotent 2022-11-24 03:40:48 +00:00
peer_channel_encryptor.rs Bump workspace to rust edition 2018 2022-10-21 14:47:34 -07:00
peer_handler.rs Give us a self when reading a custom onion message 2022-10-27 15:58:33 -04:00
priv_short_conf_tests.rs Replace manual node reloading with a macro/function in tests 2022-11-15 22:38:11 +00:00
reload_tests.rs Move restart-related tests to their own file 2022-11-15 22:38:12 +00:00
reorg_tests.rs Replace manual node reloading with a macro/function in tests 2022-11-15 22:38:11 +00:00
script.rs Bump workspace to rust edition 2018 2022-10-21 14:47:34 -07:00
shutdown_tests.rs Allow users to specify the PaymentId for new outbound payments 2022-11-02 01:09:07 +00:00
wire.rs Bump workspace to rust edition 2018 2022-10-21 14:47:34 -07:00