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

KarpelesLab / libwallet / 25256164343
24%

Build:
DEFAULT BRANCH: master
Ran 02 May 2026 04:21PM UTC
Jobs 1
Files 112
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 03:30PM UTC coverage: 20.509% (-0.2%) from 20.66%
25256164343

push

github

MagicalTux
wlttx/simulate: dry-run preview for unsigned bitcoin transfers

simulateBitcoin previously only worked on a tx that had already
been built (tx.Raw populated) — it decoded what was already on the
wire. That's not what an approval UI wants: at approval time the
tx hasn't been built yet because the user hasn't confirmed.

New dry-run path: when Type=="bitcoin_transfer" + From + To +
Amount are set but Raw is empty, simulateBitcoin runs the same
fetchUTXOs → coin selection → fee math buildBitcoinTx would,
stops short of signing, and returns the planned shape:
  - inputs with resolved amount + address + path (so the UI can
    flag "spending change UTXO m/1/0" or "received at L...")
  - recipient + change outputs with resolved addresses
  - fee in sats, vsize in vbytes
  - new BitcoinChange field separating change from recipient
    (decode-only sims couldn't tell those apart)
  - new BitcoinVSize field so the approval UI can render
    "fee = X sat × Y vbytes" without reverse-math

Honours Transaction.UTXOs (manual selection from the previous
commits) so a manual coin-pick previews exactly what it'll spend.

Decode-from-Raw path unchanged.

Dart's TransactionSimulation grows bitcoinChange / bitcoinVSize +
adds path to BitcoinIO. All optional / empty-string defaults so
post-build sims stay backwards-compatible with the old shape.

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

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

229 existing lines in 2 files now uncovered.

3109 of 15159 relevant lines covered (20.51%)

124.68 hits per line

Uncovered Changes

Lines Coverage ∆ File
100
0.58
-0.12% wlttx/simulate.go

Coverage Regressions

Lines Coverage ∆ File
146
9.41
6.02% wlttx/bitcoin.go
83
0.0
0.0% wlttx/transaction.go
Jobs
ID Job ID Ran Files Coverage
1 25256164343.1 02 May 2026 04:21PM UTC 112
20.51
GitHub Action Run
Source Files on build 25256164343
  • Tree
  • List 112
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25256164343
  • d8fe2f92 on github
  • Prev Build on master (#25254923683)
  • Next Build on master (#25256390327)
  • 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