Isolate the code of ChainSync and turn it into a state machine (#2497)
* Move the is_offline and is_major_syncing logic to service.rs * Move the ImportQueue to service.rs * Remove stop() and abort() * Add some more documentation to sync.rs
Showing
- substrate/core/network/src/protocol.rs 40 additions, 38 deletionssubstrate/core/network/src/protocol.rs
- substrate/core/network/src/service.rs 29 additions, 8 deletionssubstrate/core/network/src/service.rs
- substrate/core/network/src/sync.rs 63 additions, 99 deletionssubstrate/core/network/src/sync.rs
- substrate/core/network/src/test/mod.rs 30 additions, 21 deletionssubstrate/core/network/src/test/mod.rs
- substrate/core/network/src/test/sync.rs 2 additions, 4 deletionssubstrate/core/network/src/test/sync.rs
Please register or sign in to comment