Skip to content

Proposal to remove implicit state changes #40

@sgkim126

Description

@sgkim126

Currently, CodeChain has two implicit state changes.
One is storing pending rewards or giving rewards at the end of a block; the other is giving rewards at the beginning of a term.
It's because the behavior differs depending on the consensus algorithm.
However, it makes implementing an indexer hard because it also needs to implement the rule of distribution to track the amounts of CCC.
So I suggest adding two transactions for storing pending rewards and giving rewards.
Even the validators still need to calculate the rewards rule to validate a block since the transactions will help when implementing the indexer and light client without calculating the complicated rewards rule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions