Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge bitcoin#30817: test: Add coverage for dumptxoutset failure robu…
…stness c2b779d refactor: Manage dumptxoutset RAII classes with std::optional (Fabian Jahr) 4b5bf33 test: Add coverage for failing dumptxoutset behavior (Fabian Jahr) Pull request description: This adds a test that checks that network activity is not suspended if dumptxoutset fails in the middle of its process which is implemented with the `NetworkDisable` RAII class. I would have liked to add coverage for the `TemporaryRollback` RAII class but that seems a lot more tricky since the failure needs to happen at some point after the rollback and on the scale of our test chain here I couldn't find a way to do it yet. This was requested by pablomartin4btc here: bitcoin#30808 (review). To test the test you can comment out the content of the destructor of `NetworkDisable`. It also addresses the feedback by ryanofsky to use `std::optional` instead of `std::unique_ptr` for the management of the RAII object: bitcoin#30808 (comment) ACKs for top commit: achow101: ACK c2b779d pablomartin4btc: cr & tACK c2b779d tdb3: ACK c2b779d BrandonOdiwuor: Code Review ACK c2b779d theStack: ACK c2b779d Tree-SHA512: 9556e75014a2599bb870b70faf887608b332f2312626333f771d4ec11c04f863a2cf17e223ec473d4e8b0c9e8008394a4e0c321561f7ef3a2eec713dcfaea58a
- Loading branch information