-
Notifications
You must be signed in to change notification settings - Fork 70
Description
Hi all,
Anybody could give any insights into how to set up the configs for DATA.api to connect to a local cluster of 3 rippled validators, please?
Validators' local IPs and public keys:
"nHB2dJDdSCmYtNSavvbG7Bsc46zFXWuvH7FvFqp9Nma1EQpRpGbz" : "192.168.1.97",
"nHBZM8xDhz2gQ53jkQWbHseALzANHPED8KYavrXKQM85EMXrbpU8" : "192.168.1.98",
"nHBWGxXEfRe2qXg8gFfemMo7vEmGkSJ4LD6xq6pU9VctwV6cpQSK" : "192.168.1.132"
"Data.api" is running on a 4th machine, inside VirtualBox-Ubuntu 18, in the same local network, IP 192.168.1....
Data.api works locally (returns health ok at 127.0.0.1:7111/v2/health), I can't connect it to the validator to extract the history.
When I enter "node backfill.js", I get:
NotConnectedError: connect ECONNREFUSED 192.168.1.97:443
Below are the best settings that I could come up with:
{
"port": 7111,
"logLevel": 2,
"logFile": "log_test",
"genesis_ledger": 1,
"hbase" : {
"logLevel" : 2,
"prefix" : "test_",
"servers" : [
{"host" : "//127.0.0.1", "port": 9090} OK WORKS
]
},
"ripple": {
"server" : "ws://192.168.1.97:443"
},
"cacheControl": {
"max-age": 10,
"stale-while-revalidate": 30,
"stale-if-error": 300
},
"hbase-rest" : {
"prefix" : "test_",
"host" : "127.0.0.1",
"port" : 20550 OK WORKS
},
"validators-config" : "validators.config.json.example",
"fee_url": "http://192.168.1.97:51234",
"hdfs": { DO I NEED THIS for local Hbase?
"user": "impala",
"host": "localhost",
"port": 50070,
"path": "/path/"
},
"recipients": ["[email protected]"], Is this for hdfs? DO I NEED THIS for local Hbase?
"rippleds_url": "https://data.ripple.com/v2/network/topology/nodes", Don't know how to serve this? What can I put here?
"rateLimit": { What are these for?
"max": 60,
"duration": 60000,
"whitelist": [],
"blacklist": []
},
"redis": { DO I NEED THIS for local Hbase?
"host": "localhost",
"port": "6379"
}
}
================VALIDATORS=================
{
"validator-domains" : {
"nHB2dJDdSCmYtNSavvbùuuuuuuuuuuuuvH7FvFqp9Nma1EQpRpGbz" : "192.168.1.97",
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkNHPED8KYavrXKQM85EMXrbpU8" : "192.168.1.98",
"nHBWGxXEfRe2qXg8gFfemMo7vEmGkSJ4LD6xq6pU9VctwV6cpQSK" : "192.168.1.132"
},
"unverified-validators" : [
"nHBZM8xDhz2gQ5kkkkkkkkkkkkklllNHPED8KYavrXKQM85EMXrbpU8",
"nHBWGxXEfRe2qXg8gFfjjjjjjjjjjjjjjjjjjjjjjjjjjjjJ4LD6xq6pU9VctwV6cpQSK",
"nHB2dJDdSCmYtfffffffffffffffffff46zFXWuvH7FvFqp9Nma1EQpRpGbz"
]
}
Thank you very much!