Skip to content

Reflect removed return value of register_output #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions docs/blockchain_data/pre_filtered_blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,9 @@ impl chain::Filter for Blockchain {
// <insert code for you to watch for this transaction on-chain>
}

fn register_output(&self, output: WatchedOutput) -> Option<(usize, Transaction)> {
fn register_output(&self, output: WatchedOutput) {
// <insert code for you to watch for any transactions that spend this
// output on-chain>
// 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.
}
}
```
Expand All @@ -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) {
// <insert code for you to watch for any transactions that spend this
// output on-chain>
// 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().
}
});
```
Expand Down