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
- Branch
- master
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 9513 Build 16938: Default Diff Build & Tests Build 16937: arc lint + arc unit
Event Timeline
src/validation.cpp | ||
---|---|---|
1912 | 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 | 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. |