From cb15291ea24ef2ad91e55825912530edae0b28f7 Mon Sep 17 00:00:00 2001 From: Bue-von-hon Date: Sat, 26 Apr 2025 20:42:20 +0900 Subject: [PATCH] rpc: Add current version parameter for transaction --- src/policy/policy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/policy/policy.h b/src/policy/policy.h index 1a02f3f7ab5..c9cb551b906 100644 --- a/src/policy/policy.h +++ b/src/policy/policy.h @@ -146,6 +146,7 @@ std::vector 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