You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use flat JSON format for seid /status response parsing (#39)
## Summary
- The `statusResponse` struct expected a JSONRPC `result` wrapper
(`{"result":{"sync_info":{...}}}`) but seid returns a flat format
(`{"sync_info":{...}}`). This caused `LatestHeight` to silently fail on
every poll — `strconv.ParseInt("")` returned an error each time —
leaving the `await-condition` task stuck indefinitely even after the
target height was reached.
- Same wrapper assumption existed in `result_export.go` for both
`/status` and `/block_results` endpoints; fixed both.
## Root cause
Discovered while debugging a `pacific-1-shadow-replayer` pre-init Job
where `seid` had synced past the target height (198.8M vs 198.7M target)
but the sidecar task never detected it. The TCP connection was
established and HTTP 200s were flowing, but the JSON parse always
produced an empty string for `latest_block_height`.
## Test plan
- [x] All existing tests updated to use the flat format and pass
- [x] `go test ./sidecar/... -count=1` — all 7 packages pass
0 commit comments