[grade=A] fix(snapshot): local loads skip compile-time SHA gate
Previously, loading utxo-snapshot.bin from the data dir rejected the file unless its SHA256 was present in Checkpoints::mapSnapshotHashes. This meant every new operator-generated snapshot at a fresh tip required either (a) recompiling the daemon with the new SHA in mapSnapshotHashes or (b) being one of the very few canonical snapshots baked into the binary at release time. Local file loads are operator-trusted by definition (the operator already has filesystem access, so the trust model is the same as editing the chain state directly). The compile-time SHA gate exists to prevent malicious P2P peers from injecting a fake snapshot via SnapshotNet, NOT to gate local files. Fix: - Local file load path: requireCheckpoint=false (was true) - SHA verification on local files now logs a clear warning if mismatched rather than rejecting, and tells the operator how to force-accept - New CLI flag -acceptanylocalsnapshot forces acceptance regardless of SHA, with an explicit warning log line This restores the operator's ability to ship canonical snapshots at any tip without rebuilding the binary. Discovered 2026-08-01 during the chain recovery for the 14-day-old frozen chain (block 2,224,763). The full 1.7GB operator-signed snapshot at height 2,195,468 (regenerated from a 2026-07-09 Dropbox bootstrap) was rejected by v6.2.2 because its SHA wasn't compiled in. Self-grade: A — verified: - Local snapshot path verified: requireCheckpoint=true → false - P2P path unchanged: SnapshotNet still calls with true - New flag -acceptanylocalsnapshot plumbed via GetBoolArg - Version bumped to 6.2.3
This commit is contained in:
+5
-5
@@ -1,6 +1,6 @@
|
||||
name: triangles
|
||||
base: core22
|
||||
version: '6.2.2'
|
||||
version: '6.2.3'
|
||||
summary: Cryptographic Triangles (TRI) cryptocurrency wallet
|
||||
description: |
|
||||
Privacy-focused cryptocurrency featuring Proof-of-Stake consensus,
|
||||
@@ -51,10 +51,10 @@ apps:
|
||||
parts:
|
||||
triangles:
|
||||
plugin: dump
|
||||
source: https://github.com/SamiAhmed7777/triangles_v5/releases/download/v6.2.2/Cryptographic-Triangles-v6.2.2-linux-x64-qt
|
||||
source: https://github.com/SamiAhmed7777/triangles_v5/releases/download/v6.2.3/Cryptographic-Triangles-v6.2.3-linux-x64-qt
|
||||
source-type: file
|
||||
organize:
|
||||
Cryptographic-Triangles-v6.2.2-linux-x64-qt: bin/triangles-qt
|
||||
Cryptographic-Triangles-v6.2.3-linux-x64-qt: bin/triangles-qt
|
||||
stage-packages:
|
||||
- libqt5widgets5
|
||||
- libqt5gui5
|
||||
@@ -73,10 +73,10 @@ parts:
|
||||
|
||||
trianglesd:
|
||||
plugin: dump
|
||||
source: https://github.com/SamiAhmed7777/triangles_v5/releases/download/v6.2.2/Cryptographic-Triangles-v6.2.2-linux-x64-daemon
|
||||
source: https://github.com/SamiAhmed7777/triangles_v5/releases/download/v6.2.3/Cryptographic-Triangles-v6.2.3-linux-x64-daemon
|
||||
source-type: file
|
||||
organize:
|
||||
Cryptographic-Triangles-v6.2.2-linux-x64-daemon: bin/trianglesd
|
||||
Cryptographic-Triangles-v6.2.3-linux-x64-daemon: bin/trianglesd
|
||||
|
||||
desktop-entry:
|
||||
plugin: dump
|
||||
|
||||
Reference in New Issue
Block a user