Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Runtime: delegated staking, slashing, rewards #194

@gavofyork

Description

@gavofyork
  • Blocks with timestamps less than BLOCK_TIME seconds after previous should be invalid.
  • Sessions that end normally have a session reward, equal for all validators and inversely proportional to the session's duration.
  • A session and the era should immediately end if ever its duration + BLOCK_TIME * blocks_remaining_in_session is greater than MAX_SESSION_DURATION (forcing a new staking set to be chosen and thus allowing for a disruptive or offline validator to be manually kicked through de-delegation).
  • Tests for early session ending & rewards/slashing.
  • Make rewards proportional to the minimum staked validator. Needs further consideration.
  • Introduce staking.stake_nominated(target) allowing an account to nominate another.
  • Slash & reward nominators alongside nominees.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions