aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-10-18 10:55:51 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-10-18 11:45:07 +0200
commit614d522c3e4468262406f767f8b31da4ac5a0878 (patch)
tree7b65c30331ca51e17bc55f7c90f99d9288cdf05a /src
parentcd761fb85a24e07d69d5823418f9e8a506ce5382 (diff)
parentb0aea8057921f0ed2288cf07048f652c7d6d9cf3 (diff)
downloadbitcoin-614d522c3e4468262406f767f8b31da4ac5a0878.tar.xz
Merge #8932: Allow bitcoin-tx to create v2 transactions
b0aea80 Sync bitcoin-tx with tx version policy (BtcDrak)
Diffstat (limited to 'src')
-rw-r--r--src/bitcoin-tx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp
index cb863bda19..e09afd632e 100644
--- a/src/bitcoin-tx.cpp
+++ b/src/bitcoin-tx.cpp
@@ -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;