-
Notifications
You must be signed in to change notification settings - Fork 13
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
Should we use this format Vec<(AccountId, AccountId, GrandpaId, AuraId, ImOnlineId, AuthorityDiscoveryId)>
, or only Vec<AuraId>
for initial_authorities
in the chain specification for a Parachain, where the 1st and 2nd elements of the tuple would represent the Stash and Controller keys for controlling its funds
#250
Comments
in the DataHighway standalone chain however parachain collators maintain parachains by aggregating parachain transactions from users into parachain block candidates and producing state transition proofs for relay chain validators based on those blocks. so i believe we need the Aura session key to produce the parachain block candidates, but i'm not sure if the collator needs the Grandpa session key since the relay chain validator is the one that finalises the blocks. collators maintain a full node for the relay chain and a full node for their particular parachain in order to retain all necessary info to be able to collate and execute transactions to produce/author and provide unsealed new blocks to validators on the relay chain for proposing and finalization of parachain blocks. the collators' set (and their nominators) are selected to produce blocks with a valid set of transactions based on their stake in the network, and part of each block reward goes to the collator that produced the block, who then shares it with the nominators. collators also get stashed if they misbehave so why shouldn't parachain collators need to have both a Stash and Controller session key? for example, Karura is a parachain on the Kusama network, and in their chain spec here https://github.com/AcalaNetwork/Acala/blob/master/node/service/src/chain_spec/karura.rs#L99 they use why doesn't the substrate-parachain-template include an as for the the documentation says that unlike validators, collator nodes do not secure the network, so if a parachain block is invalid, it will get rejected by validators, but don't collators still need to send heartbeats too to signal that their node is online each session in a similar way even if they aren't currently providing unsealed new blocks to validators on the relay chain? as for the |
@ayushmishra2005 , could you highlight in the title of this issue that your question is Parachain-specific. |
Vec<(AccountId, AccountId, GrandpaId, AuraId, ImOnlineId, AuthorityDiscoveryId)>
, or only Vec<AuraId>
for initial_authorities
Vec<(AccountId, AccountId, GrandpaId, AuraId, ImOnlineId, AuthorityDiscoveryId)>
, or only Vec<AuraId>
for initial_authorities
in the chain specification for a Parachain, where the 1st and 2nd elements of the tuple would represent the Stash and Controller keys for controlling its funds
Right, it does not.
The devhub parachain template uses no slashing, it is pure vanilla
Another example: https://github.com/paritytech/polkadot/blob/dcccd9671191f54831b6b0d9c44170d0eb184700/node/service/src/chain_spec.rs#L296 One idea about collator selection for sovereign chains you might get a lot from: Sub0 Online: Limited Delegated Proof of Stake for Parachains in the Polkadot Ecosystem |
Should we use this format
Vec<(AccountId, AccountId, GrandpaId, AuraId, ImOnlineId, AuthorityDiscoveryId)>
, or onlyVec<AuraId>
forinitial_authorities
intestnet_genesis
function?https://github.com/substrate-developer-hub/substrate-parachain-template/blob/master/node/src/chain_spec.rs#L128
The text was updated successfully, but these errors were encountered: