]> git.bitcoin.ninja Git - rust-lightning/commit
Return optional Transaction from register_output
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 10 Mar 2021 17:13:21 +0000 (09:13 -0800)
committerJeffrey Czyz <jkczyz@gmail.com>
Sun, 21 Mar 2021 04:54:36 +0000 (00:54 -0400)
commitd70fdd3a5c7bb2f240ef9de0fa075494b3923fe5
tree6b552b866591650c9fb4177a5198dc82e207a687
parent8a8c75a8fc96e5c8ed59e6d80a517bc59215b4d6
Return optional Transaction from register_output

Electrum clients primarily operate by subscribing to notifications of
transactions by script pubkeys. Therefore, they will send filtered
transaction data without including dependent transactions. Outputs for
such transactions must be explicitly registered with these clients.

Therefore, upon block_connected, provide a mechanism for an Electrum-
backed chain::Filter to return new transaction data to scan.
lightning/src/chain/mod.rs
lightning/src/util/test_utils.rs