mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-utils.git
synced 2026-11-05 16:51:07 +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
@@ -88,6 +88,11 @@ jobs:
|
||||
- name: Targets signed and matching every served file
|
||||
run: python3 scripts/signed_config.py check
|
||||
|
||||
# A wallet that never fell back to its light client has no saved state, so its first fallback
|
||||
# starts from this checkpoint; refreshed specifications reach wallets through the signed config.
|
||||
- name: Light client checkpoint not stale
|
||||
run: python3 scripts/light_client_specs.py --relay-rpc https://zagros-rpc.pezkuwichain.io --check-age 60
|
||||
|
||||
chain-integrity:
|
||||
name: Chain Config Integrity
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in new issue
Block a user