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

tx datalake support (Provider) #52

Merged
merged 15 commits into from
Apr 3, 2024
Merged

tx datalake support (Provider) #52

merged 15 commits into from
Apr 3, 2024

Conversation

rkdud007
Copy link
Member

@rkdud007 rkdud007 commented Apr 1, 2024

#48

get_tx_with_proof_from_nonce_range

  1. binsearch for start_block and end_block [0, latest] -> parallel
  2. target nonces array
  3. binserach for N nonces for (start_block, end_block] -> parallel
running 1 test
🕒total_duration: 6.292465958s for 23 rpc calls
🕒total_duration: 7.359445917s for 27 rpc calls
✅start_block: 5604974
✅end_block: 5605054
✅target_nonce_range: [63878, 63879, 63880, 63881, 63882, 63883, 63884, 63885, 63886]
🕒total_duration: 810.984583ms for 3 rpc calls
🕒total_duration: 1.217392041s for 4 rpc calls
🕒total_duration: 1.309934041s for 4 rpc calls
🕒total_duration: 2.338515539s for 8 rpc calls
🕒total_duration: 2.600015623s for 7 rpc calls
✅results: [5604986, 5604994, 5605004, 5605015, 5605024]
🕒total_duration: 789.904416ms for 3 rpc calls
🕒total_duration: 1.072580624s for 4 rpc calls
✅results: [5605034, 5605044]
test evm::tests::get_block_range_from_nonce_range ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 8 filtered out; finished in 11.64s
Screenshot 2024-04-02 at 2 35 35 PM

Ended up

ended up having binsearch for start / end block in this logic, and middle txs are in etherscan api

@rkdud007 rkdud007 marked this pull request as ready for review April 3, 2024 12:28
@rkdud007 rkdud007 changed the title Feat/tx compile tx datalake support (Provider) Apr 3, 2024
@rkdud007 rkdud007 merged commit 1d19dac into main Apr 3, 2024
1 check passed
@rkdud007 rkdud007 deleted the feat/tx-compile branch April 3, 2024 13:06
@rkdud007 rkdud007 mentioned this pull request Apr 3, 2024
4 tasks
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.

1 participant