Skip to content

Commit b7c5c0c

Browse files
committed
Support ignoring "truc-descendant-toomany" rejection
1 parent 8e36e69 commit b7c5c0c

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
@@ -142,7 +142,7 @@ std::optional<std::string> PackageTRUCChecks(const CTransactionRef& ptx, int64_t
142142
}
143143
}
144144

145-
if (parent_info.m_has_mempool_descendant) {
145+
if (parent_info.m_has_mempool_descendant && !ignore_rejects.count(reason_prefix + "descendant-toomany")) {
146146
out_reason = reason_prefix + "descendant-toomany";
147147
return strprintf("tx %s (wtxid=%s) would exceed descendant count limit",
148148
parent_info.m_txid.ToString(), parent_info.m_wtxid.ToString());

0 commit comments

Comments
 (0)