MultiChain / multichain-explorer

Web-based explorer for MultiChain blockchains
GNU Affero General Public License v3.0
177 stars 140 forks source link

Add information about rpcconnect setting #33

Closed selamanse closed 7 months ago

selamanse commented 6 years ago

In case of not using localhost as explorer-node and multichain-node the information about this setting could be useful.

gidgreen commented 6 years ago

I don't think this is correct, since it is a parameter that controls what the CLI interface connects to, not what the node listens to. Perhaps you mean rpcallowip, but even this won't work because the Explorer needs local access to the node's files.

selamanse commented 6 years ago

I had the problem in my setup because I run a container with a multichaind and another with multichain explorer (via docker-compose). Network was all fine but I could see that it doesnt connect to my other node via exploer.

I tried to reverse engineer this (seeing it defaults to 127.0.0.1): https://github.com/MultiChain/multichain-explorer/blob/master/Mce/DataStore.py#L567

and gave it a shot via multichain.conf ... and it worked. so I assumed the connection is made via the service layer of the web application.