added default rpc url

This commit is contained in:
Matt Johnstone 2024-10-14 18:01:49 +02:00
parent 6f4fcad90d
commit 0523a4d506
No known key found for this signature in database
GPG Key ID: BE985FBB9BE7D3BB
1 changed files with 19 additions and 10 deletions

View File

@ -30,12 +30,25 @@ const (
)
var (
httpTimeout = 60 * time.Second
rpcUrl = flag.String("rpc-url", "", "Solana RPC URI (including protocol and path)")
listenAddress = flag.String("listen-address", ":8080", "Listen address")
httpTimeoutSecs = flag.Int("http-timeout", 60, "HTTP timeout to use, in seconds.")
// addresses:
httpTimeout = 60 * time.Second
// general config:
rpcUrl = flag.String(
"rpc-url",
"http://localhost:8899",
"Solana RPC URL (including protocol and path), "+
"e.g., 'http://localhost:8899' or 'https://api.mainnet-beta.solana.com'",
)
listenAddress = flag.String(
"listen-address",
":8080",
"Listen address",
)
httpTimeoutSecs = flag.Int(
"http-timeout",
60,
"HTTP timeout to use, in seconds.",
)
// parameters to specify what we're tracking:
nodekeys = flag.String(
"nodekeys",
"",
@ -229,10 +242,6 @@ func main() {
ctx := context.Background()
flag.Parse()
if *rpcUrl == "" {
klog.Fatal("Please specify -rpcURI")
}
if *comprehensiveSlotTracking {
klog.Warning(
"Comprehensive slot tracking will lead to potentially thousands of new " +