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

Neptune-Crypto / neptune-core / 20265011395
75%

Build:
DEFAULT BRANCH: master
Ran 16 Dec 2025 11:50AM UTC
Jobs 1
Files 264
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

16 Dec 2025 10:38AM UTC coverage: 75.393% (+0.3%) from 75.087%
20265011395

push

github

Sword-Smith
perf(wallet): Avoid linear search through all expected UTXOs

Add an index to the wallet database allowing for fast lookup of addition
record -> expected UTXO. This avoids the looping over all expected UTXOs
when scanning for matches between expected UTXOs and addition records
during `WalletState::update_wallet_state_with_new_block`, in the method
`WalletState::scan_for_expected_utxos`.

This adds an extra step to the v1 -> v2 wallet migration function
`v1_to_v2::migrate`, since all expected UTXOs must be looped over and
added to the index. In this process we also eliminate potential
duplicates (two expected UTXOs with same addition record) by clearing
the expected UTXO list and rebuilding it. Since the v2 version of the
wallet database has not yet been merged into master, we don't need a
database version yet, as we can simply expand on v2.

144 of 153 new or added lines in 5 files covered. (94.12%)

346 existing lines in 11 files now uncovered.

26628 of 35319 relevant lines covered (75.39%)

649021.65 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
73.07
0.34% neptune-core/src/application/rpc/server.rs
2
93.9
neptune-core/src/state/wallet/migrate_db/v1_to_v2.rs
6
92.45
11.45% neptune-core/src/state/wallet/rusty_wallet_database.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
93.06
-0.19% neptune-core/src/state/mempool.rs
1
87.18
0.0% neptune-core/src/state/mempool/upgrade_priority.rs
3
87.5
-3.41% neptune-core/src/state/wallet/migrate_db/migrate_db_impl.rs
5
92.86
-7.14% neptune-core/src/state/wallet/wallet_db_tables.rs
10
46.67
5.93% neptune-core/src/application/database/storage/storage_schema/rusty_key.rs
18
85.5
-12.48% neptune-core/src/state/wallet/monitored_utxo.rs
19
92.45
11.45% neptune-core/src/state/wallet/rusty_wallet_database.rs
29
81.53
-0.26% neptune-core/src/application/database/neptune_leveldb.rs
50
73.07
0.34% neptune-core/src/application/rpc/server.rs
98
91.25
0.47% neptune-core/src/state/wallet/wallet_state.rs
112
83.57
0.89% neptune-core/src/state/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 20265011395.1 16 Dec 2025 11:50AM UTC 264
75.39
GitHub Action Run
Source Files on build 20265011395
  • Tree
  • List 264
  • Changed 16
  • Source Changed 13
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20265011395
  • c3d247e9 on github
  • Prev Build on master (#20187498185)
  • Next Build on master (#20453090654)
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