rust-lightning/lightning/src/ln
Wilmer Paulino ffec24b3e3
Retrieve all possible spendable outputs from transactions
Assuming our keys haven't been compromised, and that random transactions
aren't learning of these scripts somehow and sending funds to them, it
was only possible for one spendable output to exist within a
transaction.

- `shutdown_script` can only exist in co-op close transactions.
- `counterparty_payment_script` can only exist in counterparty
  commitment transactions.
- `broadcasted_holder_revokable_script` can only exist in holder
  commitment/HTLC transactions.
- `destination_script` can exist in any other type of claim we support.

Now that we're exposing this API to users such that they can rescan any
relevant transactions, there's no harm in allowing them to claim more
funds from spendable outputs than we expected.
2023-09-28 14:25:30 -07:00
..
blinded_payment_tests.rs Introduce RouteParameters::max_total_routing_fee_msat 2023-09-26 09:44:04 +02:00
chan_utils.rs Avoid unnecessarily cloning unsigned Transaction when broadcasting 2023-09-15 20:41:48 +00:00
chanmon_update_fail_tests.rs Drop the ChannelMonitorUpdateStatus::PermanentFailure variant 2023-09-21 19:04:05 +00:00
channel.rs Introduce ChannelPhase enum 2023-09-08 10:19:41 +02:00
channel_id.rs Add ChannelId pending change note; formatting 2023-08-28 07:20:23 +02:00
channelmanager.rs Merge pull request #2417 from tnull/2023-07-max-total-fee 2023-09-26 20:07:52 +00:00
features.rs Adds a set of convenience methods to set non-custom features 2023-09-01 11:30:21 +02:00
functional_test_utils.rs Merge pull request #2417 from tnull/2023-07-max-total-fee 2023-09-26 20:07:52 +00:00
functional_tests.rs Merge pull request #2590 from TheBlueMatt/2023-09-default-score-params 2023-09-21 20:40:13 +00:00
inbound_payment.rs Include PaymentId in payer metadata 2023-08-29 11:08:11 -05:00
mod.rs Merge pull request #2568 from tnull/2023-09-housekeeping 2023-09-14 20:17:05 +00:00
monitor_tests.rs Retrieve all possible spendable outputs from transactions 2023-09-28 14:25:30 -07:00
msgs.rs public make_onion_message static method on OnionMessenger 2023-09-20 13:42:35 -07:00
onion_route_tests.rs Merge pull request #2576 from valentinewallace/2023-09-fix-outbound-bp-fail-ev 2023-09-25 16:56:03 +00:00
onion_utils.rs Merge pull request #2576 from valentinewallace/2023-09-fix-outbound-bp-fail-ev 2023-09-25 16:56:03 +00:00
outbound_payment.rs Merge pull request #2417 from tnull/2023-07-max-total-fee 2023-09-26 20:07:52 +00:00
payment_tests.rs Merge pull request #2417 from tnull/2023-07-max-total-fee 2023-09-26 20:07:52 +00:00
peer_channel_encryptor.rs Move keysinterface.rs to a directory-level module called sign. 2023-05-02 21:48:08 -07:00
peer_handler.rs Rename SocketAddress from NetAddress 2023-09-08 20:42:06 +08:00
priv_short_conf_tests.rs Remove unused imports. 2023-08-22 14:28:40 -07:00
reload_tests.rs Drop the ChannelMonitorUpdateStatus::PermanentFailure variant 2023-09-21 19:04:05 +00:00
reorg_tests.rs Rename MonitorEvent::CommitmentTxConfirmed to HolderForceClosed 2023-09-21 19:04:41 +00:00
script.rs
shutdown_tests.rs Provide some test coverage of shutdown msgs for unfunded chans 2023-09-26 00:38:17 +00:00
wire.rs Implement enqueue_message trait requirements on Message enum 2023-05-26 14:40:14 -07:00