mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
Fixes/improvements for disputes (#3753)
* More debugging output. * Fix chain selection in case of disputes. * Fix flaky test.
This commit is contained in:
@@ -383,18 +383,20 @@ async fn test_skeleton(
|
||||
);
|
||||
|
||||
tracing::trace!("determine undisputed chain response: {:?}", undisputed_chain);
|
||||
|
||||
let target_block_number = chain.number(target_block_hash).unwrap().unwrap();
|
||||
assert_matches!(
|
||||
overseer_recv(
|
||||
virtual_overseer
|
||||
).await,
|
||||
AllMessages::DisputeCoordinator(
|
||||
DisputeCoordinatorMessage::DetermineUndisputedChain {
|
||||
base_number: _,
|
||||
base: _,
|
||||
block_descriptions: _,
|
||||
tx,
|
||||
}
|
||||
) => {
|
||||
tx.send(undisputed_chain).unwrap();
|
||||
tx.send(undisputed_chain.unwrap_or((target_block_number, target_block_hash))).unwrap();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user