-
Notifications
You must be signed in to change notification settings - Fork 40
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
Conversation
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
runtime/src/lib.rs
Outdated
@@ -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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
runtime/src/lib.rs
Outdated
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 _; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pub const MinBlocksPerRound: u32 = BLOCKS_PER_DAY as _; | |
pub const MinBlocksPerRound: u32 = BLOCKS_PER_DAY / 6 as _; |
6 rounds per day
runtime/src/lib.rs
Outdated
pub const MinimumPeriod: u64 = SLOT_DURATION / 2; | ||
pub const MinNominatorStake: u128 = 5 * BASE; | ||
pub const MinNominatorStake: u128 = 1 * BASE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
* 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
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) = 2BondDuration
(Number of rounds a collator must remain after requesting to leave) = 7 * BLOCKS_PER_DAY = 7 daysDefaultCollatorCommission
= 20%DefaultParachainBondReservePercent
= 30% (????????????????)MaxCollatorsPerNominator
= 16 collatorsMaxNominatorsPerCollator
= 32 nominatorsMinBlocksPerRound
= BLOCKS_PER_DAY = 1 day.MinCollatorCandidateStk
(Minimum amount of stake to become a collator candidate) = 64 ZTGMinCollatorStk
(Minimum amount of stake an actual collator should put on a round) = 64 ZTGMinNomination
(Minimum amount of stake to nominate a collator) = 1 ZTGMinNominatorStk
(Minimum amout of stake to become a nominator) = 1 ZTGMinSelectedCandidates
(Minimal amout of collator candidates to produce blocks) = 1 candidade