<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coinosv3.git/src/ark/migrate.js, branch master</title>
<subtitle>coinos v3 — bitcoin, Ark, Lightning and nostr wallet (web + Android)</subtitle>
<id>https://git.coinos.io/coinosv3.git/atom?h=master</id>
<link rel='self' href='https://git.coinos.io/coinosv3.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinosv3.git/'/>
<updated>2026-12-06T07:01:59Z</updated>
<entry>
<title>ark migrate: batches are the manager's own next coins, so no send goes over the input cap.</title>
<updated>2026-12-06T07:01:59Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-12-04T20:33:15Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinosv3.git/commit/?id=f15e3b23c94fb36886e5201984d27a2509428cc9'/>
<id>urn:sha1:f15e3b23c94fb36886e5201984d27a2509428cc9</id>
<content type='text'>
The first real sweep (names' old forwarder, 126 coins, many past expiry) failed: a batch of the 48 largest coins was assembled by send() from live coins first, far more than 48. Each batch is now the set _accumulate picks (live coins first, largest first) capped at 48, and its exact total is sent.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01VMan6WoqaQDYdpWkatPCar
</content>
</entry>
<entry>
<title>Spending moves to ark2.coinos.io by itself: coins on the retired server go across through coinos's migrator.</title>
<updated>2026-12-06T07:01:58Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-12-04T20:18:47Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinosv3.git/commit/?id=befa01bc9b2c144c020b403429db20bc5278db93'/>
<id>urn:sha1:befa01bc9b2c144c020b403429db20bc5278db93</id>
<content type='text'>
ark.coinos.io's server key was stolen in the 2026-12-04 breach, so coinos stood up ark2.coinos.io with a fresh key. The "coinos" preset now points there (same id, so everyone on coinos follows), and the old server stays as a hidden, retiring preset whose successor is "coinos" and whose migrator is migrate.coinos.io.

After connecting, a wallet that still holds spendable coins on the old server opens that wallet (same seed, same keys), asks the migrator for a deposit address naming its own ark2 address, and sends everything there in batches of the largest coins (at most 48 per payment, as the old server can't run consolidation rounds). The migrator pays the same amount on ark2; a toast says it arrived. Coins at the exit-depth cap stay behind. arkWanted() also counts coins waiting on a retiring server, so a wallet whose coins are all there still connects.

src/ark/migrate.js holds the logic apart from the UI. ArkManager gains freshAddress()/_addressFor(i): an address on a key of its own, mailbox id blinded with that key (what the migrator hands out per migration). Tested end to end on regtest against two captaind 0.8.0-coinos servers and the real migrator (coinosv3-server migrator/e2e-test.js: 19 checks, incl. batching, caps and restart-safety).

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01VMan6WoqaQDYdpWkatPCar
</content>
</entry>
</feed>
