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 ./    # 配置文件目录
--delete-all-blocks # 删除区块
--genesis-json genesis.json  # 创世区块文件

jincheng828
49 声望9 粉丝

在奔向财富自由的路上...