Light client integration tests (#2638)

* add light nodes to test_sync && test_consensus

* forbid light2light connections

* add light nodes to test_connectivity

* fixed light2light connection penalty

* post-merge fixes

* remove best_queued from Client info
This commit is contained in:
Svyatoslav Nikolsky
2019-06-05 18:14:42 +03:00
committed by Gavin Wood
parent 67bdfc7d8e
commit fc7548ce27
4 changed files with 138 additions and 48 deletions
-6
View File
@@ -168,10 +168,6 @@ pub trait BlockBody<Block: BlockT> {
pub struct ClientInfo<Block: BlockT> {
/// Best block hash.
pub chain: ChainInfo<Block>,
/// Best block number in the queue.
pub best_queued_number: Option<<<Block as BlockT>::Header as HeaderT>::Number>,
/// Best queued block hash.
pub best_queued_hash: Option<Block::Hash>,
}
/// Block status.
@@ -1171,8 +1167,6 @@ impl<B, E, Block, RA> Client<B, E, Block, RA> where
let info = self.backend.blockchain().info();
ClientInfo {
chain: info,
best_queued_hash: None,
best_queued_number: None,
}
}