Watch for BITCOIND_P2P_HOST for different server than BITCOIND_HOST for RPC
This commit is contained in:
parent
c05761b98b
commit
496999644b
@ -71,6 +71,7 @@ var bitcoindConf = {
|
|||||||
host: process.env.BITCOIND_HOST || '127.0.0.1',
|
host: process.env.BITCOIND_HOST || '127.0.0.1',
|
||||||
port: process.env.BITCOIND_PORT || b_port,
|
port: process.env.BITCOIND_PORT || b_port,
|
||||||
p2pPort: process.env.BITCOIND_P2P_PORT || p2p_port,
|
p2pPort: process.env.BITCOIND_P2P_PORT || p2p_port,
|
||||||
|
p2pHost: process.env.BITCOIND_P2P_HOST || process.env.BITCOIND_HOST || '127.0.0.1',
|
||||||
dataDir: dataDir,
|
dataDir: dataDir,
|
||||||
// DO NOT CHANGE THIS!
|
// DO NOT CHANGE THIS!
|
||||||
disableAgent: true
|
disableAgent: true
|
||||||
|
|||||||
@ -27,7 +27,7 @@ function PeerSync(opts) {
|
|||||||
|
|
||||||
PeerSync.prototype.load_peers = function() {
|
PeerSync.prototype.load_peers = function() {
|
||||||
this.peerdb = [{
|
this.peerdb = [{
|
||||||
ipv4: config.bitcoind.host,
|
ipv4: config.bitcoind.p2pHost,
|
||||||
port: config.bitcoind.p2pPort
|
port: config.bitcoind.p2pPort
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user