mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 16:14:40 +00:00
Findings from a full NIP-13 review: - The spec recommends updating created_at while mining. Queue jobs now re-stamp the template to "now" when a worker picks them up (a post can wait behind other jobs, and a job restored after process death could be hours old); the restorer does the same. Scheduled posts are exempt — their future created_at is intentional. Anonymous posts re-stamp before mining against the throwaway key. - PoWTag.assemble(nonce, null) serialized the literal string "null" as the third tag entry; a missing commitment now omits the entry entirely. - New tests: PoWTagTest pins the NIP-13 example tag shape and the no-commitment round trip; a queue test asserts the created_at re-stamp at mining start. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADb3dez9jPk6QqyQ1rTx4V