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

tari-project / tari / 19673252153 / 1
61%
development: 61%

Build:
DEFAULT BRANCH: development
Ran 25 Nov 2025 04:53PM UTC
Files 705
Run time 38s
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

25 Nov 2025 02:37PM UTC coverage: 60.373% (-1.0%) from 61.332%
19673252153.1

push

github

web-flow
feat: improve base node check-db command (#7576)

Description
---
1. Improved the 'check-db' command to perform:
  - accumulated difficulty, with or without autocorrect;
- blockchain consistency light mode - block and header readability in
the database, with or without autocorrect;
- blockchain consistency full mode - block and header readability in the
database with block contents validation, with or without autocorrect;
- accumulated difficulty + blockchain consistency (light/full), with or
without autocorrect.

2. Added a low-level function to the lmdb_db to report on and verify
metadata keys. Corrupt non-essential keys will be auto-deleted.

The 'check-db' command runs and reports in the background, check status
persists across base node restarts and consecutive 'check-db' runs, and
'check-db' runs can be stopped at any time or restarted from the genesis
block.

```
>> check-db -h

USAGE:
    check-db [OPTIONS] --mode <MODE>

OPTIONS:
    -b, --breathing-time-ms <BREATHING_TIME_MS>
            Milli-seconds 'breathing time' between consecutive checks - very short breathing time
            may starve other critical tasks (minimum 1 ms, maximum 1000ms, default 10ms) [default:
            10]

        --do-not-clear-counters-on-error-or-stop
            Option to not clear counters when error detected or user requested a stop (Default:
            false). Note: This is a long-winded-option-to-write intended for expert use

    -h, --help
            Print help information

    -m, --mode <MODE>
            What to check [possible values: light-chain, light-autocorrect, full-chain,
            full-autocorrect, acc-diff, acc-diff-autocorrect, all-light, all-full,
            all-light-autocorrect, all-full-autocorrect, print-status, reset-counters, stop]

    -p, --poll-seconds <POLL_SECONDS>
            Seconds between status polls (default 15s) [default: 15]
```

Fixes #7575.

Motivation and Context
---

The 'check-db' command only verified that al... (continued)

69949 of 115862 relevant lines covered (60.37%)

689701.92 hits per line

Source Files on job 19673252153.1
  • Tree
  • List 705
  • Changed 61
  • Source Changed 21
  • Coverage Changed 60
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 19673252153
  • bca05d09 on github
  • Prev Job for on development (#19627520782.1)
  • Next Job for on development (#19694083316.1)
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