From e666aa752f32c1bf3e71b4b7df3c48cd73b10454 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Thu, 11 Aug 2022 14:44:26 +0200 Subject: [PATCH] Reflect removed return value of `register_output` This reflects the changes made to the `Filter::register_output` interface in rust-lightning#1663. Should hence be only merged after/if this lands. --- docs/blockchain_data/pre_filtered_blocks.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/docs/blockchain_data/pre_filtered_blocks.md b/docs/blockchain_data/pre_filtered_blocks.md index 6adc67230..c1d59342f 100644 --- a/docs/blockchain_data/pre_filtered_blocks.md +++ b/docs/blockchain_data/pre_filtered_blocks.md @@ -21,13 +21,9 @@ impl chain::Filter for Blockchain { // } - fn register_output(&self, output: WatchedOutput) -> Option<(usize, Transaction)> { + fn register_output(&self, output: WatchedOutput) { // - // If you are fetching pre-filtered blocks, and do not fetch in-block - // descendants of transactions, return any in-block spend of the given - // output. - // Otherwise return None. } } ``` @@ -43,13 +39,9 @@ Filter tx_filter = Filter.new_impl(new Filter.FilterInterface() { } @Override - Option_C2Tuple_usizeTransactionZZ register_output(WatchedOutput output) { + public void register_output(WatchedOutput output) { // - // If you are fetching pre-filtered blocks, and do not fetch in-block - // descendants of transactions, return any in-block spend of the given - // output. - // Otherwise return Option_C2Tuple_usizeTransactionZZ.none(). } }); ```