In BitcoinGUI::message() slot the bool* ret = nullptr parameter is never used.
This PR removes it and simplifies connections syntax by replacing lambdas with the &BitcoinGUI::message slot.
In BitcoinGUI::message() slot the bool* ret = nullptr parameter is never used.
This PR removes it and simplifies connections syntax by replacing lambdas with the &BitcoinGUI::message slot.
Concept ACK, when was the last usage dropped?
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
The use was introduced in f7f3a96b74bb795d6e184a628adce21c744d234f and I believe removed in 35ecf854c084c248ad640c6af030a9d1ed726c47 but haven't built the old code to confirm.
Code review ACK 1a53b0da60097cd7fd423c519f01ceca0fd0aa14.
Tested ACK 1a53b0da60097cd7fd423c519f01ceca0fd0aa14
You can see messages in action by e.g. feeding a malformed BIP20 URI: src/qt/bitcoin-qt -regtest bitcoin://bcrt1q
Sorry, It seems I broke ThreadSafeMessageBox() ((
bool* ret actually is used here:
https://github.com/bitcoin/bitcoin/blob/a654626f076a72416a3d354218d7107571d6caaf/src/qt/bitcoingui.cpp#L1368
How it could be reverted?
Ref: #16348
Please don't revert, I think the code you referenced is broken.
@fanquake (from IRC):
It's unclear from your comments what is supposedly broken or not.
$ ./src/qt/bitcoin-qt
: You need to rebuild the database using -reindex to go back to unpruned mode. This will redownload the entire blockchain.
Please restart with -reindex or -reindex-chainstate to recover.
bitcoin-qt: qt/bitcoingui.cpp:1369: bool ThreadSafeMessageBox(BitcoinGUI*, const string&, const string&, unsigned int): Assertion `invoked' failed.
Aborted (core dumped)