• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KarpelesLab / libwallet / 28355950585
25%

Build:
DEFAULT BRANCH: master
Ran 29 Jun 2026 07:34AM UTC
Jobs 1
Files 131
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Jun 2026 07:31AM UTC coverage: 23.633% (+0.1%) from 23.531%
28355950585

push

github

MagicalTux
wltswap/okx: don't retry deterministic swap reverts (custom program error)

The Solana broadcast retry loop re-fetched a fresh blockhash + re-signed on
any -32002 "Transaction simulation failed", but that envelope covers two
very different cases: a retryable stale blockhash ("... Blockhash not
found") and a DETERMINISTIC program revert ("... Error processing
Instruction 5: custom program error: 0xb"). A fresh blockhash can't cure a
program revert (slippage / unfillable route / etc.), so the loop just burned
3 signing rounds before surfacing the same error.

isRetryableSolanaBroadcast now checks deterministic markers first (custom
program error, error processing instruction, insufficient, slippage,
deserialize) and bails, then allows only genuine transient/blockhash markers
(blockhash, block height exceeded, expired, timeout). Field case
(Jeremy's FLASH swap, custom program error 0xb) now fails fast with its
reason instead of retrying. Adds TestIsRetryableSolanaBroadcast.

Note: this doesn't make a reverting swap succeed — the swap program itself
is rejecting the tx (0xb, deterministic across fresh quotes), which for a
volatile/low-liquidity token is almost always the min-output/slippage check.
The host should raise slippage for such tokens.

Part of unreleased 0.4.72.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

12 of 12 new or added lines in 1 file covered. (100.0%)

4772 of 20192 relevant lines covered (23.63%)

95.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28355950585.1 29 Jun 2026 07:34AM UTC 131
23.63
GitHub Action Run
Source Files on build 28355950585
  • Tree
  • List 131
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28355950585
  • 6fcb1a84 on github
  • Prev Build on master (#28351528930)
  • Next Build on master (#28357719060)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc