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

Blockchain events improvements #3446

Merged
merged 12 commits into from
Dec 1, 2024

Conversation

zsculac
Copy link

@zsculac zsculac commented Nov 29, 2024

  • Add isBlocking to db
  • Move ABI to constants
  • Move contract initialization inside ot-ethers

@@ -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);
Copy link
Collaborator

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

@@ -449,6 +472,12 @@ class CommandExecutor {

const commands = [];
for (const command of pendingCommands) {
if (command?.isBlocking === true && command?.parentId === null) {
Copy link
Collaborator

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 && ...

Copy link
Member

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

@u-hubar u-hubar merged commit 865100c into v8/event-listener-module Dec 1, 2024
1 of 3 checks passed
@u-hubar u-hubar deleted the v8/blockchain-events-improvements branch December 1, 2024 17:14
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