diff options
| author | Satoshi Nakamoto <[email protected]> | 2010-07-26 17:40:05 +0000 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2010-07-26 17:40:05 +0000 |
| commit | 40cd0369419323f8d7385950e20342e998c994e1 (patch) | |
| tree | af4d40473a1073f108442aa8fe50a9b72462ece4 /db.h | |
| parent | Configuration file, HTTP Basic authentication (diff) | |
| download | archived-discoin-0.3.3.tar.xz archived-discoin-0.3.3.zip | |
Gavin Andresen's JSON-RPC HTTP authentication,v0.3.3
faster initial block download
-- version 0.3.3
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); |