In the Polkadot node --help
I see the following:
--sync <SYNC_MODE>
Blockchain syncing mode.
- `full`: Download and validate full blockchain history.
- `fast`: Download blocks and the latest state only.
- `fast-unsafe`: Same as `fast`, but skip downloading state proofs.
- `warp`: Download the latest state and proof.
[default: full]
Possible values:
- full:
Full sync. Download end verify all blocks
- fast:
Download blocks without executing them. Download latest state with proofs
- fast-unsafe:
Download blocks without executing them. Download latest state without proofs
- warp:
Prove finality and download the latest state
Two questions:
Is
warp
faster thanfast
sync?Is there ever a use case where I should use
fast
(or evenfull
) instead ofwarp
sync or iswarp
sync the better and recommended method for syncing a node?
If I understand correctly, warp
sync does not check for transaction validity and does not need to because it uses justifications/finalization proofs.