support for bridge testbed related parameters in separate file
bridge startup script modified to support sourcing of testbed related parameters like config file and database from .env file also, configuration file for local testbed (private local PoA chains) added
This commit is contained in:
parent
4c5d1fc78a
commit
02fc8cd1fa
|
@ -0,0 +1,35 @@
|
||||||
|
keystore = "./keys"
|
||||||
|
|
||||||
|
[home]
|
||||||
|
account = "0xd6d713a71eb3955c680d5967e9bb22298edefcc3"
|
||||||
|
required_confirmations = 0
|
||||||
|
poll_interval = 5
|
||||||
|
request_timeout = 360
|
||||||
|
rpc_host = "http://127.0.0.1"
|
||||||
|
rpc_port = 38545
|
||||||
|
password = "./keys/d6d713a71eb3955c680d5967e9bb22298edefcc3.pwd"
|
||||||
|
default_gas_price = 1000000000
|
||||||
|
|
||||||
|
[foreign]
|
||||||
|
account = "0xd6d713a71eb3955c680d5967e9bb22298edefcc3"
|
||||||
|
required_confirmations = 0
|
||||||
|
poll_interval = 5
|
||||||
|
request_timeout = 360
|
||||||
|
rpc_host = "http://127.0.0.1"
|
||||||
|
rpc_port = 48545
|
||||||
|
password = "./keys/d6d713a71eb3955c680d5967e9bb22298edefcc3.pwd"
|
||||||
|
default_gas_price = 21000000000
|
||||||
|
gas_price_oracle_url = "https://gasprice.poa.network/"
|
||||||
|
gas_price_speed_type = "fast"
|
||||||
|
gas_price_timeout = 10
|
||||||
|
|
||||||
|
[authorities]
|
||||||
|
accounts = [
|
||||||
|
"0xd6d713a71eb3955c680d5967e9bb22298edefcc3"
|
||||||
|
]
|
||||||
|
required_signatures = 1
|
||||||
|
|
||||||
|
[transactions]
|
||||||
|
deposit_relay = { gas = 300000, concurrency = 100 }
|
||||||
|
withdraw_confirm = { gas = 300000, concurrency = 100 }
|
||||||
|
withdraw_relay = { gas = 300000, concurrency = 100 }
|
|
@ -3,8 +3,13 @@
|
||||||
BRIDGE_BASE="/home/koal/git-repos/parity-bridge-research/erc20/bridge"
|
BRIDGE_BASE="/home/koal/git-repos/parity-bridge-research/erc20/bridge"
|
||||||
TASK="PoA_bridge"
|
TASK="PoA_bridge"
|
||||||
BRIDGE_BIN="./bridge"
|
BRIDGE_BIN="./bridge"
|
||||||
CONFIG="sokol_ropsten_config_rpc.toml"
|
|
||||||
DATABASE="sokol_ropsten_db.toml"
|
if [ -f "./.env" ]; then
|
||||||
|
source "./.env"
|
||||||
|
else
|
||||||
|
CONFIG="sokol_ropsten_config_rpc.toml"
|
||||||
|
DATABASE="sokol_ropsten_db.toml"
|
||||||
|
fi
|
||||||
|
|
||||||
TASK_WORK_DIR="${BRIDGE_BASE}"
|
TASK_WORK_DIR="${BRIDGE_BASE}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue