solana/wen-restart/proto
Wen 0c42df47fe
Generate snapshot after reaching agreement in wen_restart. (#1109)
* Generate snapshot after reaching agreement in wen_restart.

* Fix a bad merge and carry new_root_slot through HeaviestFork.

* Replace real snapshot service with fake one to avoid circular dependency.

* Remove circular dependency.

* Update wen-restart/src/wen_restart.rs

Co-authored-by: Brooks <brooks@prumo.org>

* Update wen-restart/src/wen_restart.rs

Co-authored-by: Brooks <brooks@prumo.org>

* Update wen-restart/src/wen_restart.rs

Co-authored-by: Brooks <brooks@prumo.org>

* Update wen-restart/src/wen_restart.rs

Co-authored-by: Brooks <brooks@prumo.org>

* Add extra newline.

* Fix constant name.

* Do not use &Arc<...>.

* Check return values in tests.

* Check more return values.

* Remove unnecessary rehash and comment on why new_root_bank is always present.

* Split trigger_eah_calculation_if_needed into separate function.

* Find base slot for incremental snapshot correctly, generate full snapshot
if base is not available.

* Switch to new send_eah_request_if_needed() interface.

* Always write full snapshot into our own directory.

* No need to specify snapshot under the snapshot dir.

* The normal_flow test doesn't need fake snapshot service if it doesn't
need to trigger EAH request.

* Update wen-restart/src/wen_restart.rs

Co-authored-by: Brooks <brooks@prumo.org>

* Add a test for generate_snapshot.

* Small fixes.

* Return error of the slot we picked is lower than any of the snapshot slots.
Always write incremental snapshot, which is faster.

* Add more tests for generate_snapshot.

* Update wen-restart/src/wen_restart.rs

Co-authored-by: Brooks <brooks@prumo.org>

* Update comments about set_root().

* Write directly into incremental snapshot dir and purge bank snapshots.

* Remove the loop, we should have the snapshot when the method exits.

* Change comments.

* Small fixes.

* Fix a bad merge.

* Remove unnecessary loop and error.

---------

Co-authored-by: Brooks <brooks@prumo.org>
2024-05-10 14:39:40 -07:00
..
wen_restart.proto Generate snapshot after reaching agreement in wen_restart. (#1109) 2024-05-10 14:39:40 -07:00