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

spesmilo / electrum / 5364395083038720
65%
master: 66%

Build:
Build:
LAST BUILD BRANCH: create_channel_storage_returns_dict
DEFAULT BRANCH: master
Ran 20 Apr 2026 01:48AM UTC
Jobs 1
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

20 Apr 2026 01:39AM UTC coverage: 64.855% (+0.02%) from 64.838%
5364395083038720

Pull #10592

CirrusCI

SomberNight
wallet_db: put 'genesis_blockhash' in DB, detect mainnet/testnet mixup

If the user tries to open a wallet for a different chain (mainnet vs testnet), try to show a reasonable error message.

See previous attempt at this: https://github.com/spesmilo/electrum/commit/<a class=hub.com/spesmilo/electrum/commit/c13e05770150c5210783c3d42d3d2b1a683f18b4">c13e05770, which added `wallet.test_addresses_sanity()`. However there are many codepaths where "random" exceptions might get raised before the Wallet object is even instantiated.
See [discussion there](https://github.com/spesmilo/electrum/commit/c13e05770150c5210783c3d42d3d2b1a683f18b4#commitcomment-28017341):
> should we actually fix that?
> if yes, it would be better to write the network type in storage

Indeed now I think we should do that. At the time I was concerned it would not help against altcoin forks if we put "mainnet" or "testnet" in the DB. Now I realise we should just put the genesis block hash in the DB instead.

Many of the reports in https://github.com/spesmilo/electrum/issues/6526 are likely due to users trying to open a mainnet wallet in testnet mode or vice-versa.

fixes https://github.com/spesmilo/electrum/issues/9134
    same issue in wizard 2fa two-step wallet-creation flow
Pull Request #10592: wallet_db: put 'genesis_blockhash' in DB, detect mainnet/testnet mixup. (db upgrade)

20 of 21 new or added lines in 2 files covered. (95.24%)

19 existing lines in 1 file now uncovered.

24434 of 37675 relevant lines covered (64.85%)

0.65 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
82.06
0.15% electrum/wallet_db.py

Coverage Regressions

Lines Coverage ∆ File
19
70.3
0.0% electrum/bip21.py
Jobs
ID Job ID Ran Files Coverage
1 5364395083038720.1 20 Apr 2026 01:48AM UTC 86
64.85
Source Files on build 5364395083038720
  • Tree
  • List 86
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Build #53643950...
  • Pull Request #10592
  • PR Base - master (#52094900...)
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