Skip to content

Commit

Permalink
increase tracking time
Browse files Browse the repository at this point in the history
  • Loading branch information
batphonghan committed Feb 14, 2024
1 parent f468d98 commit 04eb40c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stader/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ var preSignedCooldown, _ = time.ParseDuration("1h")
var feeRecepientPollingInterval, _ = time.ParseDuration("5m")
var taskCooldown, _ = time.ParseDuration("10s")
var merkleProofsDownloadInterval, _ = time.ParseDuration("3h")
var nodeDiversityTracker, _ = time.ParseDuration("1h")
var nodeDiversityTracker, _ = time.ParseDuration("24h")
var nodeDiversityTrackerCooldown, _ = time.ParseDuration("10m")

const (
MaxConcurrentEth1Requests = 200
Expand Down Expand Up @@ -417,19 +418,22 @@ func run(c *cli.Context) error {
message, err := makesNodeDiversityMessage(ec, bc, pnr, w, cfg)
if err != nil {
errorLog.Printlnf("Error makesNodeDiversityMessage %+v", err)
time.Sleep(nodeDiversityTrackerCooldown)
continue
}

request, err := makesNodeDiversityRequest(message, privateKey)
if err != nil {
errorLog.Printlnf("Error makesNodeDiversityRequest %+v", err)
time.Sleep(nodeDiversityTrackerCooldown)
continue
}

response, err := stader.SendNodeDiversityResponseType(c, request)

if err != nil {
errorLog.Printlnf("Error SendNodeDiversityResponseType %+v", err)
time.Sleep(nodeDiversityTrackerCooldown)
continue
}

Expand Down

0 comments on commit 04eb40c

Please sign in to comment.