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

spesmilo / electrum / 4829117322887168
63%

Build:
DEFAULT BRANCH: master
Ran 15 May 2025 07:45PM UTC
Jobs 5
Files 87
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 May 2025 07:35PM UTC coverage: 59.726% (+0.002%) from 59.724%
4829117322887168

push

CirrusCI

SomberNight
synchronizer: get_transaction should discard tx_height as it can change

tx_height comes from the `get_history` RPC, we then call the `get_transaction` RPC.
By the time the `get_transaction` RPC returns, we might have received another
scripthash status update, called `get_history` again, and updated height for the txid.
Synchronizer._get_transaction() should not call adb.receive_tx_callback() with
the old tx_height (but it was doing exactly that).

Patch to trigger, e.g. regtest failures:
(e.g. for tests.regtest.TestLightningAB.test_extract_preimage)
```
diff --git a/electrum/interface.py b/electrum/interface.py
index 8649652b9c..fce7a1c6de 100644
--- a/electrum/interface.py
+++ b/electrum/interface.py
@@ -991,6 +991,7 @@ class Interface(Logger):
         return res

     async def get_transaction(self, tx_hash: str, *, timeout=None) -> str:
+        await asyncio.sleep(3)
         if not is_hash256_str(tx_hash):
             raise Exception(f"{repr(tx_hash)} is not a txid")
         raw = await self.session.send_request('blockchain.transaction.get', [tx_hash], timeout=timeout)

```

6 of 12 new or added lines in 2 files covered. (50.0%)

3 existing lines in 3 files now uncovered.

21549 of 36080 relevant lines covered (59.73%)

2.98 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
29.0
0.0% electrum/synchronizer.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
80.24
-0.29% electrum/crypto.py
1
65.48
-0.09% electrum/lnchannel.py
1
58.1
-0.05% electrum/lnpeer.py
Jobs
ID Job ID Ran Files Coverage
1 4829117322887168.1 15 May 2025 07:45PM UTC 87
59.69
2 4829117322887168.2 15 May 2025 07:45PM UTC 87
59.69
3 4829117322887168.3 15 May 2025 07:45PM UTC 87
59.7
4 4829117322887168.4 15 May 2025 07:46PM UTC 87
59.68
5 4829117322887168.5 15 May 2025 08:05PM UTC 87
59.68
Source Files on build 4829117322887168
  • Tree
  • List 87
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Build #48291173...
  • b1f0c6e3 on github
  • Prev Build on master (#64016717...)
  • Next Build on master (#50748513...)
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