Skip to content

Commit

Permalink
Add arb sync response (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillPamPam authored Nov 22, 2024
1 parent 75284c7 commit d137254
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,11 @@ object EthereumChainSpecific : AbstractPollChainSpecific() {
} else {
UpstreamAvailability.OK
}
} else if (raw.get("batchProcessed") != null && raw.get("batchSeen") != null && raw.get("syncTargetMsgCount") != null) {
// arbitrum nitro may return a complex syncing response that means a node is not synced
UpstreamAvailability.SYNCING
} else {
log.error("Received unknown syncing object ${raw.toPrettyString()} for upstream ${upstream.getId()}")
log.error("Received unknown syncing object {} for upstream {}", raw.toPrettyString(), upstream.getId())
UpstreamAvailability.OK
}
}.also {
Expand Down

0 comments on commit d137254

Please sign in to comment.