mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-utils.git
synced 2026-11-26 07:49:56 +00:00
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:
1 parent
eb00e49a52
commit
35feb5afe0
3 files changed
+57
-4
No files matched your search
@@ -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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user