@@ -69,7 +69,7 @@ std::optional<std::string> PackageTRUCChecks(const CTransactionRef& ptx, int64_t
69
69
if (ptx->version == TRUC_VERSION) {
70
70
// SingleTRUCChecks should have checked this already.
71
71
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" ,
73
73
ptx->GetHash ().ToString (), ptx->GetWitnessHash ().ToString (), vsize, TRUC_MAX_VSIZE);
74
74
}
75
75
@@ -82,7 +82,7 @@ std::optional<std::string> PackageTRUCChecks(const CTransactionRef& ptx, int64_t
82
82
if (has_parent) {
83
83
// A TRUC child cannot be too large.
84
84
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" ,
86
86
ptx->GetHash ().ToString (), ptx->GetWitnessHash ().ToString (),
87
87
vsize, TRUC_CHILD_MAX_VSIZE);
88
88
}
@@ -107,7 +107,7 @@ std::optional<std::string> PackageTRUCChecks(const CTransactionRef& ptx, int64_t
107
107
108
108
// If there is a parent, it must have the right version.
109
109
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)" ,
111
111
ptx->GetHash ().ToString (), ptx->GetWitnessHash ().ToString (),
112
112
parent_info.m_txid .ToString (), parent_info.m_wtxid .ToString ());
113
113
}
@@ -143,14 +143,14 @@ std::optional<std::string> PackageTRUCChecks(const CTransactionRef& ptx, int64_t
143
143
// Non-TRUC transactions cannot have TRUC parents.
144
144
for (auto it : mempool_ancestors) {
145
145
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)" ,
147
147
ptx->GetHash ().ToString (), ptx->GetWitnessHash ().ToString (),
148
148
it->GetSharedTx ()->GetHash ().ToString (), it->GetSharedTx ()->GetWitnessHash ().ToString ());
149
149
}
150
150
}
151
151
for (const auto & index: in_package_parents) {
152
152
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)" ,
154
154
ptx->GetHash ().ToString (),
155
155
ptx->GetWitnessHash ().ToString (),
156
156
package.at (index)->GetHash ().ToString (),
@@ -169,12 +169,12 @@ std::optional<std::pair<std::string, CTransactionRef>> SingleTRUCChecks(const CT
169
169
// Check TRUC and non-TRUC inheritance.
170
170
for (const auto & entry : mempool_ancestors) {
171
171
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)" ,
173
173
ptx->GetHash ().ToString (), ptx->GetWitnessHash ().ToString (),
174
174
entry->GetSharedTx ()->GetHash ().ToString (), entry->GetSharedTx ()->GetWitnessHash ().ToString ()),
175
175
nullptr );
176
176
} 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)" ,
178
178
ptx->GetHash ().ToString (), ptx->GetWitnessHash ().ToString (),
179
179
entry->GetSharedTx ()->GetHash ().ToString (), entry->GetSharedTx ()->GetWitnessHash ().ToString ()),
180
180
nullptr );
@@ -189,7 +189,7 @@ std::optional<std::pair<std::string, CTransactionRef>> SingleTRUCChecks(const CT
189
189
if (ptx->version != TRUC_VERSION) return std::nullopt;
190
190
191
191
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" ,
193
193
ptx->GetHash ().ToString (), ptx->GetWitnessHash ().ToString (), vsize, TRUC_MAX_VSIZE),
194
194
nullptr );
195
195
}
@@ -205,7 +205,7 @@ std::optional<std::pair<std::string, CTransactionRef>> SingleTRUCChecks(const CT
205
205
if (mempool_ancestors.size () > 0 ) {
206
206
// If this transaction spends TRUC parents, it cannot be too large.
207
207
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" ,
209
209
ptx->GetHash ().ToString (), ptx->GetWitnessHash ().ToString (), vsize, TRUC_CHILD_MAX_VSIZE),
210
210
nullptr );
211
211
}
0 commit comments