Skip to content

Conversation

@tnull
Copy link
Contributor

@tnull tnull commented Aug 11, 2022

Since the methods implementing the Filter interface should never block, returning a spending transactions from register_output was practically infeasible.

This PR hence removes the return value and cleans up the interface.

Since I'm already 'here', I now added another commit addressing a slight doc nit regarding Confirm::get_relevant_txids() I had for some time now.

Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@valentinewallace valentinewallace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this for us
Screen Shot 2022-08-15 at 12 34 48 PM

Basically looks good to me, just wanted to document the reasoning for some of the changes

tnull added 2 commits August 15, 2022 20:47
This commit removes the return value from `Filter::register_output` as
creating a suitable value almost always entails blocking operations
(e.g., lookups via network request), which however conflicts with the
requirement that user calls should avoid blocking calls at all cost.

Removing the return value also rendered quite a bit of test code for
dependent transaction handling superfluous, which is therefore also
removed with this commit.
@tnull tnull force-pushed the 2022-08-drop-register-output-return branch from c1ad123 to c562f33 Compare August 15, 2022 18:56
@tnull
Copy link
Contributor Author

tnull commented Aug 15, 2022

Squashed commits and updated commit message.

@TheBlueMatt TheBlueMatt merged commit 4005724 into lightningdevkit:main Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants