This provides a damage-control mechanism when invalid blocks are being erroneously generated for a new block template. While this is not bullet-proof against all conceivable bugs, it protects miners against issues with transaction inclusion, ordering, etc.
Details
Details
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- empty-block-fallback-gbt-default
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 7369 Build 12781: Bitcoin ABC Buildbot (legacy) Build 12780: arc lint + arc unit
Event Timeline
Comment Actions
Changed tests to call CreateNewBlock() with default params in as many places as possible. Improve existing tests so that a fallback empty block will not accidentally pass.
Comment Actions
I don't think the design here is sound. You don't have an error boundary set anywhere, but a parameter that you pass down to ask what's downstream to not error out. This is not solid. The whole point of the maneuver is to not trust what downstream of the error boundary.