Draft because builds on #31096
On master, package rules include (1) topology needs to be child-wth-parents (2) all of the child’s unconfirmed parents need to be present. This PR relaxes the second rule. The first rule is untouched.
Original motivation for this rule was based on the idea that we would have a child-with-unconfirmed-parents package relay protocol, and this would verify that the peer provided the “correct” package. For various reasons, we’re not planning on doing this. We could potentially do this for ancestor packages (with a similar definition that all UTXOs to make the tx valid are available in this package), but it’s also questionable whether it’s useful to enforce this.
This rule gets in the way of certain usage of 1p1c package relay currently. If a transaction has multiple parents, of which only 1 requires a package CPFP, this rule blocks the package from relaying. Even if all the non-low-feerate parents are already in mempool, when the p2p logic submits the 1p1c package, it gets rejected for not meeting this rule.