aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/cln_schema.sql
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-07-13 20:21:49 -0700
committerAdam Soltys <[email protected]>2026-07-13 20:22:06 -0700
commit0d55c0ccceb378a9c1992f6e7d82a6786cdd19b8 (patch)
treee6cce8802e6f6159cbe5647eba47be1306d34e01 /scripts/cln_schema.sql
parent2e90d709178ac718e4f32229951e6ea38dfcc371 (diff)
downloadcoinos-server-0d55c0ccceb378a9c1992f6e7d82a6786cdd19b8.tar.gz
coinos-server-0d55c0ccceb378a9c1992f6e7d82a6786cdd19b8.zip
preimages: enforce a merchant-set price per preimage batch
Invoice creation is unauthenticated, so buyers could name their own price for a queued preimage (create the usePreimage invoice with amount: 1). POST /preimages now takes an optional price (sats) that is stored per entry and overrides the requested amount when the preimage is consumed; omitting it keeps the old any-amount behavior. Also gate the stored-preimage reveal in credit() on the invoice being fully paid, since internal sends can settle partial amounts. Bare-hex entries queued before this change still parse (treated as priceless). Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'scripts/cln_schema.sql')
0 files changed, 0 insertions, 0 deletions