-
Notifications
You must be signed in to change notification settings - Fork 58
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
feat: get logs batching #658
Conversation
@@ -30,6 +32,7 @@ def __init__( | |||
manager: The Manager object | |||
w3: The connected AsyncWeb3 object. | |||
""" | |||
self._blockchain = blockchain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can obtain this from self.cfg.network.NETWORK
or something similar, rather than creating a duplicated attribute.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or maybe self.cfg.NETWORK
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EventGatherer has no access to the config object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, then it is probably better to add the Config object rather than the blockchain ID, since it ensures that the same blockchain IDs are used across the code (i.e., it helps preventing mistakes, so one just needs to pass the same Config object which is used everywhere else in the system).
@@ -30,6 +32,7 @@ def __init__( | |||
manager: The Manager object | |||
w3: The connected AsyncWeb3 object. | |||
""" | |||
self._blockchain = blockchain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, then it is probably better to add the Config object rather than the blockchain ID, since it ensures that the same blockchain IDs are used across the code (i.e., it helps preventing mistakes, so one just needs to pass the same Config object which is used everywhere else in the system).
No description provided.