From 53b2162e28e7871ebef58741c0ac4938f79b34b3 Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Thu, 4 Apr 2019 09:01:28 +0200 Subject: [PATCH] Harden spork15 value to 1047200 when on mainnet (#2830) This is a hackish version of https://github.com/dashpay/dash/pull/2824, meant for 0.13.x only. The reason for this hackish version is that the code has diverged quite a bit and its not worth the effort to backport the hardening code. Even though 0.13.x included a lot of fixes for sporks handling and syncing, I still feel more safe with hardening the spork15 block height. If something goes wrong with spork syncing (e.g. its slower then the first DIP2/3 block arrives), the whole sync process will fail otherwise. --- src/spork.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spork.cpp b/src/spork.cpp index c5ed4a94ca..ce6e444b22 100644 --- a/src/spork.cpp +++ b/src/spork.cpp @@ -27,7 +27,7 @@ std::map mapSporkDefaults = { {SPORK_10_MASTERNODE_PAY_UPDATED_NODES, 4070908800ULL}, // OFF {SPORK_12_RECONSIDER_BLOCKS, 0}, // 0 BLOCKS {SPORK_14_REQUIRE_SENTINEL_FLAG, 4070908800ULL}, // OFF - {SPORK_15_DETERMINISTIC_MNS_ENABLED, 4070908800ULL}, // OFF + {SPORK_15_DETERMINISTIC_MNS_ENABLED, 1047200}, // Hardened to mainnet activation height (we only did this for 0.13.x) {SPORK_16_INSTANTSEND_AUTOLOCKS, 4070908800ULL}, // OFF {SPORK_17_QUORUM_DKG_ENABLED, 4070908800ULL}, // OFF };