Parity: open network port, use Ropsten
This commit is contained in:
parent
4f7ee6fd3b
commit
81e87bc9ef
@ -13,17 +13,18 @@
|
|||||||
rpc_proxy_port = 8546
|
rpc_proxy_port = 8546
|
||||||
rpc_port = 18546
|
rpc_port = 18546
|
||||||
dapps_port = 8181
|
dapps_port = 8181
|
||||||
|
network_port = 30304
|
||||||
|
|
||||||
credentials = Chef::EncryptedDataBagItem.load('credentials', 'parity')
|
credentials = Chef::EncryptedDataBagItem.load('credentials', 'parity')
|
||||||
|
|
||||||
parity_node "testnet" do
|
parity_node "testnet" do
|
||||||
password credentials["testnet_password"]
|
password credentials["testnet_password"]
|
||||||
config parity: {
|
config parity: {
|
||||||
chain: "testnet",
|
chain: "ropsten",
|
||||||
no_download: true, # Don't Download Updates
|
no_download: true, # Don't Download Updates
|
||||||
},
|
},
|
||||||
network: {
|
network: {
|
||||||
port: 30304,
|
port: network_port,
|
||||||
warp: true,
|
warp: true,
|
||||||
},
|
},
|
||||||
rpc: {
|
rpc: {
|
||||||
@ -49,7 +50,7 @@ end
|
|||||||
unless node.chef_environment == "development"
|
unless node.chef_environment == "development"
|
||||||
include_recipe 'firewall'
|
include_recipe 'firewall'
|
||||||
firewall_rule "parity_testnet" do
|
firewall_rule "parity_testnet" do
|
||||||
port rpc_proxy_port
|
port [ rpc_proxy_port, network_port ]
|
||||||
protocol :tcp
|
protocol :tcp
|
||||||
command :allow
|
command :allow
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user