← index

Deterministic UTXO consolidation under volatile fee regimes

An archive of delvingbitcoin.org · view original topic →

Federico Blanco Sánchez-Llanos · #1 ·

Hi all,

I’ve been thinking about UTXO consolidation not purely as a fee optimization problem, but as a potential determinism and correctness surface in wallet transaction construction.

Specifically, I’m interested in cases where:

• Consolidation is triggered dynamically based on current fee environment • Time-dependent consolidation policy (e.g. consolidate-now vs defer) • PSBT construction depends on fee-rate comparisons against historical baselines • Transaction structure may vary depending on mempool conditions

In such systems, two questions arise:

  1. At what point does consolidation logic become part of the wallet’s correctness boundary rather than merely a policy layer?

  2. Should deterministic guarantees (e.g., invariant input ordering, bounded fee regret, stable change handling) be considered enforceable properties in consolidation flows?

Potential failure modes I’m considering:

I’m curious how others conceptualize this boundary.

Is consolidation strictly a wallet UX policy question, or are there scenarios where its interaction with fee estimation and PSBT construction introduces correctness or safety concerns that warrant stronger invariant guarantees?

Appreciate any thoughts or prior discussions I may have missed.