Skip to content

Commit 1003e8b

Browse files
committed
TRUC: Restore Assume for redundant check
1 parent a1df693 commit 1003e8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/policy/truc_policy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ std::optional<std::string> PackageTRUCChecks(const CTransactionRef& ptx, int64_t
7070
// Now we have all ancestors, so we can start checking TRUC rules.
7171
if (ptx->version == TRUC_VERSION) {
7272
// SingleTRUCChecks should have checked this already.
73-
if (vsize > TRUC_MAX_VSIZE && !ignore_rejects.count(reason_prefix + "vsize-toobig")) {
73+
if (!Assume(vsize <= TRUC_MAX_VSIZE || ignore_rejects.count(reason_prefix + "vsize-toobig"))) {
7474
out_reason = reason_prefix + "vsize-toobig";
7575
return strprintf("version=3 tx %s (wtxid=%s) is too big: %u > %u virtual bytes",
7676
ptx->GetHash().ToString(), ptx->GetWitnessHash().ToString(), vsize, TRUC_MAX_VSIZE);

0 commit comments

Comments
 (0)