From 05ecc4719761af7982d93bdebe3f94c85717f043 Mon Sep 17 00:00:00 2001 From: Kris Nuttycombe Date: Thu, 11 Mar 2021 15:20:48 -0700 Subject: [PATCH] Use SPROUT_MAX_CURRENT_VERSION --- src/primitives/transaction.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/primitives/transaction.cpp b/src/primitives/transaction.cpp index fbbe87bf2..f5e92876b 100644 --- a/src/primitives/transaction.cpp +++ b/src/primitives/transaction.cpp @@ -266,8 +266,8 @@ std::string CTransaction::ToString() const } /** - * Returns the current transaction version and version group id, - * based upon the specified activation height and active features. + * Returns the most recent supported transaction version and version group id, + * as of the specified activation height and active features. */ TxVersionInfo CurrentTxVersionInfo(const Consensus::Params& consensus, int nHeight) { if (consensus.NetworkUpgradeActive(nHeight, Consensus::UPGRADE_ZFUTURE)) { @@ -292,7 +292,7 @@ TxVersionInfo CurrentTxVersionInfo(const Consensus::Params& consensus, int nHeig return { .fOverwintered = false, .nVersionGroupId = 0, - .nVersion = CTransaction::SPROUT_MIN_CURRENT_VERSION + .nVersion = CTransaction::SPROUT_MAX_CURRENT_VERSION }; } }