Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

PoS FIP-2 implementation stub #181

Merged
merged 4 commits into from
May 20, 2019

Conversation

devintegral
Copy link
Contributor

It is a first stage of implementation.
Issues of "Fantom Proof of Stake FIP-2" 2019.04.10 :

  1. There are no days in chain, block number only;
  2. Validator stake could be locked for transfer by 3rd-party delegation. See chapter 4: "Maximum number of tokens that can be delegated to a validator: 15 times the number of tokens the validator is staking";
  3. Transactions cannot be validated until ordered into block/chain. But invalid transactions cannot be removed from block/chain. See todo of src/posposet/transaction.go. Possible solution: fines;

}
expirationChange struct {
account *hash.Peer
prevDelegatedTo uint64

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prevDelegatedTo is unused (from structcheck)

expirationChange struct {
account *hash.Peer
prevDelegatedTo uint64
prevDelegatedFrom uint64

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prevDelegatedFrom is unused (from structcheck)

@devintegral devintegral merged commit 6b99a90 into Fantom-foundation:master May 20, 2019
devintegral pushed a commit that referenced this pull request May 20, 2019
Merge pull request #181 from devintegral/pos-poset
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants