Prevent syncing to ancient blocks (#1693)

* Don't try to sync to ancient blocks

* Fixed test
This commit is contained in:
Arkadiy Paronyan
2016-07-23 17:27:23 +02:00
committed by Gav Wood
parent 9a8fdeead9
commit 247495fba2
4 changed files with 57 additions and 23 deletions

View File

@@ -108,7 +108,7 @@ fn restart() {
net.restart_peer(0);
let status = net.peer(0).sync.read().status();
assert_eq!(status.state, SyncState::ChainHead);
assert_eq!(status.state, SyncState::Idle);
}
#[test]