Skip to content

feat(wallet): UTXO pool management for high-frequency transactions#483

Closed
sgbett wants to merge 0 commit intomasterfrom
feat/474-utxo-pool-management
Closed

feat(wallet): UTXO pool management for high-frequency transactions#483
sgbett wants to merge 0 commit intomasterfrom
feat/474-utxo-pool-management

Conversation

@sgbett
Copy link
Copy Markdown
Owner

@sgbett sgbett commented Apr 17, 2026

Summary

  • Add UTXOPool class with acquire/release/status for instant output consumption from pre-provisioned baskets
  • Add ReplenishmentWorker background thread: scavenges right-sized outputs before splitting larger ones
  • Add update_output_basket to StorageAdapter for zero-cost basket reassignment
  • Wire utxo_pool factory into WalletClient with optional auto_replenish
  • 45 new specs covering lifecycle, concurrency (barrier pattern), scavenge/split, error handling

Test plan

  • All 1316 wallet specs pass (0 failures)
  • RuboCop clean on all changed files
  • Concurrent acquire verified via thread barrier pattern (2 threads/1 output, 5 threads/5 outputs)
  • Basket isolation confirmed (pool outputs excluded from default auto-fund)
  • Acceptance criteria verified against HLR [HLR] UTXO Pool Management for High-Frequency Transactions #474

Related: #474

@sgbett sgbett closed this Apr 17, 2026
@sgbett sgbett force-pushed the feat/474-utxo-pool-management branch from ea3bf5a to 5aeb0ec Compare April 17, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant