rpc: Add current version parameter for transaction

This commit is contained in:
Bue-von-hon 2025-04-26 20:42:20 +09:00
parent 51c7b4c9e0
commit cb15291ea2

View file

@ -146,6 +146,7 @@ std::vector<uint32_t> GetDust(const CTransaction& tx, CFeeRate dust_relay_rate);
// allowing the new transaction version in the wallet/RPC.
static constexpr decltype(CTransaction::version) TX_MIN_STANDARD_VERSION{1};
static constexpr decltype(CTransaction::version) TX_MAX_STANDARD_VERSION{3};
static constexpr decltype(CTransaction::version) DEFAULT_RAWTX_VERSION{CTransaction::CURRENT_VERSION};
/**
* Check for standard transaction types