-
Notifications
You must be signed in to change notification settings - Fork 0
[FEATURE] Move mining logic on-chain #38
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestneeds-triageRequires immediate assessment to determine its urgency and priorityRequires immediate assessment to determine its urgency and priority
Description
Summary
Currently, mining rewards are spent using the V0 outputs. The logic determining if the challenge is valid is in the blockchain's implementation.
Using covenants and new op codes, we could move the challenge validation logic on-chain and enforce the continuity of the mining without any special code. The blockchain would then be completely agnostic of mining.
Who benefits / Use cases
- Helm developers: All transactions become the same
- Miners: Mining logic is more flexible since changes wouldn't require hard forks.
Proposed solution
// Op code
OP_PREV_BLOCK_HASH
// Contract
Might require to rethink the mining protocolAlternatives considered
No response
Priority
P3 - Low
Design / Implementation details
It's still unknown how fees will be treated in this model.
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestneeds-triageRequires immediate assessment to determine its urgency and priorityRequires immediate assessment to determine its urgency and priority