Open romisalve opened 5 years ago
Currently we've restricted the approval process through UI but a whitelisting feature is also available via an API (which is also used by the UI). You can whitelist IPs from which join requests will be automatically accepted
https://github.com/synechron-finlabs/quorum-maker/wiki#quorum-maker-node-manager-api
/updateWhitelist
Simply post a string array with the IPs you want to whitelist to this IP
这是我的代码应该可以帮助到你 用nodejs写的。
`var request = require('request'); var url="http://127.0.0.1:22004/updateWhitelist"; var fs = require('fs') const argv = process.argv requestData = fs.readFileSync('./IP').toString() requestData = JSON.parse(requestData) console.log(requestData) httprequest(url,requestData);
function httprequest(url,data){ request({ url: url, method: "POST", json: true, headers: { "content-type": "application/json", }, body: requestData }, function(error, response, body) { if (!error && response.statusCode == 200) { console.log(body) } }); }; ` IP的文件内容 ["39.97.183.202","47.110.249.21","39.96.194.23"]
I tried to follow the steps described on "Setting up Quorum Network on multiple machines". First, I created the network by defining all the information required for my first node and I left it up.
The problem is when I try to join the network. I get this error:![adding node](https://user-images.githubusercontent.com/21060405/55406432-7ddef400-5532-11e9-9f0c-51be99431fb7.PNG)
I am running on a Centos virtual machine through SSH. I tried to disable firewall but the error keeps appearing.
Also, is there a way to approve join request without using web UI? Or it is possible to acces through SSH?
THank you!