Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #2504: [Refactor] Clang-tidy and fix compiler error in HasReaso…
…n class 03525ea [Refactor] Clang-tidy and fix compiler error in HasReason class (Fuzzbawls) Pull request description: Came across this compiler error when updating the [code coverage report](https://www.fuzzbawls.pw/pivx/regression-test-coverage/index.html). The server runs on CentOS 7 currently, which uses a fairly old (but still supported) version of gcc. Indeed, upstream also ran into this error (Ref: bitcoin#20033) Some older (but still supported) versions of gcc will throw an error when trying to convert from `std::ios_base::failure` to `std::runtime_error`. Use `std::exception` base type instead. Also apply clang-format to the class and remove the `cout`. ACKs for top commit: random-zebra: utACK 03525ea furszy: utACK 03525ea and merging.. Tree-SHA512: 46a92f96d30c5f0f29babc30841b0b8b694fabe9ee0e8a5ed79ebc1e405c8718515b718ef12384973b0b003adb907378b27c1fca7f00581e7c3a742d59e9f9ba
- Loading branch information