Skip to content

Commit

Permalink
add clearer logs for when getStateWithTimeout triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-soon committed Dec 6, 2024
1 parent 08ded46 commit 0157221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oracle/service/runner/runner.go
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ func ProcessSignVoteQueue(oracleInfo *types.OracleInfo, consensusState *cs.State
TIMEOUT := time.Second * 5
chainState, err := consensusState.GetStateWithTimeout(TIMEOUT)
if err != nil {
log.Errorf("timed out trying to get chain state within %v", TIMEOUT)
log.Errorf("processSignVoteQueue: timed out trying to get chain state within %v", TIMEOUT)
return
}

@@ -118,7 +118,7 @@ func PruneVoteBuffers(oracleInfo *types.OracleInfo, consensusState *cs.State) {
TIMEOUT := time.Second * 3
chainState, err := consensusState.GetStateWithTimeout(TIMEOUT)
if err != nil {
log.Warnf("timed out trying to get chain state after %v", TIMEOUT)
log.Warnf("PruneVoteBuffers: timed out trying to get chain state after %v", TIMEOUT)
} else {
lastBlockTime := chainState.LastBlockTime.Unix()
currTimestampsLen := len(oracleInfo.BlockTimestamps)

0 comments on commit 0157221

Please sign in to comment.