Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

[BUG] Archive node should only return state query up to indexed height #81

Closed
zhangchiqing opened this issue Mar 12, 2023 · 0 comments · Fixed by #92
Closed

[BUG] Archive node should only return state query up to indexed height #81

zhangchiqing opened this issue Mar 12, 2023 · 0 comments · Fixed by #92
Assignees
Labels
E&V Team Execution / Verification / Edge Team

Comments

@zhangchiqing
Copy link
Member

Current Behavior

Let's say latest block is 1000, register A is updated at height 500 and 700:with the following value:

height 500: register A is 3
height 700: register A is 4

When archive node is catching up, and indexed up to height 600, and we run a state query against it to get state for block 800, then it would thought it has indexed all (which is wrong, because it only indexed up to block 600), and would return register A's value as 3 for block 800, which is wrong

Expected Behavior

If archive node has indexed up height 600, it should return not found for state query against any block above 600, such as 800

Steps To Reproduce

use mainnet staging and flow-archive-access validator

Environment

`v0.29-concurrent-importing-simplify-logs` on flow-archive

What are you currently working on that this is blocking?

No response

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
E&V Team Execution / Verification / Edge Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants