Do not call longest chain by default (#6704)

* Do not call longest chain by default

We always called longest chain by default just for some potential
logging. This was probably some oversight for when this select chain
implementation was introduced.

* Fix tests
This commit is contained in:
Bastian Köcher
2023-02-17 08:55:14 +01:00
committed by GitHub
parent 2853f349bf
commit 5ca430b649
2 changed files with 4 additions and 13 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ fn test_harness<T: Future<Output = VirtualOverseer>>(
let target_hash = case_vars.target_block.clone();
let selection_process = async move {
let best = select_relay_chain
.finality_target_with_longest_chain(target_hash, target_hash, None)
.finality_target_with_longest_chain(target_hash, None)
.await
.unwrap();
finality_target_tx.send(Some(best)).unwrap();