diff options
| author | Adam Soltys <[email protected]> | 2026-07-05 20:53:07 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-07-05 20:53:07 -0700 |
| commit | 0f50794bec0f213288669b593e8481a0a48b36e6 (patch) | |
| tree | 930a4a99d7c44785f07fb5a356e2c061c5e416fc /src/features | |
| parent | 15e0b236e7ff2cafcb439c891c790deea8ec16a7 (diff) | |
| download | coinosv3-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]>
Diffstat (limited to 'src/features')
| -rw-r--r-- | src/features/ark.js | 1 |
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); }, |
