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

fix: retry with search history enabled after some attempts #5370

Merged
merged 3 commits into from
Nov 1, 2024

Conversation

kylezs
Copy link
Contributor

@kylezs kylezs commented Oct 31, 2024

Pull Request

Closes: PRO-1762

Checklist

Please conduct a thorough self-review before opening the PR.

  • I am confident that the code works.
  • I have written sufficient tests.
  • I have written and tested required migrations.
  • I have updated documentation where appropriate.

Summary

In some cases egress witnessing can fail because the Solana nodes don't keep the transactions in a local cache. This isn't so bad, it just means we might retry a bit more than necessary, and also that we display the status as "pending". This should resolve it though.

Copy link

codecov bot commented Oct 31, 2024

Codecov Report

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

Project coverage is 71%. Comparing base (eedf6b8) to head (49ca0bd).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
engine/src/sol/retry_rpc.rs 0% 29 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##            main   #5370    +/-   ##
======================================
- Coverage     72%     71%    -0%     
======================================
  Files        497     497            
  Lines      86352   86236   -116     
  Branches   86352   86236   -116     
======================================
- Hits       61759   61557   -202     
- Misses     21814   21892    +78     
- Partials    2779    2787     +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kylezs kylezs enabled auto-merge November 1, 2024 14:34
@kylezs kylezs added this pull request to the merge queue Nov 1, 2024
Merged via the queue into main with commit fe65398 Nov 1, 2024
48 of 49 checks passed
@kylezs kylezs deleted the fix/search-all-txs-on-failure branch November 1, 2024 15:34
syan095 added a commit that referenced this pull request Nov 3, 2024
…d-migration

* origin/main:
  fix: retry with search history enabled after some attempts (#5370)
  fix: rpc subscription return types (#5374)
  chore: remove unused stream_utils (#5373)
  fix: always sweep on RPC free balance (#5376)
  fix: make boost detection more accurate (#5369)
  chore: better not contributing error message (#5368)
  chore: rename ElectoralSystemStatus -> ElectionPalletStatus (#5367)
  fix: `request_swap_deposit_address_with_affiliates` refund address is consistent with destination address type (#5360)
  feat: add sol chain tracking metric (#5366)
  fix: remove is_vote_valid (#5363)
  fix: separate lp account for lp api (#5354)
  fix: features for test-externalities (#5365)
  Update localnet polkadot runtime to v1.3.3 (#5337)
dandanlen pushed a commit that referenced this pull request Nov 6, 2024
* fix: retry with search history enabled after some attempts

wip

add const

capture sigs

* chore: increase number of retries

* doc: fix comment
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