Exclude very recent mempool entries from an Elements block proposal

Functionaries can reconstruct proposed blocks more quickly when their mempools already share the selected transactions. The proposer can apply a minimum transaction age while assembling the draft.

Generate a local candidate with an age floor

On a private Elements federation, this example requests an unsigned proposed block using a minimum mempool age of fifteen seconds. The output line reports the length of its hex serialization; keep the actual candidate in the variable for later inspection.

candidate=$(elements-cli getnewblockhex 15)
printf '%s\n' "${#candidate}"

Interpret the cutoff as a proposer policy

An eligible transaction younger than fifteen seconds may be omitted from this candidate even if consensus permits it. A different functionary can have seen it earlier or later. Generating the candidate does not sign or submit it. Compare proposals made at the same parent when measuring the effect of the cutoff.

elementsproject.org getnewblockhex