mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Sync bitcoin-tx with tx version policy
This commit is contained in:
parent
49c5910372
commit
b0aea80579
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ static void RegisterLoad(const string& strInput)
|
||||||
static void MutateTxVersion(CMutableTransaction& tx, const string& cmdVal)
|
static void MutateTxVersion(CMutableTransaction& tx, const string& cmdVal)
|
||||||
{
|
{
|
||||||
int64_t newVersion = atoi64(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");
|
throw runtime_error("Invalid TX version requested");
|
||||||
|
|
||||||
tx.nVersion = (int) newVersion;
|
tx.nVersion = (int) newVersion;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue