Gate ehash issuance on block template validation (template-producing proxies) #20
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
vnprc/hashpool#20
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Gate ehash issuance on block template validation, so a share whose template is invalid never becomes irrevocable ecash — once a miner sweeps a quote into tokens, nothing can be clawed back, and an invalid template discovered late is supply inflation stolen from honest miners. Not load-bearing today: the pool builds every template it validates shares against. It becomes load-bearing the moment miners or proxies produce their own templates, so this is implementation-ready when template-producing proxy support starts.
Primary goals:
Current state and specifics
The pool validates proof-of-work only, and the mint marks ehash quotes paid immediately at creation (
roles/mint/src/lib/sv2_connection/quote_processing.rs); the epoch milestone moves that to a pay-now-or-defer branch, which is the seam this issue extends. Ported from the pre-Forgejo tracker after the move to the forge; the original's new-PENDING-state and Redis/auditor specifics are superseded by the deferred-pay design indocs/EPOCH_DESIGN.md.Scope
In (when triggered): the second pay condition, the async validation mechanism, the failure path. Out: the template-producing proxy itself, epoch mechanics (#13 and children), settlement.
Refs #13.