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

improve(ProviderUtils): Add filtered key to eth_getLogs #850

Merged
merged 4 commits into from
Aug 3, 2023

Conversation

nicholaspai
Copy link
Member

@nicholaspai nicholaspai commented Aug 2, 2023

We've seen QuickNode add in a transactionLogIndex field which isn't in the spec and is causing quorum agreement issues

We've seen QuickNode add in a `transactionLogIndex` field which isn't in the spec and is causing quorum agreement issues
Copy link
Contributor

@james-a-morris james-a-morris left a comment

Choose a reason for hiding this comment

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

LGTM - one nit

Comment on lines 103 to 110
const compareResultsAndFilterIgnoredKeys = (ignoredKeys: string[], rpcResultA: any, rpcResultB: any): boolean => {
const ignoredMappingsA = deleteIgnoredKeys(ignoredKeys, rpcResultA);
const ignoredMappingsB = deleteIgnoredKeys(ignoredKeys, rpcResultB);
const result = lodash.isEqual(rpcResultA, rpcResultB);
addIgnoredFilteredKeys(ignoredMappingsA, rpcResultA);
addIgnoredFilteredKeys(ignoredMappingsB, rpcResultB);
return result;
};
Copy link
Contributor

Choose a reason for hiding this comment

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

It may be beneficial to break this out into its own non-anonymous function definition as its static.

Copy link
Member Author

Choose a reason for hiding this comment

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

perhaps this should just be a common utility. Thoughts on this refactor? 93eaae5

@nicholaspai nicholaspai merged commit 47bc8a6 into master Aug 3, 2023
2 checks passed
@pxrl pxrl deleted the quorum-provider-filter branch September 5, 2024 10:31
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