Skip to content
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

Implement Besu PrivateLog flowable subscription #1198

Merged
merged 4 commits into from
May 4, 2020

Conversation

lucassaldanha
Copy link
Contributor

What does this PR do?

One of the things that I noticed, is that the org.web3j.protocol.core.filters.Filter abstract class has a bunch of logic that can be reused for our filter. I notice that the BlockFilter, PendingTransactionFilter and LogFilter classes extend it.

However, the visibility of most of the needed methods of the Filter class are default. That forces any new filter class to be included in the same package as the Filter class.

Given that this is a web3j core package, I think adding Besu specific classes isn’t the best way forward.

If we change the visibility to protected, any class extending the Filter class would be able to use them. This way, I can create a PrivateLogFilter class in the besu package and still reuse most of the code for filters.

Where should the reviewer start?

TODO

Why is it needed?

To better support different types of filters that aren't standard.

@lucassaldanha lucassaldanha marked this pull request as ready for review April 27, 2020 23:03
Copy link
Contributor

@iikirilov iikirilov left a comment

Choose a reason for hiding this comment

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

LGTM

@iikirilov iikirilov merged commit 11950f6 into hyperledger-web3j:master May 4, 2020
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.

2 participants