Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Don't Request All Block Transactions #378

Merged
merged 1 commit into from
Jun 24, 2021
Merged

Conversation

hayesgm
Copy link
Contributor

@hayesgm hayesgm commented Jun 24, 2021

This patch updates our Etheruem Client code to not ask for transactions, since we instead ask for logs via a different API. This should heavily reduce the total size of the responses we're getting from Ethereum, since there could be 100's of unrelated transctions in a given block that we now just get the hashes for.

See: https://eth.wiki/json-rpc/API#eth_getblockbynumber

This patch updates our Etheruem Client code to _not_ ask for transactions, since we instead ask for logs via a different API. This should heavily reduce the total size of the responses we're getting from Ethereum, since there could be 100's of unrelated transctions in a given block that we now just get the hashes for.

See: https://eth.wiki/json-rpc/API#eth_getblockbynumber
Copy link
Contributor

@coburncoburn coburncoburn left a comment

Choose a reason for hiding this comment

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

definitely good to get less data here

@github-actions

This comment has been minimized.

@hayesgm hayesgm merged commit 350938f into develop Jun 24, 2021
Copy link
Contributor

@jflatow jflatow left a comment

Choose a reason for hiding this comment

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

💪 Great improvement

@hayesgm hayesgm deleted the hayesgm/ethereum-no-trx branch June 24, 2021 22:30
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

1 similar comment
@github-actions
Copy link

Unit Test Results

0 files  ±0  0 suites  ±0   0s ⏱️ ±0s
0 tests ±0  0 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 350938f. ± Comparison against base commit 73c30b7.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants