Revert "[grade=A] feat(snapshot): compile-in canonical tip-SHA for chain recovery"

This reverts commit 4c562758cd.
This commit is contained in:
Sami Ahmed
2026-08-01 15:41:30 -07:00
parent 4c562758cd
commit a1a95096ba
13 changed files with 27 additions and 49 deletions
+7 -15
View File
@@ -64,14 +64,6 @@ namespace Checkpoints
// mapCheckpoints / mapCheckpointsTestnet.
static std::map<int, uint256> mapSnapshotHashes = {
{ 2206004, uint256("0x1419282dae817315ee1b955543f6248233fe5800f5e8488734a0ece5bd6781ea")},
// v6.2.1 — canonical snapshot at current chain tip 2,224,763, generated
// 2026-07-30 by the operator via `triangles-cli dumputxoset` on DNS2.
// SHA256 verified against manifest.json on SAMI-PC. Blockhash matches
// DNS2/DNS3 chain tip. Snapshot is signed by wallet
// TUJ8fne8yf4BEypsp6kENY2dCkivFuXhka per manifest.json. Use this to
// skip the 24-hour bootstrap.dat walk on SAMI-PC (the only node with
// a non-zero wallet balance) and unstick the chain.
{ 2224763, uint256("0xa7ea62ad4e158faf07973e5cd1539c1895154c4e28685a3eb7af458a001037b7")},
};
static std::map<int, uint256> mapSnapshotHashesTestnet = {
@@ -361,14 +353,14 @@ namespace Checkpoints
bool SetCheckpointPrivKey(std::string strPrivKey)
{
(void)strPrivKey;
return error("SetCheckpointPrivKey: synchronized checkpoints are disabled");
(void)strPrivKey;
return error("SetCheckpointPrivKey: synchronized checkpoints are disabled");
}
bool SendSyncCheckpoint(uint256 hashCheckpoint)
{
(void)hashCheckpoint;
return error("SendSyncCheckpoint: synchronized checkpoints are disabled");
(void)hashCheckpoint;
return error("SendSyncCheckpoint: synchronized checkpoints are disabled");
}
// Is the sync-checkpoint outside maturity window?
@@ -389,11 +381,11 @@ const std::string CSyncCheckpoint::strMasterPubKey = "";
std::string CSyncCheckpoint::strMasterPrivKey = "";
// triangles: verify signature of sync-checkpoint message
// The master-key system is disabled. Reject these legacy messages instead of
// treating unsigned data as authenticated if a dispatcher is added later.
// The master-key system is disabled. Reject these legacy messages instead of
// treating unsigned data as authenticated if a dispatcher is added later.
bool CSyncCheckpoint::CheckSignature()
{
return error("CSyncCheckpoint::CheckSignature: synchronized checkpoints are disabled");
return error("CSyncCheckpoint::CheckSignature: synchronized checkpoints are disabled");
}
// triangles: process synchronized checkpoint
+1 -1
View File
@@ -8,7 +8,7 @@
// These need to be macros, as version.cpp's and triangles-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 6
#define CLIENT_VERSION_MINOR 2
#define CLIENT_VERSION_REVISION 1
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD 0
// Converts the parameter X to a string after macro replacement on X has been performed.