Remove special case in consumer addition/removal proposal handlers #458
Labels
scope: testing
Code review, testing, making sure the code is following the specification.
type: refactoring
Code refactoring
type: tech-debt
Slows down development in the long run
Problem
The handlers unnecessarily (IMO) fork the execution by having two paths
interchain-security/x/ccv/provider/keeper/proposal.go
Lines 30 to 35 in dc19c57
interchain-security/x/ccv/provider/keeper/proposal.go
Lines 108 to 112 in dc19c57
This doubles the number of code paths to be tested and reasoned about for little or no gain because all pending proposals are processed in BeginBlock.
Closing criteria
Remove the 'immediate' branches
interchain-security/x/ccv/provider/keeper/proposal.go
Lines 30 to 33 in dc19c57
TODOs
Detail
I can see some extremely minor benefit to ux, perhaps if a consumer has to be stopped in 'an emergency' or something.
Priority
This is low priority because everything seems to be working, although there might be odd yet-to-be solved things going on with the proposals (see #438)
The text was updated successfully, but these errors were encountered: