-
Notifications
You must be signed in to change notification settings - Fork 75
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
Blockchain events improvements #3446
Blockchain events improvements #3446
Conversation
zsculac
commented
Nov 29, 2024
- Add isBlocking to db
- Move ABI to constants
- Move contract initialization inside ot-ethers
…ain-events-improvements
@@ -83,6 +96,13 @@ class OtEthers extends BlockchainEventsService { | |||
`RPC Fallback Provider initialization failed. Fallback Provider quorum: ${FALLBACK_PROVIDER_QUORUM}. Error: ${e.message}.`, | |||
); | |||
} | |||
|
|||
this.operationalWallets[blockchain] = this.getValidOperationalWallets(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.
I dont think this is needed for event listner as we are not sending any transactions
src/commands/command-executor.js
Outdated
@@ -449,6 +472,12 @@ class CommandExecutor { | |||
|
|||
const commands = []; | |||
for (const command of pendingCommands) { | |||
if (command?.isBlocking === true && command?.parentId === null) { |
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.
You don't need to check if boolean is equal to true, you can just use isBlocking && ...
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.
Imo we should have stricter conditions, truthy conditions may cause issues that are hard to debug
…d installer, added blockchain events service config validation
…vent-listener Blockchain event listener improvements