aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoin-tx.cpp
diff options
context:
space:
mode:
authorBtcDrak <btcdrak@gmail.com>2016-08-26 22:35:46 +0100
committerBtcDrak <btcdrak@gmail.com>2016-10-16 23:22:15 +0100
commitb0aea8057921f0ed2288cf07048f652c7d6d9cf3 (patch)
tree670008ea702bd826a4827d48b7c83a2535e52c3f /src/bitcoin-tx.cpp
parent49c5910372899a365fd6b57b9e227518e24541fa (diff)
Sync bitcoin-tx with tx version policy
Diffstat (limited to 'src/bitcoin-tx.cpp')
-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;