This checks whether network upgrade code named 'great wall' has activated.
Details
- Reviewers
deadalnix jasonbcox - Group Reviewers
Restricted Project - Commits
- rSTAGING1fcc2a0a4cb0: Add function 'IsGreatWallEnabled'
rABC1fcc2a0a4cb0: Add function 'IsGreatWallEnabled'
Added test
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- gw-activation
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 4636 Build 7335: Bitcoin ABC Buildbot (legacy) Build 7334: arc lint + arc unit
Event Timeline
src/consensus/activation.cpp | ||
---|---|---|
62 ↗ | (On Diff #6798) | Please check if this needs to be broken up into separate functions similar to magnetic anomaly. Iirc the inner function is called directly from another context. |
src/test/activation_tests.cpp | ||
13 ↗ | (On Diff #6798) | These tests probably don't add much value on their own. Activation of the upgrade features tends to be covered in their own tests, which would overlap with this test entirely. |
src/consensus/activation.cpp | ||
---|---|---|
62 ↗ | (On Diff #6798) | If it is needed, it can be done. |
src/test/activation_tests.cpp | ||
13 ↗ | (On Diff #6798) | It adds value because the tests you are mentioning do not exist. This can be removed if/when obsolete and if you feel strongly about it, you'll even be able to do it. There is no point in delaying @dagurval 's work for this. |
src/test/activation_tests.cpp | ||
---|---|---|
25 ↗ | (On Diff #6798) | Hmm does this work? nTime single block timestamp but the activation is based on median-time-past. |
src/consensus/activation.cpp | ||
---|---|---|
62 ↗ | (On Diff #6798) | I'm not sure how to check for that. I at least don't need a different function signature. |
src/test/activation_tests.cpp | ||
25 ↗ | (On Diff #6798) | For brevity I'm using an edge case of MTP where if the block has no parent, it's nTime becomes MTP. Added a comment to clarify. |
src/test/activation_tests.cpp | ||
---|---|---|
25 | Can you make sure mtp is tested, by producing 11 headers instead ? It's fairly easy to declare an array of 11 CBlockIndex |
src/test/activation_tests.cpp | ||
---|---|---|
13 ↗ | (On Diff #6798) | Fair. |