Add arb sync response (#596)
This commit is contained in:
@@ -126,8 +126,11 @@ object EthereumChainSpecific : AbstractPollChainSpecific() {
|
|||||||
} else {
|
} else {
|
||||||
UpstreamAvailability.OK
|
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 {
|
} 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
|
UpstreamAvailability.OK
|
||||||
}
|
}
|
||||||
}.also {
|
}.also {
|
||||||
|
|||||||
Reference in New Issue
Block a user