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
#3043)
When we do `reset_data_pre_state_sync` before running state sync, we garbage collect everything up to sync block, which includes the prev block of the sync block. However, when we run state sync, we use `prev_hash` of sync block inside `possible_targets` [here](https://github.com/nearprotocol/nearcore/blob/f65d2441d66fa13f7933c23ba833311677ce1e96/chain/client/src/sync.rs#L801). Therefore, we cannot garbage collect `prev_hash` of sync block. Fixes#3042.
Test plan
---------
`test_data_reset_before_state_sync`
#3043)
When we do `reset_data_pre_state_sync` before running state sync, we garbage collect everything up to sync block, which includes the prev block of the sync block. However, when we run state sync, we use `prev_hash` of sync block inside `possible_targets` [here](https://github.com/nearprotocol/nearcore/blob/f65d2441d66fa13f7933c23ba833311677ce1e96/chain/client/src/sync.rs#L801). Therefore, we cannot garbage collect `prev_hash` of sync block. Fixes#3042.
Test plan
---------
`test_data_reset_before_state_sync`
On betanet we observe that state sync fail with
It appears that information needed for state sync is already garbage collected.
The text was updated successfully, but these errors were encountered: