This PR is an alternative to https://github.com/bitcoin/bitcoin/pull/18897, and is based on Russ’ idea:
IMO it would be nice to have a followup PR that eliminated the one-line forwarding methods …
Related issues
Qt docs: https://doc.qt.io/qt-5.12/exceptionsafety.html#exceptions-in-client-code
With this PR the GUI handles the wallet-related exception, and:
- display it to a user:
- prints a message to
stderr
:
0
1
2************************
3EXCEPTION: 18NonFatalCheckError
4wallet/wallet.cpp:2677 (IsCurrentForAntiFeeSniping)
5Internal bug detected: '!chain.findBlock(block_hash, FoundBlock().time(block_time))'
6You may report this issue here: https://github.com/bitcoin/bitcoin/issues
7
8bitcoin in QPushButton->SendCoinsDialog
- writes a message to the
debug.log
- and, if the exception is a non-fatal error, leaves the main window running.