Skip to content

Some state update functions do too many things, consider refactor #1

@randomshinichi

Description

@randomshinichi

add_participants_proposals_to_network() actually does two things

  1. If the policy has decided to add something a new Participant and/or Proposal to the network, do so.
  2. Update the age of existing Proposals and the conviction voting trigger threshold for each (since it depends on Age).

This is not the only state update function that has too many responsibilities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions