Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update collator parameters #192

Merged
merged 2 commits into from
Jun 21, 2021
Merged

Update collator parameters #192

merged 2 commits into from
Jun 21, 2021

Conversation

c410-f3r
Copy link
Contributor

@c410-f3r c410-f3r commented Jun 21, 2021

Please, feel free to discuss better parameters.
For more information, take a look at https://github.com/PureStake/moonbeam/blob/1cde8ef9c3bb8b3832ce0beeb8fb679e1530586d/pallets/parachain-staking/src/lib.rs#L642-L673.

  • CollatorDeposit (Amount necessary to map Author ID to Accout ID) = 2
  • BondDuration (Number of rounds a collator must remain after requesting to leave) = 7 * BLOCKS_PER_DAY = 7 days
  • DefaultCollatorCommission = 20%
  • DefaultParachainBondReservePercent = 30% (????????????????)
  • MaxCollatorsPerNominator = 16 collators
  • MaxNominatorsPerCollator = 32 nominators
  • MinBlocksPerRound = BLOCKS_PER_DAY = 1 day.
  • MinCollatorCandidateStk (Minimum amount of stake to become a collator candidate) = 64 ZTG
  • MinCollatorStk (Minimum amount of stake an actual collator should put on a round) = 64 ZTG
  • MinNomination (Minimum amount of stake to nominate a collator) = 1 ZTG
  • MinNominatorStk (Minimum amout of stake to become a nominator) = 1 ZTG
  • MinSelectedCandidates (Minimal amout of collator candidates to produce blocks) = 1 candidade

CollatorDeposit (Amount necessary to map Author ID to Accout ID): 2
BondDuration (Number of rounds a collator must remain after requesting to leave): 7 * BLOCKS_PER_DAY
DefaultCollatorCommission: 20%
DefaultParachainBondReservePercent: 30% (????????????????)
MaxCollatorsPerNominator: 16 collators
MaxNominatorsPerCollator: 32 nominators
MinBlocksPerRound: BLOCKS_PER_DAY.
MinCollatorCandidateStk (Minimum amount of stake to become a collator candidate): 64 ZTG
MinCollatorStk (Minimum amount of stake an actual collator should put on a round): 64 ZTG
MinNomination (Minimum amount of stake to nominate a collator): 1 ZTG
MinNominatorStk (Minimum amout of stake to become a nominator): 1 ZTG
MinSelectedCandidates (Minimal amout of collator candidates to produce blocks): 1 candidades
@c410-f3r c410-f3r requested review from sea212 and lsaether June 21, 2021 17:11
@c410-f3r c410-f3r added the s:review-needed The pull request requires reviews label Jun 21, 2021
@@ -93,19 +93,19 @@ pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<Address, Call, Signatu

parameter_types! {
pub const BlockHashCount: BlockNumber = BLOCK_HASH_COUNT;
pub const BondDuration: u32 = 1;
pub const BondDuration: u32 = 7 * BLOCKS_PER_DAY as u32;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
pub const BondDuration: u32 = 7 * BLOCKS_PER_DAY as u32;
pub const BondDuration: u32 = BLOCKS_PER_DAY as u32;

Shorten it for the testnet so we can change the collator set more often.

pub const MinBlocksPerRound: u32 = BLOCKS_PER_MINUTE as _;
pub const MinCollatorStake: u128 = 100 * BASE;
pub const MaxNominatorsPerCollator: u32 = 32;
pub const MinBlocksPerRound: u32 = BLOCKS_PER_DAY as _;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
pub const MinBlocksPerRound: u32 = BLOCKS_PER_DAY as _;
pub const MinBlocksPerRound: u32 = BLOCKS_PER_DAY / 6 as _;

6 rounds per day

pub const MinimumPeriod: u64 = SLOT_DURATION / 2;
pub const MinNominatorStake: u128 = 5 * BASE;
pub const MinNominatorStake: u128 = 1 * BASE;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
pub const MinNominatorStake: u128 = 1 * BASE;
pub const MinNominatorStake: u128 = BASE / 2;

since we give 1 ZBP on the faucet, this will allow someone to make just 1 faucet hit then nominate a collator

@lsaether lsaether merged commit e3d622c into main Jun 21, 2021
@lsaether lsaether deleted the caio-deploy-again branch June 21, 2021 21:45
@sea212 sea212 added s:accepted This pull request is ready for merge and removed s:review-needed The pull request requires reviews labels Jun 24, 2021
c410-f3r added a commit to c410-f3r/zeitgeist that referenced this pull request Sep 14, 2021
* Update collator parameters

CollatorDeposit (Amount necessary to map Author ID to Accout ID): 2
BondDuration (Number of rounds a collator must remain after requesting to leave): 7 * BLOCKS_PER_DAY
DefaultCollatorCommission: 20%
DefaultParachainBondReservePercent: 30% (????????????????)
MaxCollatorsPerNominator: 16 collators
MaxNominatorsPerCollator: 32 nominators
MinBlocksPerRound: BLOCKS_PER_DAY.
MinCollatorCandidateStk (Minimum amount of stake to become a collator candidate): 64 ZTG
MinCollatorStk (Minimum amount of stake an actual collator should put on a round): 64 ZTG
MinNomination (Minimum amount of stake to nominate a collator): 1 ZTG
MinNominatorStk (Minimum amout of stake to become a nominator): 1 ZTG
MinSelectedCandidates (Minimal amout of collator candidates to produce blocks): 1 candidades

* Address comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s:accepted This pull request is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants