Skip to content

Commit 46e1b71

Browse files
author
Conor Okus
authored
Merge pull request #158 from tnull/2022-08-update-filter-doc-for-removed-return
Reflect removed return value of `register_output`
2 parents a8bbd1b + e666aa7 commit 46e1b71

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

docs/blockchain_data/pre_filtered_blocks.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,9 @@ impl chain::Filter for Blockchain {
2121
// <insert code for you to watch for this transaction on-chain>
2222
}
2323

24-
fn register_output(&self, output: WatchedOutput) -> Option<(usize, Transaction)> {
24+
fn register_output(&self, output: WatchedOutput) {
2525
// <insert code for you to watch for any transactions that spend this
2626
// output on-chain>
27-
// If you are fetching pre-filtered blocks, and do not fetch in-block
28-
// descendants of transactions, return any in-block spend of the given
29-
// output.
30-
// Otherwise return None.
3127
}
3228
}
3329
```
@@ -43,13 +39,9 @@ Filter tx_filter = Filter.new_impl(new Filter.FilterInterface() {
4339
}
4440

4541
@Override
46-
Option_C2Tuple_usizeTransactionZZ register_output(WatchedOutput output) {
42+
public void register_output(WatchedOutput output) {
4743
// <insert code for you to watch for any transactions that spend this
4844
// output on-chain>
49-
// If you are fetching pre-filtered blocks, and do not fetch in-block
50-
// descendants of transactions, return any in-block spend of the given
51-
// output.
52-
// Otherwise return Option_C2Tuple_usizeTransactionZZ.none().
5345
}
5446
});
5547
```

0 commit comments

Comments
 (0)