Merge #8932: Allow bitcoin-tx to create v2 transactions

b0aea80 Sync bitcoin-tx with tx version policy (BtcDrak)
This commit is contained in:
Wladimir J. van der Laan 2016-10-18 10:55:51 +02:00 committed by Alexander Block
parent 19316b7a63
commit ffc9673697

View File

@ -173,7 +173,7 @@ static void RegisterLoad(const string& strInput)
static void MutateTxVersion(CMutableTransaction& tx, const string& cmdVal) static void MutateTxVersion(CMutableTransaction& tx, const string& cmdVal)
{ {
int64_t newVersion = atoi64(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"); throw runtime_error("Invalid TX version requested");
tx.nVersion = (int) newVersion; tx.nVersion = (int) newVersion;