-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
节点退出网络命令执行后实际未退出,关闭 CAVerify执行命令后也关闭不了 #95
Comments
问题一:执行退网以后没有退出节点是因为节点连接是通过系统合约和配置文件(config.json中配置的节点信息)的并集来连接的,如想去除节点相连把配置文件该节点信息去除即可。 |
Honglei-Cong
pushed a commit
to Honglei-Cong/bcos
that referenced
this issue
Oct 10, 2018
sample crt update
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在同一台虚拟机中实现了2个节点的组网(成功了),但是当我执行非创世节点的退出时,执行命令:
babel-node tool.js NodeAction cancelNode mynode2.json
成功,但是使用命令:babel-node tool.js NodeAction all查看时,仍然有2个节点
[root@localhost systemcontractv2]# babel-node tool.js NodeAction cancelNode mynode2.json
RPC=http:https://127.0.0.1:8545
Ouputpath=./output/
{ HttpProvider: 'http:https://127.0.0.1:8545',
Ouputpath: './output/',
privKey: 'cdf1211403ee5e3e41f74e37899892a108863aaf83997fca860fe1bc4d225130',
account: '0xec23de21751378995fe87691f1c2e6c895cfa07b' }
Soc File :NodeAction
Func :cancelNode
系统合约地址0xf78c73a8a5233fdbdb97b14e80431125f8e1a26a
node.json=mynode2.json
NodeAction合约地址0xdfa68d897479adef6d2e5d26472f81cbcf0034e3
发送交易成功: 0x0282d962161b93dfdf2c195964242edc170c385ffe90caddd55d342f8d5d9d67
[root@localhost systemcontractv2]# babel-node tool.js NodeAction all
RPC=http:https://127.0.0.1:8545
Ouputpath=./output/
{ HttpProvider: 'http:https://127.0.0.1:8545',
Ouputpath: './output/',
privKey: 'cdf1211403ee5e3e41f74e37899892a108863aaf83997fca860fe1bc4d225130',
account: '0xec23de21751378995fe87691f1c2e6c895cfa07b' }
Soc File :NodeAction
Func :all
系统合约地址0xf78c73a8a5233fdbdb97b14e80431125f8e1a26a
NodeAction合约地址0xdfa68d897479adef6d2e5d26472f81cbcf0034e3
NodeIdsLength= 2
----------node 0---------
id=33e4ea6f0822519d46836be933b5900335946d68ca77d5012c64e2b47c9de44c7b224bc557d2e99f8632646672a09f22c07a2fb825af1da138e2e449e0b7d1d0
ip=127.0.0.1
port=30303
category=1
desc=node1
CAhash=
agencyinfo=node1
blocknumber=9560
Idx=0
----------node 1---------
id=a9057dc3386168c267406131c1e1ef8ac9bc347efba00aa6929fdef8c33b5379dacf27ef013d9ca5ded387cfbe7393f8efd3449a569da83a97b8a76c1f917347
ip=127.0.0.1
port=30304
category=1
desc=node2
CAhash=
agencyinfo=node2
blocknumber=13004
Idx=1
另外当我开启CAVerify后,非创世节点始终连不上创世节点了(CA文件已放在/data/CA目录下,是否还需要修改节点的什么配置文件?),此时想关闭CAVerify,但是执行命令:babel-node tool.js ConfigAction set CAVerify false无效果,get出来的始终是打开的状态
The text was updated successfully, but these errors were encountered: