aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-07-05 20:53:07 -0700
committerAdam Soltys <[email protected]>2026-07-05 20:53:07 -0700
commit0f50794bec0f213288669b593e8481a0a48b36e6 (patch)
tree930a4a99d7c44785f07fb5a356e2c061c5e416fc
parent15e0b236e7ff2cafcb439c891c790deea8ec16a7 (diff)
downloadcoinosv3-0f50794bec0f213288669b593e8481a0a48b36e6.tar.gz
coinosv3-0f50794bec0f213288669b593e8481a0a48b36e6.zip
Reconcile ark vtxos when the gift form opens with an ark source
Same trigger as pasting an ark address into Send: the gift form is a send-intent signal, so stale vtxos (spent server-side while this state was idle) drop before coin selection instead of erroring at cosign. Co-Authored-By: Claude Fable 5 <[email protected]>
-rw-r--r--src/features/ark.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/features/ark.js b/src/features/ark.js
index 75e3da0..9a180f7 100644
--- a/src/features/ark.js
+++ b/src/features/ark.js
@@ -767,6 +767,7 @@ export function arkFeature(ctx) {
// ---- ark-gift hooks (called by the gifts feature via ctx.hook) ----
arkGiftInfo() {
if (!arkAvailable() || !ark || !ark.state) return null;
+ maybeReconcile(); // the gift form is a send-intent signal too (throttled)
return { spendableSat: ark.balance().spendableSat };
},
arkGiftDecode(code) { return decodeArkGiftCode(code); },