Jump to content

Testnet Rippled keeps connecting to mainnet peers


StrykerXRP

Recommended Posts

I want to connect my rippled validator to the test net. I let it run last night and checked on is this morning. It had disconnected ~990 times so I went about finding the issue.

Running "rippled peers" I get a list of 1 or 2 validators on the testnet and a bunch on the mainnet ledger. How do I remove these peers and only connect to testnet peers?

I had followed instructions here: https://xrpl.org/connect-your-rippled-to-the-xrp-test-net.html
and also generated and added a validator token as instructed here: https://xrpl.org/run-rippled-as-a-validator.html


rippled.cfg sans comments and validator token


[server]
port_rpc_admin_local
port_peer
port_ws_admin_local

[port_rpc_admin_local]
port = 5005
ip = 127.0.0.1
admin = 127.0.0.1
protocol = http

[port_peer]
port = 51235
ip = 0.0.0.0
protocol = peer

[port_ws_admin_local]
port = 6006
ip = 127.0.0.1
admin = 127.0.0.1
protocol = ws



#-------------------------------------------------------------------------------

[node_size]
small

[node_db]
type=NuDB
path=/var/lib/rippled/db/nudb
online_delete=2000
advisory_delete=0

[database_path]
/var/lib/rippled/db

[debug_logfile]
/var/log/rippled/debug.log

[sntp_servers]
time.windows.com
time.apple.com
time.nist.gov
pool.ntp.org

#-------------------------------------------------------------------------------

[ips]
s.altnet.rippletest.net 51235

[validators_file]
validators.txt

[rpc_startup]
{ "command": "log_level", "severity": "warning" }

[ssl_verify]
1



and validators.txt sans comments

[validator_list_sites]
https://vl.altnet.rippletest.net
 
[validator_list_keys]
ED264807102805220DA0F312E71FC2C69E1552C9C5790F6C25E3729DEB573D5860





output of "rippled validator_list_sites"

Loading: "/etc/opt/ripple/rippled.cfg"
2021-Mar-13 17:38:41.741923873 UTC HTTPClient:NFO Connecting to 127.0.0.1:5005

{
   "result" : {
      "status" : "success",
      "validator_sites" : [
         {
            "last_refresh_status" : "same_sequence",
            "last_refresh_time" : "2021-Mar-13 17:36:57.551597810 UTC",
            "next_refresh_time" : "2021-Mar-13 17:41:57.372449763 UTC",
            "refresh_interval_min" : 5,
            "uri" : "https://vl.altnet.rippletest.net"
         }
      ]
   }
}


output of "rippled peers"
 

Loading: "/etc/opt/ripple/rippled.cfg"
2021-Mar-13 18:11:44.041500208 UTC HTTPClient:NFO Connecting to 127.0.0.1:5005

{
   "result" : {
      "cluster" : {},
      "peers" : [
         {
            "address" : "198.11.206.26:51235",
            "complete_ledgers" : "62182699 - 62182955",
            "latency" : 213,
            "ledger" : "BFC7A733677C06828A4E06D92DDD097C3CFE53E1DD234C18F7FF92854776DE4D",
            "load" : 168,
            "metrics" : {
               "avg_bps_recv" : "15411",
               "avg_bps_sent" : "8783",
               "total_bytes_recv" : "3301115",
               "total_bytes_sent" : "1847736"
            },
            "network_id" : "0",
            "protocol" : "XRPL/2.2",
            "public_key" : "n9LieQkojpM1wsqman9d8jxVXrLxRh8RAmwv5rDvC5ea3kxnEVUn",
            "sanity" : "insane",
            "track" : "diverged",
            "uptime" : 210,
            "version" : "rippled-1.7.0"
         },
         {
            "address" : "[::ffff:169.55.164.20]:51235",
            "complete_ledgers" : "32570 - 62182954",
            "latency" : 128,
            "ledger" : "BFC7A733677C06828A4E06D92DDD097C3CFE53E1DD234C18F7FF92854776DE4D",
            "load" : 219,
            "metrics" : {
               "avg_bps_recv" : "14562",
               "avg_bps_sent" : "9714",
               "total_bytes_recv" : "3234276",
               "total_bytes_sent" : "1986198"
            },
            "network_id" : "0",
            "protocol" : "XRPL/2.2",
            "public_key" : "n94MrqsKc3BWdX2n5bGYy47HTT4egXhAcMrBMRoW6vUg7o7egABj",
            "sanity" : "insane",
            "track" : "diverged",
            "uptime" : 210,
            "version" : "rippled-1.7.0"
         },
         {
            "address" : "[::ffff:34.229.128.152]:51235",
            "complete_ledgers" : "62182699 - 62182955",
            "latency" : 101,
            "ledger" : "BFC7A733677C06828A4E06D92DDD097C3CFE53E1DD234C18F7FF92854776DE4D",
            "load" : 174,
            "metrics" : {
               "avg_bps_recv" : "15434",
               "avg_bps_sent" : "8331",
               "total_bytes_recv" : "3281884",
               "total_bytes_sent" : "1766682"
            },
            "network_id" : "0",
            "protocol" : "XRPL/2.2",
            "public_key" : "n9MqFgf89C1Q81rUXmunZjhFr1sZwaaQYoknVzTVwNC9ky9u2Mxb",
            "sanity" : "insane",
            "track" : "diverged",
            "uptime" : 210,
            "version" : "rippled-1.7.0"
         },
         {
            "address" : "3.216.68.48:51235",
            "complete_ledgers" : "62162955 - 62182955",
            "latency" : 72,
            "ledger" : "BFC7A733677C06828A4E06D92DDD097C3CFE53E1DD234C18F7FF92854776DE4D",
            "load" : 219,
            "metrics" : {
               "avg_bps_recv" : "15329",
               "avg_bps_sent" : "7953",
               "total_bytes_recv" : "3295523",
               "total_bytes_sent" : "1630254"
            },
            "network_id" : "0",
            "protocol" : "XRPL/2.2",
            "public_key" : "n9JewiDJszSGRWdb4HenbzPuAGVe2W7LFSr3DZn2vEKDHmQ6cTV4",
            "sanity" : "insane",
            "track" : "diverged",
            "uptime" : 210,
            "version" : "rippled-1.7.0"
         },
         {
            "address" : "34.239.120.20:51235",
            "complete_ledgers" : "62182699 - 62182955",
            "latency" : 106,
            "ledger" : "BFC7A733677C06828A4E06D92DDD097C3CFE53E1DD234C18F7FF92854776DE4D",
            "load" : 216,
            "metrics" : {
               "avg_bps_recv" : "15725",
               "avg_bps_sent" : "8021",
               "total_bytes_recv" : "3275344",
               "total_bytes_sent" : "1589923"
            },
            "network_id" : "0",
            "protocol" : "XRPL/2.2",
            "public_key" : "n9Jz3nBK4p6zAtkEg3yf88UhWY6Ph9PmVcDpDExK6vMMw4cnQKqJ",
            "sanity" : "insane",
            "track" : "diverged",
            "uptime" : 210,
            "version" : "rippled-1.7.0"
         },
         {
            "address" : "52.90.42.69:51235",
            "complete_ledgers" : "62182699 - 62182954",
            "latency" : 106,
            "ledger" : "BFC7A733677C06828A4E06D92DDD097C3CFE53E1DD234C18F7FF92854776DE4D",
            "load" : 127,
            "metrics" : {
               "avg_bps_recv" : "11494",
               "avg_bps_sent" : "9165",
               "total_bytes_recv" : "2426859",
               "total_bytes_sent" : "1914599"
            },
            "network_id" : "0",
            "protocol" : "XRPL/2.2",
            "public_key" : "n9Jt8awsPzWLjBCNKVEEDQnw4bQEPjezfcQ4gttD1UzbLT1FoG99",
            "sanity" : "insane",
            "track" : "diverged",
            "uptime" : 210,
            "version" : "rippled-1.7.0"
         },
         {
            "address" : "34.201.63.178:51235",
            "complete_ledgers" : "62182699 - 62182955",
            "latency" : 106,
            "ledger" : "BFC7A733677C06828A4E06D92DDD097C3CFE53E1DD234C18F7FF92854776DE4D",
            "load" : 155,
            "metrics" : {
               "avg_bps_recv" : "15465",
               "avg_bps_sent" : "8639",
               "total_bytes_recv" : "3278738",
               "total_bytes_sent" : "1715311"
            },
            "network_id" : "0",
            "protocol" : "XRPL/2.2",
            "public_key" : "n9JxxUPw1QWJkcGgTUhoYFMm49DPy7wnvMoDskG6ican85oZSD6c",
            "sanity" : "insane",
            "track" : "diverged",
            "uptime" : 210,
            "version" : "rippled-1.7.0"
         },
         {
            "address" : "[::ffff:169.54.2.154]:51235",
            "complete_ledgers" : "32570 - 62182955",
            "latency" : 99,
            "ledger" : "BFC7A733677C06828A4E06D92DDD097C3CFE53E1DD234C18F7FF92854776DE4D",
            "load" : 196,
            "metrics" : {
               "avg_bps_recv" : "15012",
               "avg_bps_sent" : "8093",
               "total_bytes_recv" : "3217772",
               "total_bytes_sent" : "1574023"
            },
            "network_id" : "0",
            "protocol" : "XRPL/2.2",
            "public_key" : "n9Kr6UDJAd2yUn9J6bXWpRvQcKRPAEVpeV33NJVBcaDSDVt2eho2",
            "sanity" : "insane",
            "track" : "diverged",
            "uptime" : 210,
            "version" : "rippled-1.7.0"
         },
         {
            "address" : "35.158.96.209:51235",
            "complete_ledgers" : "15720111 - 15720367",
            "latency" : 258,
            "ledger" : "4B68555DC8B4735F65B51C02F04E0591FDCE813D750273DA709F648EC61D20AB",
            "load" : 95,
            "metrics" : {
               "avg_bps_recv" : "12434",
               "avg_bps_sent" : "9987",
               "total_bytes_recv" : "25068601",
               "total_bytes_sent" : "11549696"
            },
            "network_id" : "1",
            "protocol" : "XRPL/2.2",
            "public_key" : "n9KunQcSvwSR7rHGYk2gJSWj97zVSZnNteQwkhSkGoQS5aHZav71",
            "uptime" : 1301,
            "version" : "rippled-1.7.0"
         },
         {
            "address" : "34.210.87.206:51235",
            "complete_ledgers" : "15720111 - 15720367",
            "latency" : 177,
            "ledger" : "4B68555DC8B4735F65B51C02F04E0591FDCE813D750273DA709F648EC61D20AB",
            "load" : 102,
            "metrics" : {
               "avg_bps_recv" : "36557",
               "avg_bps_sent" : "9355",
               "total_bytes_recv" : "91953505",
               "total_bytes_sent" : "21349368"
            },
            "network_id" : "1",
            "protocol" : "XRPL/2.2",
            "public_key" : "n9MUeFYsB4vmjKVcNCawHRDqhMNDUYuprndjDV7r3MDuNRg3ux6V",
            "uptime" : 2385,
            "version" : "rippled-1.7.0-rc2"
         }
      ],
      "status" : "success"
   }
}

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...