Skip to content

[FEATURE] Move mining logic on-chain #38

@snakedye

Description

@snakedye

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 protocol

Alternatives 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds-triageRequires immediate assessment to determine its urgency and priority

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions