diff options
Diffstat (limited to 'db.h')
-rw-r--r-- | db.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -16,7 +16,7 @@ extern map<string, string> mapAddressBook; extern CCriticalSection cs_mapAddressBook; extern vector<unsigned char> vchDefaultKey; extern bool fClient; - +extern int nBestHeight; extern unsigned int nWalletDBUpdated; @@ -210,7 +210,7 @@ public: if (!pdb) return false; DbTxn* ptxn = NULL; - int ret = dbenv.txn_begin(GetTxn(), &ptxn, 0); + int ret = dbenv.txn_begin(GetTxn(), &ptxn, DB_TXN_NOSYNC); if (!ptxn || ret != 0) return false; vTxn.push_back(ptxn); |