Skip to content

Commit 614d522

Browse files
committed
Merge #8932: Allow bitcoin-tx to create v2 transactions
b0aea80 Sync bitcoin-tx with tx version policy (BtcDrak)
2 parents cd761fb + b0aea80 commit 614d522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bitcoin-tx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static void RegisterLoad(const string& strInput)
164164
static void MutateTxVersion(CMutableTransaction& tx, const string& cmdVal)
165165
{
166166
int64_t newVersion = atoi64(cmdVal);
167-
if (newVersion < 1 || newVersion > CTransaction::CURRENT_VERSION)
167+
if (newVersion < 1 || newVersion > CTransaction::MAX_STANDARD_VERSION)
168168
throw runtime_error("Invalid TX version requested");
169169

170170
tx.nVersion = (int) newVersion;

0 commit comments

Comments
 (0)