IntersectMBO / ouroboros-consensus

Implementation of a Consensus Layer for the Ouroboros family of protocols
https://ouroboros-consensus.cardano.intersectmbo.org
Apache License 2.0
31 stars 22 forks source link

Test `chainSelectionPerformed` in the ChainDB QSM tests #707

Open edsko opened 4 years ago

edsko commented 4 years ago

This would require keeping track of promises within the model, which is essentially a new kind of handle. At the moment this is a pain in the ass, but this will become much easier once we start using the generalized QSM interface (#254).

edsko commented 4 years ago

In particular, https://github.com/input-output-hk/ouroboros-network/pull/1709/commits/6996372f70fc5886447d00284fe7453d00413c26#diff-b0fde997cd958df452e8af3627fe2943R438 is not currently exercised in any test.

mrBliss commented 4 years ago

We should test the asynchronous API, not just the synchronous API. We should allow the queue size to grow.