aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoin-tx.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2016-10-18 10:55:51 +0200
committerWladimir J. van der Laan <[email protected]>2016-10-18 11:45:07 +0200
commit614d522c3e4468262406f767f8b31da4ac5a0878 (patch)
tree7b65c30331ca51e17bc55f7c90f99d9288cdf05a /src/bitcoin-tx.cpp
parentMerge #8944: Remove bogus assert on number of oubound connections. (diff)
parentSync bitcoin-tx with tx version policy (diff)
downloaddiscoin-614d522c3e4468262406f767f8b31da4ac5a0878.tar.xz
discoin-614d522c3e4468262406f767f8b31da4ac5a0878.zip
Merge #8932: Allow bitcoin-tx to create v2 transactions
b0aea80 Sync bitcoin-tx with tx version policy (BtcDrak)
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 cb863bda1..e09afd632 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;