准备聚合器服务

硬件要求(Pre-alpha测试网络)

对于每个Rollup

  • 每台机器的CPU:4核CPU

  • 每台机器的RAM:16GB RAM

清单

下载 aggregator-config.tar

wget https://pre-alpha-miner-download.opside.network/aggregator_conf.tar
tar -xzvf aggregator_conf.tar

.tar文件包括:

  • node.config.toml -- 节点镜像的TOML配置文件

  • executor.config.json -- 证明服务镜像的JSON配置文件(对于执行器)

  • docker-compose.yml -- 一个docker-compose的YAML文件

  • 数据库初始化的SQL文件 - 两个.sql文件

下载 genesis.json

请您选择一条rollup并下载它的genesis.json文件:选择Rollup的参考资料

您的密钥库

您的聚合器账户的密钥库文件(负责发送证明和收集奖励)

  • 下载开源工具:

wget https://github.com/opside-protocol/opside-tool/releases/download/keystore/keystore-linux-x86_64

请将上述文件放在同一个目录下

下载zkevm节点镜像

wget https://pre-alpha-miner-download.opside.network/zkevm-node.tar

加载镜像

sudo docker load < zkevm-node.tar

修改配置文件

node.config.toml

质押IDE图表中,您已选择一个Rollup进行质押,现在您需要使用来自Rollup的信息修改node.config.toml文件。

您需要修改[Etherman]、[Synchronizer]、[Aggregator]、[EthExManager]。您可以在此处找到[Etherman]和[Synchronizer]的信息:选择Rollup的参考资料

[Etherman]
PoEAddr = "0x610178dA211FEF7D417bC0e6FeD39F05609AD788"  # polygonZkEVM contract addr
GlobalExitRootManagerAddr = "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6" # globalExitRootManager contract addr
GetForksStartBlkNum = 1 # deploy block num

[Synchronizer]
TrustedSequencerURL = ""
GenBlockNumber = 74 # deploy block num

# ================================================= #
[Aggregator]
SenderAddress = "0x70997970c51812dc3a010c7d01b50e0d17dc79c8" 
                # The address of your aggregator account.
                # Make sure that no other aggregator is running with this address.

[EthTxManager]
PrivateKeys = [
   {Path = "/pk/aggregator.keystore", Password = "abcde"}
]            # DO NOT CHANGE PATH, password is your keystore file password

executor.config.json

{
    
    "runExecutorServer": true, // set true to run an executor
    "runExecutorClient": false,
    
    "runAggregatorServer": false,
    "runAggregatorClient": false,  // we do not need a prover nor a mock prover here so false
    "runAggregatorClientMock": false, 
}

Last updated