diff options
| author | Adam Soltys <[email protected]> | 2026-09-10 06:59:13 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-10 06:59:13 -0700 |
| commit | 435e9886620deff3d66286e3b85e97ed8f5fae53 (patch) | |
| tree | 03329d4d892385d55dc0585346c1533389b8ca84 /src/features | |
| parent | 57289fd3f87554e9981ddc2c63c3bba805d599bd (diff) | |
| download | coinosv3-435e9886620deff3d66286e3b85e97ed8f5fae53.tar.gz coinosv3-435e9886620deff3d66286e3b85e97ed8f5fae53.zip | |
Ark: local state stops growing forever — spent coins shed bytes, done actions shed hex.
pruneArkState runs on every manager save: a spent coin loses its signed
bytes once its spend is 30 days old and no in-flight action names it (a
spent coin can never take the exit those bytes exist for), and an action
done more than 7 days ago loses the output-vtxo hex it minted (the change /
HTLC coins live in `vtxos` in their own right). Ids, amounts, inputIds and
preimages stay for history rows and spend dedupe; failed ln-pays keep their
HTLC bytes for the refund. Selective and idempotent; unit-tested.
Measured on a live deep wallet the immediate saving is small (every recent
spend is inside the window) — what remains is the live coins' own chains,
which only a renewal shrinks. The change is a growth cap, not a diet.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Nw1Dijik1tLVKRM1WkU7xE
Diffstat (limited to 'src/features')
0 files changed, 0 insertions, 0 deletions
