diff --git a/src/wallet/db.h b/src/wallet/db.h --- a/src/wallet/db.h +++ b/src/wallet/db.h @@ -121,27 +121,34 @@ return std::make_unique(path); } - /** Return object for accessing dummy database with no read/write - * capabilities. */ + /** + * Return object for accessing dummy database with no read/write + * capabilities. + */ static std::unique_ptr CreateDummy() { return std::make_unique(); } - /** Return object for accessing temporary in-memory database. */ + /** + * Return object for accessing temporary in-memory database. + */ static std::unique_ptr CreateMock() { return std::make_unique("", true /* mock */); } - /** Rewrite the entire database on disk, with the exception of key pszSkip - * if non-zero + /** + * Rewrite the entire database on disk, with the exception of key pszSkip if + * non-zero */ bool Rewrite(const char *pszSkip = nullptr); - /** Back up the entire database to a file. + /** + * Back up the entire database to a file. */ bool Backup(const std::string &strDest); - /** Make sure all changes are flushed to disk. + /** + * Make sure all changes are flushed to disk. */ void Flush(bool shutdown); diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -128,9 +128,8 @@ } catch (std::ios_base::failure &) { /** * flag as external address if we can't read the internal - * boolean - * (this will be the case for any wallet before the HD chain - * split version) + * boolean (this will be the case for any wallet before the HD + * chain split version) */ fInternal = false; } @@ -172,7 +171,9 @@ static inline void WriteOrderPos(const int64_t &nOrderPos, mapValue_t &mapValue) { - if (nOrderPos == -1) return; + if (nOrderPos == -1) { + return; + } mapValue["n"] = i64tostr(nOrderPos); }