Author: Ron 2013-10-03 03:16:03
Published on: 2013-10-03T03:16:03+00:00
The author of the context brings up the issue of not being able to raise https://bitcointalk.org. They then delve into the code for CDB:Rewrite() in files db.h and db.cpp, noting that it is declared as 'bool static' in db.h but not in db.cpp. This leads to the question of whether this is a problem, feature or nothing at all. Additionally, the function CDB:Rewrite() is only called in wallet.cpp -->CWallet::EncryptWallet(), but its return value is ignored, prompting the author to ponder if this was intentional or a bug. It is further noted that CWallet::EncryptWallet() is called by AskPassphraseDialog::accept() and WalletModel::setWalletEncrypted(), both of which are interested in the return value of CWallet::EncryptWallet(). The author wonders if this could be related to an old issue with wallet encryption on bitcoin-qt 0.8.1.The author concludes by suggesting there may be more 'suspicious' code to investigate in their IDE during quiet moments, finding amusement in trying to infer the meaning and intent behind the use of 'return 0' and 'return 1'.
Updated on: 2023-06-07T17:20:18.688888+00:00