aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-05-17 08:46:33 -0700
committerJeff Garzik <jgarzik@exmulti.com>2012-05-17 08:46:33 -0700
commitb56843b25356784d6806b2cdd6506bfb2e066445 (patch)
treef2e3f8b379328089349fb105d08b64b7cc8e1b18 /src/main.h
parent49232d1abf96f85f785e0ee95fbb79d0338855bc (diff)
parent928d3a011cc66c7f907c4d053f674ea77dc611cc (diff)
downloadbitcoin-b56843b25356784d6806b2cdd6506bfb2e066445.tar.xz
Merge pull request #1198 from jgarzik/addrman
Replace BDB-managed addr.dat with bitcoin-managed peers.dat
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main.h b/src/main.h
index 5ac5547a3e..331b16b509 100644
--- a/src/main.h
+++ b/src/main.h
@@ -956,13 +956,7 @@ public:
// Flush stdio buffers and commit to disk before returning
fflush(fileout);
if (!IsInitialBlockDownload() || (nBestHeight+1) % 500 == 0)
- {
-#ifdef WIN32
- _commit(_fileno(fileout));
-#else
- fsync(fileno(fileout));
-#endif
- }
+ FileCommit(fileout);
return true;
}