【EOS】nodeos配置命令

39次阅读

共计 876 个字符,预计需要花费 3 分钟才能阅读完成。

config.ini
# 创世区块位置 –genesis-json genesis.json
genesis-json = “/Users/liyuechun/Library/Application Support/eosio/nodeos/config/genesis.json”
# 开启挖矿; -e
enable-stale-production = true
# 区块生产插件 –plugin eosio::producer_plugin
plugin = eosio::producer_plugin
# api 和 http 插件
plugin = eosio::chain_api_plugin
plugin = eosio::http_plugin
# 历史数据查看插件
plugin = eosio::history_api_plugin

# 生产者账户名称,测试链默认是 eosio; -p eosio
producer-name = eosio
# 生产者签名服务,可以有 2 种方式;Using a Key / Using Keosd
# signature-provider = EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV=KEY:5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
# EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV=KEOSD:https://127.0.0.1:88888
signature-provider = PUBLIC_SIGNING_KEY=KEY:PRIVATE_SIGNING_KEY

# p2p 节点列表,默认端口是 9876
p2p-peer-address = 123.255.78.9:9876 –p2p-peer-address=123.255.78.9:9876
命令行
nodeos
–data-dir ./data/ # 区块数据目录
–config-dir ./ # 配置文件目录
–genesis-json genesis.json # 创世区块文件

正文完
 0