diff --git a/src/wallet/walletdb.h b/src/wallet/walletdb.h index 275d9ce7820..c9b974bdcff 100644 --- a/src/wallet/walletdb.h +++ b/src/wallet/walletdb.h @@ -271,8 +271,14 @@ public: DBErrors LoadWallet(CWallet* pwallet); - //! Write the given client_version. - bool WriteVersion(int client_version) { return m_batch->Write(DBKeys::VERSION, CLIENT_VERSION); } + /** + * Write the given `client_version` to m_batch, indicating the last version + * of client software to load this wallet. + * + * @param[in] client_version `CLIENT_VERSION` outside of test code. + * @return A bool indicating whether or not the write succeeded. + */ + bool WriteVersion(int client_version) { return m_batch->Write(DBKeys::VERSION, client_version); } //! Delete records of the given types bool EraseRecords(const std::unordered_set& types);