@@ -69,7 +69,7 @@ std::optional<std::string> PackageTRUCChecks(const CTransactionRef& ptx, int64_t
6969 if (ptx->version == TRUC_VERSION) {
7070 // SingleTRUCChecks should have checked this already.
7171 if (!Assume (vsize <= TRUC_MAX_VSIZE)) {
72- return strprintf (" v3 tx %s (wtxid=%s) is too big: %u > %u virtual bytes" ,
72+ return strprintf (" version=3 tx %s (wtxid=%s) is too big: %u > %u virtual bytes" ,
7373 ptx->GetHash ().ToString (), ptx->GetWitnessHash ().ToString (), vsize, TRUC_MAX_VSIZE);
7474 }
7575
@@ -82,7 +82,7 @@ std::optional<std::string> PackageTRUCChecks(const CTransactionRef& ptx, int64_t
8282 if (has_parent) {
8383 // A TRUC child cannot be too large.
8484 if (vsize > TRUC_CHILD_MAX_VSIZE) {
85- return strprintf (" v3 child tx %s (wtxid=%s) is too big: %u > %u virtual bytes" ,
85+ return strprintf (" version=3 child tx %s (wtxid=%s) is too big: %u > %u virtual bytes" ,
8686 ptx->GetHash ().ToString (), ptx->GetWitnessHash ().ToString (),
8787 vsize, TRUC_CHILD_MAX_VSIZE);
8888 }
@@ -107,7 +107,7 @@ std::optional<std::string> PackageTRUCChecks(const CTransactionRef& ptx, int64_t
107107
108108 // If there is a parent, it must have the right version.
109109 if (parent_info.m_version != TRUC_VERSION) {
110- return strprintf (" v3 tx %s (wtxid=%s) cannot spend from non-v3 tx %s (wtxid=%s)" ,
110+ return strprintf (" version=3 tx %s (wtxid=%s) cannot spend from non-version=3 tx %s (wtxid=%s)" ,
111111 ptx->GetHash ().ToString (), ptx->GetWitnessHash ().ToString (),
112112 parent_info.m_txid .ToString (), parent_info.m_wtxid .ToString ());
113113 }
@@ -143,14 +143,14 @@ std::optional<std::string> PackageTRUCChecks(const CTransactionRef& ptx, int64_t
143143 // Non-TRUC transactions cannot have TRUC parents.
144144 for (auto it : mempool_ancestors) {
145145 if (it->GetTx ().version == TRUC_VERSION) {
146- return strprintf (" non-v3 tx %s (wtxid=%s) cannot spend from v3 tx %s (wtxid=%s)" ,
146+ return strprintf (" non-version=3 tx %s (wtxid=%s) cannot spend from version=3 tx %s (wtxid=%s)" ,
147147 ptx->GetHash ().ToString (), ptx->GetWitnessHash ().ToString (),
148148 it->GetSharedTx ()->GetHash ().ToString (), it->GetSharedTx ()->GetWitnessHash ().ToString ());
149149 }
150150 }
151151 for (const auto & index: in_package_parents) {
152152 if (package.at (index)->version == TRUC_VERSION) {
153- return strprintf (" non-v3 tx %s (wtxid=%s) cannot spend from v3 tx %s (wtxid=%s)" ,
153+ return strprintf (" non-version=3 tx %s (wtxid=%s) cannot spend from version=3 tx %s (wtxid=%s)" ,
154154 ptx->GetHash ().ToString (),
155155 ptx->GetWitnessHash ().ToString (),
156156 package.at (index)->GetHash ().ToString (),
@@ -169,12 +169,12 @@ std::optional<std::pair<std::string, CTransactionRef>> SingleTRUCChecks(const CT
169169 // Check TRUC and non-TRUC inheritance.
170170 for (const auto & entry : mempool_ancestors) {
171171 if (ptx->version != TRUC_VERSION && entry->GetTx ().version == TRUC_VERSION) {
172- return std::make_pair (strprintf (" non-v3 tx %s (wtxid=%s) cannot spend from v3 tx %s (wtxid=%s)" ,
172+ return std::make_pair (strprintf (" non-version=3 tx %s (wtxid=%s) cannot spend from version=3 tx %s (wtxid=%s)" ,
173173 ptx->GetHash ().ToString (), ptx->GetWitnessHash ().ToString (),
174174 entry->GetSharedTx ()->GetHash ().ToString (), entry->GetSharedTx ()->GetWitnessHash ().ToString ()),
175175 nullptr );
176176 } else if (ptx->version == TRUC_VERSION && entry->GetTx ().version != TRUC_VERSION) {
177- return std::make_pair (strprintf (" v3 tx %s (wtxid=%s) cannot spend from non-v3 tx %s (wtxid=%s)" ,
177+ return std::make_pair (strprintf (" version=3 tx %s (wtxid=%s) cannot spend from non-version=3 tx %s (wtxid=%s)" ,
178178 ptx->GetHash ().ToString (), ptx->GetWitnessHash ().ToString (),
179179 entry->GetSharedTx ()->GetHash ().ToString (), entry->GetSharedTx ()->GetWitnessHash ().ToString ()),
180180 nullptr );
@@ -189,7 +189,7 @@ std::optional<std::pair<std::string, CTransactionRef>> SingleTRUCChecks(const CT
189189 if (ptx->version != TRUC_VERSION) return std::nullopt ;
190190
191191 if (vsize > TRUC_MAX_VSIZE) {
192- return std::make_pair (strprintf (" v3 tx %s (wtxid=%s) is too big: %u > %u virtual bytes" ,
192+ return std::make_pair (strprintf (" version=3 tx %s (wtxid=%s) is too big: %u > %u virtual bytes" ,
193193 ptx->GetHash ().ToString (), ptx->GetWitnessHash ().ToString (), vsize, TRUC_MAX_VSIZE),
194194 nullptr );
195195 }
@@ -205,7 +205,7 @@ std::optional<std::pair<std::string, CTransactionRef>> SingleTRUCChecks(const CT
205205 if (mempool_ancestors.size () > 0 ) {
206206 // If this transaction spends TRUC parents, it cannot be too large.
207207 if (vsize > TRUC_CHILD_MAX_VSIZE) {
208- return std::make_pair (strprintf (" v3 child tx %s (wtxid=%s) is too big: %u > %u virtual bytes" ,
208+ return std::make_pair (strprintf (" version=3 child tx %s (wtxid=%s) is too big: %u > %u virtual bytes" ,
209209 ptx->GetHash ().ToString (), ptx->GetWitnessHash ().ToString (), vsize, TRUC_CHILD_MAX_VSIZE),
210210 nullptr );
211211 }
0 commit comments