Optimise calls to HaveJoinSplitRequirements #2972
Labels
A-consensus
Area: Consensus rules
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
I-performance
Problems and improvements with respect to performance
Projects
Currently we call
HaveJoinSplitRequirements
both inCheckTxInputs
(which is called byContextualCheckInputs
), and directly insideAcceptToMemoryPool
andConnectBlock
. This means that the check insideCheckTxInputs
should never fail, assuming there are no other call paths and we are locking correctly. We should check this, and if we can then we should remove redundant calls.The text was updated successfully, but these errors were encountered: