Fail the weekly run when the light client checkpoint is stale (#79)

The wallet now refreshes its light client specifications from this repository through the signed
config, so a wallet that never fell back no longer starts from the checkpoint its APK was built with.
That only helps if the checkpoint here is kept fresh.

light_client_specs.py --check-age DAYS reads the relay checkpoint's block number from light-client/,
compares it with the live head, and fails past DAYS. Code Quality runs it weekly with 60 days. The
README asks for the specifications to be regenerated before signing.
This commit is contained in:
SatoshiQaziMuhammed authored and GitHub committed 2026-11-03 08:09:44 +04:00
1 parent eb00e49a52
commit 35feb5afe0
3 files changed
+57 -4

No files matched your search

+9
View File
@@ -66,6 +66,15 @@ served JSON file is re-signed in the same pull request:
python3 scripts/signed_config.py sign --key <targets seed>
```
The light client specifications in `light-client/` carry a relay chain checkpoint. Wallets fetch them through
the signed config and keep a later checkpoint than their APK's, so refresh them before signing:
```
python3 scripts/light_client_specs.py --relay-rpc <zagros rpc> --people-rpc <people rpc> --people-spec <full People spec>
```
Code Quality fails once the checkpoint is more than 60 days old.
Code Quality refuses a tree whose files do not match the signed list, and its weekly run fails a month
before a signature expires.