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

KarpelesLab / libwallet / 25254395072
24%

Build:
DEFAULT BRANCH: master
Ran 02 May 2026 02:52PM UTC
Jobs 1
Files 111
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

02 May 2026 02:34PM UTC coverage: 20.603% (-0.02%) from 20.624%
25254395072

push

github

MagicalTux
wltacct/FindAccount: fall back to current-network derived address

Asset:list / Account:fetch return an account JSON whose Address
field is the in-memory result of UpdateAddressForNetwork — for a
secp256k1 account on litecoin that's "ltc1...", "L...", or
"M...". The Dart frontend stashes that address and passes it
back as `from` in subsequent calls (Transaction:maxSendable,
Swap:maxSpendable, …). The DB Address column, though, still holds
the account's *creation-time* address (typically the ETH form),
because UpdateAddressForNetwork mutates only in memory and the
non-Solana paths never persist the change.

Result: psql.Get(Address="ltc1...") finds nothing →
FindAccount returns bare fs.ErrNotExist → router maps to HTTP
404 "file does not exist". Reproduces on every Bitcoin-family
chain when the frontend uses the displayed address as `from`.

Fix: after the direct address lookup misses, walk every account,
derive its address for the current network, and match. Bounded
by accounts-per-wallet (small N) and only fires on the slow path
(DB miss). Same path is used for ed25519 / view accounts via the
existing UpdateAddressForNetwork branches, so the behaviour is
uniform across chain families.

Also: wrap the final fs.ErrNotExist with the missing id so future
404s carry the address that wasn't found instead of a bare "file
does not exist".

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

0 of 20 new or added lines in 1 file covered. (0.0%)

1 existing line in 1 file now uncovered.

3073 of 14915 relevant lines covered (20.6%)

126.77 hits per line

Uncovered Changes

Lines Coverage ∆ File
20
7.29
-0.62% wltacct/api.go

Coverage Regressions

Lines Coverage ∆ File
1
7.29
-0.62% wltacct/api.go
Jobs
ID Job ID Ran Files Coverage
1 25254395072.1 02 May 2026 02:52PM UTC 111
20.6
GitHub Action Run
Source Files on build 25254395072
  • Tree
  • List 111
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25254395072
  • 3c3dcaf2 on github
  • Prev Build on master (#25243394479)
  • Next Build on master (#25254751828)
  • 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