Add performABCIHandler
to testing pkg to replace internal logic of SendMsgs/NextBlock
#3997
Labels
testing
Testing package and unit/integration tests
type: refactor
Architecture, code or CI improvements that may or may not tackle technical debt.
Milestone
Summary
The testing pkg currently has two main entry points to commit a block:
chain.SendMsgs
(receives a list of msgs)chain.NextBlock
(essentially receives empty list of msgs)These two functions should call the same underlying handler which performs the expected steps an ABCI driver would call.
Problem Definition
Currently the testing pkg improperly mocks the flow of an ABCI application. This can lead to issues like improperly set validator set hashes, #1668. We should follow the flow of the ABCI handler to increase our confidence in the correctness of the testing pkg.
See my comment on how the testing pkg currently flows.
The way it should flow is as follows:
Proposal
We should add a function like:
Send msgs and next block can then reuse this function:
As a side note, we may be eventually able to delete:
but the handle time increments so they cannot be replaced until we remove manual handling of time
ref:
CommitHeader
to the TestChain struct #3972For Admin Use
The text was updated successfully, but these errors were encountered: