Browse Source

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

b0aea80 Sync bitcoin-tx with tx version policy (BtcDrak)
0.14
Wladimir J. van der Laan 8 years ago
parent
commit
614d522c3e
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/bitcoin-tx.cpp

2
src/bitcoin-tx.cpp

@ -164,7 +164,7 @@ static void RegisterLoad(const string& strInput) @@ -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;

Loading…
Cancel
Save