You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Brownie does not apply the host parameter configured using the "brownie networks" CLI when it launches a local RPC network node for use within a development console.
For example, if the local (ganache) development network is modified to use 0.0.0.0:
brownie networks modify development host="http://0.0.0.0"
brownie ignores the host configuration when it launches ganache (only the cmd_settings parameters are passed to ganache):
➜ brownie console --network development
Brownie v1.18.2 - Python development framework for Ethereum
xxx is the active project.
Launching 'ganache-cli --accounts 10 --hardfork istanbul --gasLimit 12000000 --port 8545 --defaultBalanceEther 100'...
Brownie environment is ready
This is required, for example, when connecting to a local network node from a client running within a docker container.
How can it be fixed?
There's an easy work-around: Start ganache manually and supply the required host via the -h flag; brownie will attach to this RPC instead of launching a new one.
A fix would require propagating the parameter to the code where the rpc is launched. Currently, it the host parameter appears to be ignored when starting local network nodes, unless I've missed something :)
The text was updated successfully, but these errors were encountered:
…wnie#1533
Modify fixtures and tests to use a different host ip when launching a temporary rpc network node. This demonstrates that the host parameter is not respected when launching the node.
Environment information
brownie
Version: 1.18.2ganache-cli
Version: 6.12.2solc
Version: 0.8.11+commit.d7f03943.Linux.g++What was wrong?
Brownie does not apply the host parameter configured using the "brownie networks" CLI when it launches a local RPC network node for use within a development console.
For example, if the local (ganache) development network is modified to use
0.0.0.0
:brownie ignores the host configuration when it launches ganache (only the
cmd_settings
parameters are passed to ganache):This is required, for example, when connecting to a local network node from a client running within a docker container.
How can it be fixed?
There's an easy work-around: Start ganache manually and supply the required host via the
-h
flag; brownie will attach to this RPC instead of launching a new one.A fix would require propagating the parameter to the code where the rpc is launched. Currently, it the host parameter appears to be ignored when starting local network nodes, unless I've missed something :)
The text was updated successfully, but these errors were encountered: