From 429ec1aaaaafab150f11e27fcf132a99b57c4fc7 Mon Sep 17 00:00:00 2001 From: Ava Chow Date: Fri, 26 Jan 2024 15:27:13 -0500 Subject: refactor: Rename CTransaction::nVersion to version In order to ensure that the change of nVersion to a uint32_t in the previous commit has no effect, rename nVersion to version in this commit so that reviewers can easily spot if a spot was missed or if there is a check somewhere whose semantics have changed. --- src/policy/v3_policy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/policy/v3_policy.h') diff --git a/src/policy/v3_policy.h b/src/policy/v3_policy.h index 84dadd8719..90eaeda46f 100644 --- a/src/policy/v3_policy.h +++ b/src/policy/v3_policy.h @@ -15,9 +15,9 @@ #include #include -// This module enforces rules for BIP 431 TRUC transactions (with nVersion=3) which help make +// This module enforces rules for BIP 431 TRUC transactions (with version=3) which help make // RBF abilities more robust. -static constexpr decltype(CTransaction::nVersion) TRUC_VERSION{3}; +static constexpr decltype(CTransaction::version) TRUC_VERSION{3}; // v3 only allows 1 parent and 1 child when unconfirmed. /** Maximum number of transactions including an unconfirmed tx and its descendants. */ -- cgit v1.2.3