一、首先將區塊鏈停止
cd ~/workspace/chainmaker-go/scripts
./cluster_quick_stop.sh

二、修改組態檔
cd ~/workspace/chainmaker-go
grep -rn "consensus:"

有幾個節點修改幾個
vim build/config/node1/chainconfig/bc1.yml

三、洗掉之前的資料
rm -rf build/release/*
四、重新release
cd ~/workspace/chainmaker-go/scripts
./build_release.sh
五、啟動區塊鏈
cd ~/workspace/chainmaker-go/scripts
./cluster_quick_start.sh normal
執行幾個invoke呼叫之后,查看日志發現已經變更共識了
cd ~/workspace
tail -2222 ./chainmaker-go/build/release/chainmaker-V1.0.0-wx-org.chainmaker.org/log/system.log

轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/291261.html
標籤:區塊鏈
上一篇:2021-07-30
