Sync bitcoin-tx with tx version policy

Github-Pull: #8932
Rebased-From: b0aea80579
This commit is contained in:
BtcDrak 2016-08-26 22:35:46 +01:00 committed by Luke Dashjr
parent 12428b4d8a
commit 106da691a5
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ static void RegisterLoad(const string& strInput)
static void MutateTxVersion(CMutableTransaction& tx, const string& cmdVal)
{
int64_t newVersion = atoi64(cmdVal);
if (newVersion < 1 || newVersion > CTransaction::CURRENT_VERSION)
if (newVersion < 1 || newVersion > CTransaction::MAX_STANDARD_VERSION)
throw runtime_error("Invalid TX version requested");
tx.nVersion = (int) newVersion;