-
Notifications
You must be signed in to change notification settings - Fork 628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(state-sync): sync to the current epoch instead of the previous #12102
feat(state-sync): sync to the current epoch instead of the previous #12102
Commits on Sep 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ad4d1d1 - Browse repository at this point
Copy the full SHA ad4d1d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76f9350 - Browse repository at this point
Copy the full SHA 76f9350View commit details -
Configuration menu - View commit details
-
Copy full SHA for a445393 - Browse repository at this point
Copy the full SHA a445393View commit details -
Configuration menu - View commit details
-
Copy full SHA for 174b62f - Browse repository at this point
Copy the full SHA 174b62fView commit details -
Configuration menu - View commit details
-
Copy full SHA for a59e594 - Browse repository at this point
Copy the full SHA a59e594View commit details -
state sync to the current epoch during catchup
this just implements the requester side of things, and does not work because there is no support in the state dumper for this. But it sets up all the logic to request state headers and parts in the new way
Configuration menu - View commit details
-
Copy full SHA for f8f6fb6 - Browse repository at this point
Copy the full SHA f8f6fb6View commit details -
Configuration menu - View commit details
-
Copy full SHA for f4eba89 - Browse repository at this point
Copy the full SHA f4eba89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53e933c - Browse repository at this point
Copy the full SHA 53e933cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c9055f - Browse repository at this point
Copy the full SHA 5c9055fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 281c156 - Browse repository at this point
Copy the full SHA 281c156View commit details
Commits on Sep 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 386df33 - Browse repository at this point
Copy the full SHA 386df33View commit details
Commits on Sep 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for df90eb0 - Browse repository at this point
Copy the full SHA df90eb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2eda311 - Browse repository at this point
Copy the full SHA 2eda311View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5900d8c - Browse repository at this point
Copy the full SHA 5900d8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8dea6ad - Browse repository at this point
Copy the full SHA 8dea6adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 78610c7 - Browse repository at this point
Copy the full SHA 78610c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e5d428e - Browse repository at this point
Copy the full SHA e5d428eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2379aec - Browse repository at this point
Copy the full SHA 2379aecView commit details
Commits on Oct 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5e2f654 - Browse repository at this point
Copy the full SHA 5e2f654View commit details
Commits on Oct 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4e9195a - Browse repository at this point
Copy the full SHA 4e9195aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 78d6a75 - Browse repository at this point
Copy the full SHA 78d6a75View commit details -
Configuration menu - View commit details
-
Copy full SHA for f07977a - Browse repository at this point
Copy the full SHA f07977aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 135921d - Browse repository at this point
Copy the full SHA 135921dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 15d707b - Browse repository at this point
Copy the full SHA 15d707bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 776de8f - Browse repository at this point
Copy the full SHA 776de8fView commit details
Commits on Oct 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9ae019a - Browse repository at this point
Copy the full SHA 9ae019aView commit details
Commits on Oct 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e4649ec - Browse repository at this point
Copy the full SHA e4649ecView commit details -
sync the new way when state syncing due to being behind the chain rat…
…her than catching up for chunk production
Configuration menu - View commit details
-
Copy full SHA for 7f42d30 - Browse repository at this point
Copy the full SHA 7f42d30View commit details -
Configuration menu - View commit details
-
Copy full SHA for abb174d - Browse repository at this point
Copy the full SHA abb174dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e8e9f35 - Browse repository at this point
Copy the full SHA e8e9f35View commit details
Commits on Oct 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b45cff1 - Browse repository at this point
Copy the full SHA b45cff1View commit details -
Configuration menu - View commit details
-
Copy full SHA for f6d860f - Browse repository at this point
Copy the full SHA f6d860fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c58ee5 - Browse repository at this point
Copy the full SHA 8c58ee5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6fa6c3c - Browse repository at this point
Copy the full SHA 6fa6c3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7be8679 - Browse repository at this point
Copy the full SHA 7be8679View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80174d5 - Browse repository at this point
Copy the full SHA 80174d5View commit details
Commits on Oct 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 97d3abc - Browse repository at this point
Copy the full SHA 97d3abcView commit details
Commits on Oct 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3566cd0 - Browse repository at this point
Copy the full SHA 3566cd0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 105257e - Browse repository at this point
Copy the full SHA 105257eView commit details
Commits on Oct 22, 2024
-
don't pass block header to should_make_or_delete_snapshot()
This makes it simpler overall. Also refactor this function to return an enum saying what to do instead of two bools, which was a little bit confusing before.
Configuration menu - View commit details
-
Copy full SHA for c008b90 - Browse repository at this point
Copy the full SHA c008b90View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89bc547 - Browse repository at this point
Copy the full SHA 89bc547View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b81f8c - Browse repository at this point
Copy the full SHA 1b81f8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c10b15 - Browse repository at this point
Copy the full SHA 1c10b15View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18d3623 - Browse repository at this point
Copy the full SHA 18d3623View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb88ad3 - Browse repository at this point
Copy the full SHA eb88ad3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7be1c8a - Browse repository at this point
Copy the full SHA 7be1c8aView commit details -
make get_current_epoch_sync_hash() take a block hash argument like ge…
…t_epoch_start_sync_hash()
Configuration menu - View commit details
-
Copy full SHA for 7902bb7 - Browse repository at this point
Copy the full SHA 7902bb7View commit details -
consolidate calls to get_current_epoch_sync_hash() and get_epoch_star…
…t_sync_hash() make this just one get_sync_hash() with the protocol feature logic in there, and make the other two private
Configuration menu - View commit details
-
Copy full SHA for 7dbf812 - Browse repository at this point
Copy the full SHA 7dbf812View commit details -
Configuration menu - View commit details
-
Copy full SHA for 741862b - Browse repository at this point
Copy the full SHA 741862bView commit details -
move find_sync_hash() back to the ClientActor
this was moved to the Client so we could call it in tests in 9ae019a but now that we have a Chain::get_sync_hash() function, this is no longer needed
Configuration menu - View commit details
-
Copy full SHA for 3176a89 - Browse repository at this point
Copy the full SHA 3176a89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c645ed - Browse repository at this point
Copy the full SHA 6c645edView commit details -
Configuration menu - View commit details
-
Copy full SHA for f96f762 - Browse repository at this point
Copy the full SHA f96f762View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0628634 - Browse repository at this point
Copy the full SHA 0628634View commit details -
add another enum variant to StateSyncInfo for the new version
previous epoch -> V0 current epoch -> V1
Configuration menu - View commit details
-
Copy full SHA for 7d903ec - Browse repository at this point
Copy the full SHA 7d903ecView commit details -
rename StateSyncInfo::block_hash() -> StateSyncInfo::epoch_first_block()
more clear what is being talked about
Configuration menu - View commit details
-
Copy full SHA for ba3397a - Browse repository at this point
Copy the full SHA ba3397aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 78497d4 - Browse repository at this point
Copy the full SHA 78497d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 98b6f6d - Browse repository at this point
Copy the full SHA 98b6f6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f4d4866 - Browse repository at this point
Copy the full SHA f4d4866View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc8e3db - Browse repository at this point
Copy the full SHA dc8e3dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f79f7f - Browse repository at this point
Copy the full SHA 0f79f7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c48db12 - Browse repository at this point
Copy the full SHA c48db12View commit details
Commits on Oct 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3c575f7 - Browse repository at this point
Copy the full SHA 3c575f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 720e2c5 - Browse repository at this point
Copy the full SHA 720e2c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 920156a - Browse repository at this point
Copy the full SHA 920156aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ded0a8e - Browse repository at this point
Copy the full SHA ded0a8eView commit details
Commits on Oct 24, 2024
-
migrate test_state_request to test loop
This test fails because the mock epoch manager does not implement get_block_info(), which is needed in the new implementation of get_sync_hash(). Instead of trying to fix it, just move the test to test loop
Configuration menu - View commit details
-
Copy full SHA for db3e2cb - Browse repository at this point
Copy the full SHA db3e2cbView commit details -
return None in get_sync_hash() for the genesis block
Otherwise this might return an error when looking up the prev header in get_current_epoch_sync_hash(), and we don't want to sync state from before the genesis anyway
Configuration menu - View commit details
-
Copy full SHA for 9991c89 - Browse repository at this point
Copy the full SHA 9991c89View commit details -
Don't call check_sync_hash_validity() for the genesis block in test_s…
…ync_hash_validity() The behavior has changed to return false for the genesis block, but getting the sync hash corresponding to the genesis block is not something we ever want to do, since we're not going to be syncing that state, and there's an assertion that checks we dont use the genesis hash as a sync hash in ClientActorInner::find_sync_hash() anyway.
Configuration menu - View commit details
-
Copy full SHA for 99f98a5 - Browse repository at this point
Copy the full SHA 99f98a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 66f30f1 - Browse repository at this point
Copy the full SHA 66f30f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 902e90a - Browse repository at this point
Copy the full SHA 902e90aView commit details
Commits on Oct 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 752f9e8 - Browse repository at this point
Copy the full SHA 752f9e8View commit details
Commits on Oct 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 598f49c - Browse repository at this point
Copy the full SHA 598f49cView commit details -
The node will actually dump state in the first epoch now with current epoch state sync
Configuration menu - View commit details
-
Copy full SHA for 5133b31 - Browse repository at this point
Copy the full SHA 5133b31View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0572ada - Browse repository at this point
Copy the full SHA 0572adaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 286693b - Browse repository at this point
Copy the full SHA 286693bView commit details