Prevent syncing to ancient blocks (#1693)
* Don't try to sync to ancient blocks * Fixed test
This commit is contained in:
committed by
Gav Wood
parent
9a8fdeead9
commit
247495fba2
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user