Skip to content

Commit

Permalink
Merge pull request #583 from tablelandnetwork/avichalp/calibration-he…
Browse files Browse the repository at this point in the history
…althbot

Add healthbot config for calibration
  • Loading branch information
avichalp authored May 31, 2023
2 parents 042814f + dede88b commit 7195a37
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/healthbot/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type ChainConfig struct {
WalletPrivateKey string
AlchemyAPIKey string
AnkrAPIKey string
GlifAPIKey string
Probe struct {
CheckInterval string `default:"15s"`
ReceiptTimeout string `default:"20s"`
Expand Down
2 changes: 1 addition & 1 deletion cmd/healthbot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func main() {
opts := []clientV1.NewClientOption{clientV1.NewClientChain(chain)}
if chain.ID == 314159 {
// Glif API key is empty string because currently we are using the free tier (public node)
opts = append(opts, clientV1.NewClientGlifAPIKey(""))
opts = append(opts, clientV1.NewClientGlifAPIKey(chainCfg.GlifAPIKey))
} else {
opts = append(opts, clientV1.NewClientAlchemyAPIKey(chainCfg.AlchemyAPIKey))
}
Expand Down
10 changes: 10 additions & 0 deletions docker/deployed/testnet/healthbot/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@
"ReceiptTimeout": "40s",
"Tablename": "${HEALTHBOT_POLYGON_MUMBAI_TABLE}"
}
},
{
"ChainID": 314159,
"WalletPrivateKey": "${HEALTHBOT_FILECOIN_CALIBRATION_PRIVATE_KEY}",
"GlifAPIKey": "${HEALTHBOT_GLIF_FILECOIN_CALIBRATION_API_KEY}",
"Probe": {
"CheckInterval": "5m",
"ReceiptTimeout": "300s",
"Tablename": "${HEALTHBOT_FILECOIN_CALIBRATION_TABLE}"
}
}
]
}

0 comments on commit 7195a37

Please sign in to comment.