Ensure that sigOpCount and fees are attached to the proper transaction
when sorting for CTOR.
Details
- Reviewers
jasonbcox akb deadalnix - Group Reviewers
Restricted Project - Commits
- rSTAGINGb3abb4892641: [mining] Ensure sigops and fees follow transactions during sorting
rABCb3abb4892641: [mining] Ensure sigops and fees follow transactions during sorting
make check && ./test/functional/test_runner.py --extended
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- mining-metadata
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 3846 Build 5765: Bitcoin ABC Buildbot (legacy) Build 5764: arc lint + arc unit
Event Timeline
Needs test(s)
src/miner.cpp | ||
---|---|---|
141 | Please retain the comment: // Add dummy coinbase tx as first transaction. |
test/functional/abc-magnetic-anomaly-mining.py | ||
---|---|---|
118 ↗ | (On Diff #5763) | Asser transaciton |
test/functional/abc-magnetic-anomaly-mining.py | ||
---|---|---|
118 ↗ | (On Diff #5763) | This comment still needs fixing. Other than that, everything is good |
test/functional/abc-magnetic-anomaly-mining.py | ||
---|---|---|
59 ↗ | (On Diff #5764) | It doesn't matter. It could be index % 5 or something, but I think this is preferable as it guarantees something isn't just completely broken with the deterministic assumptions when checking things match. |
src/miner.cpp | ||
---|---|---|
224 ↗ | (On Diff #5770) | I was wondering how come the block can be filled. This going to be inefficient and at some point someone will forget to keep both in sync and disaster will follow. Something like https://stackoverflow.com/questions/13840998/sorting-zipped-locked-containers-in-c-using-boost-or-the-stl seems to be a more appropriate way to do it. |
src/miner.cpp | ||
---|---|---|
224 ↗ | (On Diff #5770) | I agree. Except all the methods to zip 3 arrays and sort them depend on external dependencies. They're not part of STL yet, nor boost. |
src/miner.cpp | ||
---|---|---|
353 ↗ | (On Diff #5795) | yes |
Looks pretty straightforward to my newbie eyes.
doc/release-notes.md | ||
---|---|---|
6 ↗ | (On Diff #5811) | nit: and -> an |