aboutsummaryrefslogtreecommitdiffstats
path: root/src/format.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-07-06 07:25:28 -0700
committerAdam Soltys <[email protected]>2026-07-06 07:25:28 -0700
commit7d06c1b7801579da05e919c76a33c2f9b05f995d (patch)
tree4acb8a726c6935536895fcc2872d2f9cc0c48ffd /src/format.js
parent1043ca529e859b41f27d80c51b80ac897773a5df (diff)
downloadcoinosv3-7d06c1b7801579da05e919c76a33c2f9b05f995d.tar.gz
coinosv3-7d06c1b7801579da05e919c76a33c2f9b05f995d.zip
Ark sync: anti-entropy so a device can't clobber another's coins
All devices share one replaceable-event slot (same seed -> same nostr key), so a device that published its snapshot before merging in another device's ark state wiped those coins from the slot — exactly what stranded a phone showing no ark balance. Fix: on receiving any snapshot, union it with local and, if we hold vtxos the snapshot lacked, re-publish the superset. The slot converges to the union regardless of publish order; the guard (mergedN>remoteN) stops the push-back once every device agrees, so no loop. Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'src/format.js')
0 files changed, 0 insertions, 0 deletions