solana cluster学习(1)

1. cluster是validator的集合,cluster分为控制平面和数据平面。并且,cluster中有lead role,每一个slot期间,此node负责根据交易创建entry,并且打上时间戳,而且还要签名。并且需要把交易转化为batches,分发给validators.

2. cluster的需要一个配置文件进行初始化,此配置文件中包含mint conf和bootstrap validator信息。其中:

    bootstrap validator的作用:The validator holding the bootstrap validator's private key is responsible for appending the first entries to the ledger.

    mini conf的作用:It initializes its internal state with the mint's account. That account will hold the number of native tokens defined by the genesis config.

    The second validator then contacts the bootstrap validator to register as a validator. Additional validators then register with any registered member of the cluster.

3.validator如何加入cluster: 

    Validators enter the cluster via registration messages sent to its control planes

    其中:validator是通过gossip协议进行管理的。

4. 发送交易到cluster:

    Clients send transactions to any validator's Transaction Processing Unit (TPU) port.

    cluster中处于leader role的node,处理此交易。此node负责根据交易创建entry,并且打上时间戳,而且还要签名。并且需要把交易转化为batches,分发给validators.

你可能感兴趣的:(solana cluster学习(1))