Skip to content

Backport release/v6.3: Support query latest state when SS disabled#2765

Merged
philipsu522 merged 1 commit intorelease/v6.3from
backport-2762-to-release/v6.3
Jan 26, 2026
Merged

Backport release/v6.3: Support query latest state when SS disabled#2765
philipsu522 merged 1 commit intorelease/v6.3from
backport-2762-to-release/v6.3

Conversation

@github-actions
Copy link

Backport of #2762 to release/v6.3.

## Describe your changes and provide context
In previous PR, we removed completely to serve any historical query from
SC, because that could cause data inconsistency issues (SC data is not
in sync with SS)

However that introduced a bug for validator nodes, since validator nodes
have SS disabled, and it still need to be able to serve query with
height=latestHeight

This PR fixed both issues by adding the SC back, but only serve from SC
when SS is disabled to keep the data still consistent for RPC node.

## Testing performed to validate your change
Added unit test

(cherry picked from commit cfd3327)
@philipsu522 philipsu522 merged commit 2adbd97 into release/v6.3 Jan 26, 2026
@philipsu522 philipsu522 deleted the backport-2762-to-release/v6.3 branch January 26, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants