Snapsync functionality should be re-written to improve readability and maintainability.
Evaluate if we can implement a simple state machine as it seems to behave as one: Each syncing phase being a different "state" for this machine, with different potential state transitions.
spawned crate should be used for this (and extend it, in case it is required)
Snapsync functionality should be re-written to improve readability and maintainability.
Evaluate if we can implement a simple state machine as it seems to behave as one: Each syncing phase being a different "state" for this machine, with different potential state transitions.
spawnedcrate should be used for this (and extend it, in case it is required)