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

KarpelesLab / libwallet / 25319544056
24%

Build:
DEFAULT BRANCH: master
Ran 04 May 2026 12:49PM UTC
Jobs 1
Files 113
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

04 May 2026 12:35PM UTC coverage: 20.937% (+0.008%) from 20.929%
25319544056

push

github

MagicalTux
wlttx/bitcoin: priority field selects cheap vs fast fee budget

Lets the user pick whether they want the tx to be cheap or fast.
Same shape Solana already uses — the PriorityLevel string
("low" / "medium" / "high"). Bitcoin maps it to
estimatesmartfee's confirmation target:

  "low"           → 144 blocks  (cheap, hours)
  "" / "medium"   →  6 blocks  (default)
  "high"          →  2 blocks  (fast)

MaxSendableRequest grows a Priority field that flows into
the bitcoin path; the returned BitcoinFeeRate carries the
resolved sat/vB so the caller can pin it on the build call (or
use UnsignedTransaction.maxSend which threads it for them).

buildBitcoinTx fee-rate resolution order:
  1. tx.BitcoinFeeRate  (pinned — wins)
  2. estimatesmartfee at the conf target tx.PriorityLevel maps to
  3. 10 sat/vB fallback on RPC error

Dart side:
  - transactions.maxSendable() takes optional `priority`
  - UnsignedTransaction.priorityLevel doc updated to mention
    bitcoin's mapping (it was Solana-only before)

Tests pin the priority → conf target mapping so a future
"let's flip low and high" refactor lands loud.

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

7 of 20 new or added lines in 2 files covered. (35.0%)

349 existing lines in 3 files now uncovered.

3203 of 15298 relevant lines covered (20.94%)

124.73 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
17.72
0.87% wlttx/bitcoin.go
2
13.22
-0.29% wlttx/maxsendable.go

Coverage Regressions

Lines Coverage ∆ File
153
13.22
-0.29% wlttx/maxsendable.go
107
17.72
0.87% wlttx/bitcoin.go
89
0.0
0.0% wlttx/transaction.go
Jobs
ID Job ID Ran Files Coverage
1 25319544056.1 04 May 2026 12:49PM UTC 113
20.94
GitHub Action Run
Source Files on build 25319544056
  • Tree
  • List 113
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25319544056
  • e3acfa1f on github
  • Prev Build on master (#25316426799)
  • Next Build on master (#25320030805)
  • 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