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

spesmilo / electrum / 6124425738715136
60%
master: 63%

Build:
Build:
LAST BUILD BRANCH: 202601_qml_wallet_unlocked
DEFAULT BRANCH: master
Ran 14 Apr 2025 02:27PM UTC
Jobs 5
Files 86
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

14 Apr 2025 02:21PM UTC coverage: 60.317% (+0.02%) from 60.3%
6124425738715136

Pull #9733

CirrusCI

f321x
Stop including all invoice r_tags in legacy trampoline onion

This change modifies create_trampoline_onion to only include as many
available r_tags as there is space left in the trampoline onion payload.

Previously we tried to include all passed invoice r_tags of legacy
trampoline payments into the payload which caused an user facing
exception and payment failure as the onion can only store a max of 400
bytes.
A single, single hop r_tag is around 52 bytes and the payload
without r_tags is already at ~280 bytes. So usually there is enough
space for 2 r_tags.
The implementation shuffles the r_tags on each call
so the payment will try different route hints on the attempts (fee level
increase or user retry).

I have logged the following byte sizes of the trampoline onion with a 2
trampoline onion hop and changing amounts of r_tags:

3 rtags:
payload size [0]: 113 (hop size: 81)
payload size [1]: 440 (hop size: 295) ( 52 bytes/rtag )
payload size [2]: 550 (hop size: 78)

2 rtags:
payload size [0]: 113 (hop size: 81)
payload size [1]: 386 (hop size: 241) ( 52 bytes/rtag )
payload size [2]: 496 (hop size: 78)

1 rtag:
payload size [0]: 113 (hop size: 81)
payload size [1]: 334 (hop size: 189) ( 52 bytes/rtag )
payload size [2]: 444 (hop size: 78)

0 rtags:
payload size [0]: 113 (hop size: 81)
payload size [1]: 282 (hop size: 137)
payload size [2]: 392 (hop size: 78)

As can be seen in the data, using 2 trampoline hops there is not enough
space for even a single r_tag which is why this option is being removed
too.
Pull Request #9733: lightning: stop including all invoice r_tags in legacy trampoline onion

28 of 29 new or added lines in 2 files covered. (96.55%)

3 existing lines in 3 files now uncovered.

21602 of 35814 relevant lines covered (60.32%)

3.01 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
90.48
0.42% electrum/trampoline.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
80.24
-0.29% electrum/crypto.py
1
68.4
-0.09% electrum/lnchannel.py
1
58.14
-0.05% electrum/lnpeer.py
Jobs
ID Job ID Ran Files Coverage
1 6124425738715136.1 14 Apr 2025 02:27PM UTC 86
60.26
2 6124425738715136.2 14 Apr 2025 02:27PM UTC 86
60.29
3 6124425738715136.3 14 Apr 2025 02:29PM UTC 86
60.29
4 6124425738715136.4 14 Apr 2025 02:29PM UTC 86
60.28
5 6124425738715136.5 14 Apr 2025 02:44PM UTC 86
60.28
Source Files on build 6124425738715136
  • Tree
  • List 86
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Build #61244257...
  • Pull Request #9733
  • PR Base - master (#59278139...)
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