aboutsummaryrefslogtreecommitdiffstats
path: root/lib/countries.js.map
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-05-17 23:23:14 -0700
committerAdam Soltys <[email protected]>2026-05-17 23:23:14 -0700
commit82e43982ca49cdec054bbd31c0e739730fc213f2 (patch)
tree64e3ffcd195293c4fe98c586a384565f96c47e09 /lib/countries.js.map
parent0e368dab0943067c060ad45578a4c4cbdc3434a6 (diff)
downloadcoinos-server-82e43982ca49cdec054bbd31c0e739730fc213f2.tar.gz
coinos-server-82e43982ca49cdec054bbd31c0e739730fc213f2.zip
move UTXO lockUnspent from build() to sendOnchain()
build() is called from both /payments (the actual send path) and /fee (the fee-estimation endpoint). Locking UTXOs in build() meant that every fee quote was reserving inputs that never got broadcast, slowly leaking UTXO locks until a bitcoind restart cleared them — eventually starving the wallet of selectable inputs even when balance was healthy. The lock belongs at the point where we're actually about to broadcast, which is sendOnchain. Released in the catch path on broadcast failure; on success, the inputs become spent and the lock is moot. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Diffstat (limited to 'lib/countries.js.map')
0 files changed, 0 insertions, 0 deletions