README.md raw

Checkpoint, pause, backup and restore, 2026-10-21

One complete Chromium run against torly (3334) and two gateways, each started with -chains btc / -chains blake -allow-command getdata,block, the page served from bin/web on 8080. The browser profile was empty, so each chain's light client started from the checkpoint in its profile: btc 23500, blake 42000 (demonstration values below each tip; the rig's two chains share only genesis, so there is no real shared prefix to skip here).

stepevidence
from the checkpointneutrino: regtest 23500..24971 from the checkpoint at 23500: 1471 headers, 1471 filter headers, 1471 filters, 214.3 KiB in 44.069s (33 filters/s, 4.9 KiB/s)
pausepaused at tip 43575 (filters 42309) — headers already stored, filters at the last verified one
resumewallet from 42310 to tip 43575; the client downloaded the remaining 1266 filters and no headers
automatic promptSave a backup of the chain data now? It is the expensive part of setting up another instance.
backupsaved 2 chains, 6 chunk(s), 0.2 MiB of filters; btc 1471 filters in 113,512 bytes, blake 1575 in 121,569
restoreinto a second fresh profile from the files alone: tips 0/0 → 24971/43575 with no sync
reloadtips survive in IndexedDB; the wallet is locked, as a reload should leave it
unlock + resume after restoreboth chains unlocked from the reloaded page, then from 24972 to tip 24971; the client log for that sync: 0 headers, 0 filter headers, 0 filters

Screenshots: 01-connected-checkpoints, 02-btc-synced-from-checkpoint, 03-blake-paused, 04-blake-resumed, 05-backup-saved, 06-restored, 07-reloaded-restored, 08-resume-after-restore. chunks/ is the backup the page wrote: manifest.json plus six NSBK chunk files whose SHA-256 and sizes the driver checked against the manifest. run5.py is the driver and run5.log its log; summary.json is its own record.

What the run found

Three real defects, each fixed with a test:

installs the profile's anchor first.

chain but not the wallet's position, so a restored wallet showed 0/0. Both are recorded now (domain.Sync asks the chain on failure; domain.AdoptPosition after a restore).

The first version of this driver also left the wallet locked after the reload; the fix is the unlock step in the table above, which this run exercises.