Browse Source

Sync bitcoin-tx with tx version policy

0.14
BtcDrak 8 years ago
parent
commit
b0aea80579
No known key found for this signature in database
GPG Key ID: C26B028A44F111A0
  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