diff options
| author | Adam Soltys <[email protected]> | 2026-11-26 07:17:40 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-11-26 07:17:40 -0700 |
| commit | dcda8c643da72ebbecd590ae9e065d1641c96976 (patch) | |
| tree | cab860fc59da76b1099475cfb5be904834830557 /lib/upload.js | |
| parent | f891de2e288d4af734f7ef20b81e6f96705a14bd (diff) | |
| download | coinos-server-dcda8c643da72ebbecd590ae9e065d1641c96976.tar.gz coinos-server-dcda8c643da72ebbecd590ae9e065d1641c96976.zip | |
meltguard: report cap-refused pays as failed so melts don't stick pending
A pay refused for the per-melt or rolling cap never reaches cl, so listpays
returns nothing for its hash. nutshell 0.22 treats that as NOT_FOUND and
keeps the melt quote PENDING with the proofs locked indefinitely.
Record cap-refused hashes in GUARD_DIR/rejected and answer a listpays for
one of them with a failed pay when cl has none, so the mint marks the quote
unpaid and releases the proofs. cl's own answer still wins when it has a
pay for the hash. Repeat-hash and partial refusals are not recorded.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VMan6W9CsdxmhFrfaKNVHU
Diffstat (limited to 'lib/upload.js')
0 files changed, 0 insertions, 0 deletions
