Skip to content

Commit

Permalink
bsc state error (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillPamPam authored Aug 1, 2024
1 parent 09a6508 commit 91784fe
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class EthereumLowerBoundStateDetector(
"load state tree: failed to load state tree", // filecoin
"purged for block", // erigon
"No state data", // our own error if there is "null" in response
"state is not available", // bsc also can return this error along with "header not found"
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,24 @@ class RecursiveLowerBound(
!nonRetryableErrors.any { err -> it.message?.contains(err, true) ?: false }
}
.doAfterRetry {
log.debug(
"Error in calculation of lower block {} of upstream {}, type - {}, retry attempt - {}, message - {}",
block,
upstream.getId(),
type,
it.totalRetries(),
it.failure().message,
)
if (it.totalRetries() > 30) {
log.warn(
"There are too much retries to calculate {} lower bound of upstream {}, " +
"probably this error with message `{}` is not retryable, please report it to dshackle devs",
type,
upstream.getId(),
it.failure().message,
)
} else {
log.debug(
"Error in calculation of lower block {} of upstream {}, type - {}, retry attempt - {}, message - {}",
block,
upstream.getId(),
type,
it.totalRetries(),
it.failure().message,
)
}
}
}

Expand Down

0 comments on commit 91784fe

Please sign in to comment.