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

KarpelesLab / libwallet / 24436853444
25%

Build:
DEFAULT BRANCH: master
Ran 15 Apr 2026 04:54AM UTC
Jobs 1
Files 82
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

15 Apr 2026 04:44AM UTC coverage: 21.241% (-0.5%) from 21.736%
24436853444

push

github

MagicalTux
on-chain tx-history backfill (EVM; modchain + Otterscan)

Populates the local Transaction table with on-chain activity for the
current (account, network) so `client.transactions.list()` actually
reflects the account — incoming sends, activity from other devices,
and pre-restore history — not just txs this install broadcast.

Go (wltbase/tx_history.go):
- scheduleTxHistoryBackfill(env, acct, net) — idempotent,
  goroutine-local, bounded by a 45 s timeout and 40 pages.
- backfillEVMFromModchain: paginated modchain_historyByAddress,
  short-circuits when it sees a tx it already has (O(page-size)
  on warm cache).
- backfillEVMFromOtterscan: same shape via ots_searchTransactionsAfter
  (erigon v3 + Otterscan extension) — used as a fallback when the
  RPC doesn't expose modchain_*.
- Dedup by (Hash, Network) lookup before insert; locally-built txs
  are never overwritten.
- Graceful fallthrough: either path failing (method-not-found,
  auth, rate-limit) is an info log, not an error — the user still
  sees their locally-built txs.
- v1: EVM only. BTC / Solana have different indexing stories
  (xpub-scan + getSignaturesForAddress); follow-up.

Triggers:
- wltacct.accountSetCurrent and wltnet.networkSetCurrent each emit
  a {type}:current_changed event on the env emitter hub after
  saving. wltbase.watchCurrentChanges listens on both and schedules
  a sweep for the now-current (account, network) pair. Initial
  sweep runs at env startup too.
- When new rows are inserted, broadcast tx:history_updated
  {account, network, count}.

Dart:
- New TxHistoryUpdatedEvent sealed subclass + client.txHistoryUpdates
  stream. Host rebinds its transaction list on each event.
- Barrel export updated.

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

0 of 226 new or added lines in 4 files covered. (0.0%)

3 existing lines in 3 files now uncovered.

2109 of 9929 relevant lines covered (21.24%)

2.57 hits per line

Uncovered Changes

Lines Coverage ∆ File
210
0.0
wltbase/tx_history.go
6
7.43
-0.26% wltacct/api.go
5
35.57
-1.24% wltbase/env.go
5
4.17
-0.08% wltnet/api.go

Coverage Regressions

Lines Coverage ∆ File
1
7.43
-0.26% wltacct/api.go
1
35.57
-1.24% wltbase/env.go
1
4.17
-0.08% wltnet/api.go
Jobs
ID Job ID Ran Files Coverage
1 24436853444.1 15 Apr 2026 04:54AM UTC 82
21.24
GitHub Action Run
Source Files on build 24436853444
  • Tree
  • List 82
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24436853444
  • 6625c82c on github
  • Prev Build on master (#24436536047)
  • Next Build on master (#24499799240)
  • 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