Rewrite the network TestNet (#3016)
* Add a memory-only option for the network * Tests cleanup * Make grandpa/aura/babe compile * Aura and Babe tests now passing * More work on tests rewrite * Attempt to fix grandpa * Make more grandpa tests pass * More grandpa tests work * Work on sync tests * More work * light_peer_imports_header_from_announce passes * can_sync_small_non_best_forks passes * syncing_node_not_major_syncing_when_disconnected passes * blocks_are_not_announced_by_light_nodes passing * All sync tests passing* Some TestNet cleanup * Work on grandpa tests * More grandpa work * GrandPa work * Add check about block_import * Remove the temporarily added Sync * Fix network tests warnings * voter_persists_its_votes passes * Fix imports in network tests * Fix service tests * Call on_block_imported * Add shortcut * Finish using shortcut
Showing
- substrate/core/cli/src/lib.rs 5 additions, 2 deletionssubstrate/core/cli/src/lib.rs
- substrate/core/consensus/aura/src/lib.rs 6 additions, 31 deletionssubstrate/core/consensus/aura/src/lib.rs
- substrate/core/consensus/babe/src/lib.rs 6 additions, 30 deletionssubstrate/core/consensus/babe/src/lib.rs
- substrate/core/finality-grandpa/src/tests.rs 162 additions, 268 deletionssubstrate/core/finality-grandpa/src/tests.rs
- substrate/core/network/src/config.rs 40 additions, 12 deletionssubstrate/core/network/src/config.rs
- substrate/core/network/src/discovery.rs 13 additions, 1 deletionsubstrate/core/network/src/discovery.rs
- substrate/core/network/src/service.rs 26 additions, 7 deletionssubstrate/core/network/src/service.rs
- substrate/core/network/src/test/block_import.rs 4 additions, 6 deletionssubstrate/core/network/src/test/block_import.rs
- substrate/core/network/src/test/mod.rs 231 additions, 901 deletionssubstrate/core/network/src/test/mod.rs
- substrate/core/network/src/test/sync.rs 184 additions, 142 deletionssubstrate/core/network/src/test/sync.rs
- substrate/core/network/src/transport.rs 16 additions, 3 deletionssubstrate/core/network/src/transport.rs
- substrate/core/service/test/src/lib.rs 5 additions, 3 deletionssubstrate/core/service/test/src/lib.rs
Please register or sign in to comment