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

perf: improve wasm block sync efficiency #226

Closed
wants to merge 18 commits into from
Closed

Conversation

sherpalden
Copy link
Collaborator

@sherpalden sherpalden commented Jul 11, 2024

  • Implemented batch query for block transactions.
  • Fetch only those transactions that are executed from the IBC handler contract.
  • Pushed IBCHeader to IBCHeaderCache for required block height only.
  • Removed block verification because the light client eventually verifies for any transaction. So, there's no need for additional verification in the relayer. After all, the relayer is trustless.

@sherpalden sherpalden self-assigned this Jul 11, 2024
@sherpalden sherpalden added wasm enhancement New feature or request labels Jul 11, 2024
Copy link

codecov bot commented Jul 11, 2024

Codecov Report

Attention: Patch coverage is 0% with 283 lines in your changes missing coverage. Please review.

Project coverage is 11.02%. Comparing base (478dea5) to head (b370df3).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
relayer/chains/wasm/wasm_chain_processor.go 0.00% 179 Missing ⚠️
relayer/chains/wasm/query.go 0.00% 104 Missing ⚠️

❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #226      +/-   ##
==========================================
- Coverage   11.47%   11.02%   -0.46%     
==========================================
  Files          85       85              
  Lines       20409    20885     +476     
==========================================
- Hits         2342     2302      -40     
- Misses      17813    18339     +526     
+ Partials      254      244      -10     
Files with missing lines Coverage Δ
relayer/chains/wasm/provider.go 0.00% <ø> (-25.00%) ⬇️
relayer/chains/wasm/query.go 0.00% <0.00%> (ø)
relayer/chains/wasm/wasm_chain_processor.go 0.00% <0.00%> (ø)

... and 7 files with indirect coverage changes

@sherpalden sherpalden closed this Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wasm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimize the efficiency of blocks and transactions fetching in wasm chains.
3 participants