When checking the tx inputs with CheckInputs(), the signature check
count is expected to be 0 when pvChecks is non null. This diff fixes
the current implementation which used the check variable after a move
to increment the sig check count with 0.
Details
Details
- Reviewers
deadalnix - Group Reviewers
Restricted Project - Commits
- rABC59239db2aa64: Fix a potential use after move
ninja all check-all
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
src/validation.cpp | ||
---|---|---|
1074 ↗ | (On Diff #24679) | Remove the else. |
src/validation.cpp | ||
---|---|---|
1074 ↗ | (On Diff #24679) | And add a comment about what is going on. |
src/validation.cpp | ||
---|---|---|
1076 ↗ | (On Diff #24685) | You need to add a comment explaining the flow here because it is confusing. |
src/validation.cpp | ||
---|---|---|
1073 ↗ | (On Diff #24689) | The sigcheck will definitively be counted. his comment is at best misleading. |
1079 ↗ | (On Diff #24689) | Anyone who ends up here can read the code. Repeating the code in English doesn't help. There is a reason WHY the code is structured this way. This is what you need to explain. |