aboutsummaryrefslogtreecommitdiffstats
path: root/src/api.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-01 15:02:01 -0700
committerAdam Soltys <[email protected]>2026-08-01 15:02:01 -0700
commitd554a13cf4560891010f50e117754825c1f1be7a (patch)
tree04d096c4fe82988bc012f2bea1260d820d1e3c86 /src/api.js
parent03447333e3f80c373ca80dd09bf3f5b7bbae2e64 (diff)
downloadcoinosv3-d554a13cf4560891010f50e117754825c1f1be7a.tar.gz
coinosv3-d554a13cf4560891010f50e117754825c1f1be7a.zip
Make NWC budgets accumulate and travel across devices
onRequest handled every request against the connection object captured at listen() time, so each spend was recorded against a stale snapshot — spentToday restarted from the old value on every payment and the daily budget never actually bound. The connection is now re-resolved from stored state per request, which also stops serving a connection revoked on another device mid-session. recordSpend now publishes the sync snapshot so the spend (and the payment's movement + vtxo change) reaches the user's other devices. Test: two payments must accumulate to 52. Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'src/api.js')
0 files changed, 0 insertions, 0 deletions