Proto/test: valid and commutable operations
Context
This MR complements the tests produces during %(OKR 2022Q3 - 1.1) Pipelining.
Mainly, it validates that given a set of covalid operations OPS in a context,
any subset ops of OPS produces an applicable block (where ops are sorted as expected in a block).
To do so, it provides an API to build valid operations generators that are used for both :
generates the valid operations by operation kind,
builds the context where they are valid.
This MR also transforms the generic operation generator into pbt generator.
Finally, it optimizes the manager operations validation tests.
On the road, it adds a test where an endorsement is signed by a consensus key.
Manually testing the MR
dune runtest src/proto_alpha/lib_protocol/test/integration/validate
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by vbot