From c37eb06b943a748134d294086a8d47aa4ab2d63d Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Tue, 25 Sep 2018 12:16:39 -0400 Subject: [PATCH] require 0.16.3 parent Core node --- src/validation.cpp | 2 +- src/validation.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/validation.cpp b/src/validation.cpp index d7537f1fe4..cdd8e24af0 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -2254,7 +2254,7 @@ bool BitcoindRPCCheck(const bool init) if (!result.isObject() || !result.get_obj()["version"].isNum() || result.get_obj()["version"].get_int() < MIN_PARENT_NODE_VERSION) { LogPrintf("ERROR: Parent chain daemon too old; " - "need Bitcoin Core version 0.16.2 or newer.\n"); + "need Bitcoin Core version 0.16.3 or newer.\n"); return false; } diff --git a/src/validation.h b/src/validation.h index 4951d7ab8b..be6bd7253c 100644 --- a/src/validation.h +++ b/src/validation.h @@ -150,8 +150,10 @@ static const int MAX_UNCONNECTING_HEADERS = 10; static const bool DEFAULT_PEERBLOOMFILTERS = false; /** The minimum version for the parent chain node. - * We need v0.16.2 to get the nTx field in getblockheader. */ -static const int MIN_PARENT_NODE_VERSION = 160200; // 0.16.2 + * We need v0.16.3 to get the nTx field in getblockheader and inflation fix. + * Note that Elements-based parent chains may not have fixes based on this + * version check! */ +static const int MIN_PARENT_NODE_VERSION = 160300; // 0.16.3 struct BlockHasher {