How to set up a gateway node?

1

I have two nodes running in my local machine. one public facing and another connected ONLY to the public facing node. I ensure they are whitelisted and in different ports. the nodes connect just fine, but for some reason my "hidden" node is not syncing. The data transmitted between it and the public facing one is just a few KBs. If i run both on regtest, generating blocks and sending txs happen basically instantly, so that works fine. Whats going on in mainnet that it doesnt allow it to sync? Is there something i need to configure?

sken

Posted 2018-09-26T04:01:23.950

Reputation: 11

You should post some detail about how they are configured, for example how have you connected them together, and what whitelist configuration was used. Using getblockchaininfo on the non-listening node should give some more information about its state (ie, has it synchronised any headers).Anonymous 2018-09-26T04:03:44.977

blockchaininfo is what i have.

The listening node is set up with -port=5801 -listen -debug -whitelist=127.0.0.1 and the hidden node is set up with -port=5802 -connect=127.0.0.1:5801 -debug

sken 2018-09-26T04:10:21.990

Huh, interesting. In general you might be better off looking at whitebind for this application, but I'm not sure why you're running into trouble here. Can you verify that 5801 is listening, for example with netstat or telnet?Anonymous 2018-09-26T04:12:42.097

yep. i used netstat and it says ESTABLISHED. In regtest it works just fine. I'll try whitebind and see how it goes.sken 2018-09-26T04:19:07.743

No answers