This makes the code more solid as there is no risk of reallocation mid way.
Details
Details
- Reviewers
jasonbcox - Group Reviewers
Restricted Project - Commits
- rSTAGINGff9578c4bcd3: [ConnectBlock] Use an index to refers into blockundo.vtxundo rather than pusing…
rABCff9578c4bcd3: [ConnectBlock] Use an index to refers into blockundo.vtxundo rather than pusing…
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 | ||
---|---|---|
1912 ↗ | (On Diff #16409) | Any reason to not move this initialization down to where txIndex is initialized? It isn't used until that loop anyway, and block.vtx.size() doesn't change. |
src/validation.cpp | ||
---|---|---|
1912 ↗ | (On Diff #16409) | This is where everything is setup. If anything we'd have to move the other loop up, but this doesn't seem like the best move for this patch. |