require 0.16.3 parent Core node

This commit is contained in:
Gregory Sanders 2018-09-25 12:16:39 -04:00
parent 1920d8480e
commit c37eb06b94
2 changed files with 5 additions and 3 deletions

View file

@ -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;
}

View file

@ -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
{