diff --git a/src/db.cpp b/src/db.cpp index 93c4573fa0..f1caeff3f5 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -41,7 +41,7 @@ void CDBEnv::EnvShutdown() if (ret != 0) printf("EnvShutdown exception: %s (%d)\n", DbEnv::strerror(ret), ret); if (!fMockDb) - DbEnv(0).remove(strPath.c_str(), 0); + DbEnv((u_int32_t)0).remove(strPath.c_str(), 0); } CDBEnv::CDBEnv() : dbenv(DB_CXX_NO_EXCEPTIONS) diff --git a/src/init.cpp b/src/init.cpp index c1c8e4964e..7856a6ef32 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -515,6 +515,7 @@ bool AppInit2() uiInterface.InitMessage(_("Verifying database integrity...")); + LOCK(bitdb.cs_db); if (!bitdb.Open(GetDataDir())) { string msg = strprintf(_("Error initializing database environment %s!" @@ -917,7 +918,7 @@ std::string LicenseInfo(bool f1, bool f2) strprintf(_("Please contribute if you find %s useful. Visit %s for further information about the software. "), PACKAGE_NAME,URL_WEBSITE.c_str()) + "\n\n" + strprintf(_("Source code: %s"), URL_SOURCE_CODE.c_str()) + "\n" + - strprintf(_("Dowloand wallet: %s"), "") + "\n" + + strprintf(_("Download wallet: %s"), "") + "\n" + strprintf(_("Block-Chain: %s"), "") + "\n" + strprintf(_("Roadmap: %s"), "") + "\n" + "\n" + diff --git a/src/makefile.osx b/src/makefile.osx index 3776d01288..0b7eb2ec0a 100644 --- a/src/makefile.osx +++ b/src/makefile.osx @@ -5,8 +5,13 @@ # file COPYING or http://www.opensource.org/licenses/mit-license.php. CXX=llvm-g++ + +# macports #DEPSDIR=/opt/local +#homebrew +DEPSDIR=/usr/local/Cellar + # :=0 --> UPnP support turned off by default at runtime # :=1 --> UPnP support turned on by default at runtime # :=- --> No UPnP support - miniupnp not required @@ -20,33 +25,43 @@ INCLUDEPATHS= \ -I"$(CURDIR)" \ -I"$(CURDIR)"/obj \ -I"$(DEPSDIR)/include" \ - -I"$(DEPSDIR)/include/db48" + -I"$(DEPSDIR)/berkeley-db@4/4.8.30/include" \ + -I"$(DEPSDIR)/openssl/1.0.2o_2/include" LIBPATHS= \ - -L"$(DEPSDIR)/lib" \ - -L"$(DEPSDIR)/lib/db48" + -L"$(DEPSDIR)" \ + -L"$(DEPSDIR)/berkeley-db@4/4.8.30/lib" \ + -L"$(DEPSDIR)/leveldb/1.20_2/lib" LIBS = -dead_strip TESTDEFS = -DTEST_DATA_DIR=$(abspath test/data) -BOOST_LIB_SUFFIX=-mt-s -ifdef STATIC +# was mt-s (doesn't exist in macport install today) +BOOST_LIB_SUFFIX=-mt + +#ifdef STATIC # Build STATIC if you are redistributing the binary #DEPSDIR=/opt/crypt -TESTLIBS += \ - $(DEPSDIR)/lib/libboost_unit_test_framework-mt.a -LIBS += \ - $(DEPSDIR)/lib/libdb_cxx-4.8.a \ - $(DEPSDIR)/lib/libboost_system$(BOOST_LIB_SUFFIX).a \ - $(DEPSDIR)/lib/libboost_filesystem$(BOOST_LIB_SUFFIX).a \ - $(DEPSDIR)/lib/libboost_program_options$(BOOST_LIB_SUFFIX).a \ - $(DEPSDIR)/lib/libboost_thread$(BOOST_LIB_SUFFIX).a \ - $(DEPSDIR)/lib/libssl.a \ - $(DEPSDIR)/lib/libgmp.a \ - $(DEPSDIR)/lib/libcrypto.a \ - -lz -else + +# NOTE: File library (.a) does not exist +#TESTLIBS += \ +# $(DEPSDIR)/lib/libboost_unit_test_framework-mt.a + +#LIBS += \ +# $(DEPSDIR)/lib/libdb_cxx-4.8.a \ +# $(DEPSDIR)/lib/libboost_system$(BOOST_LIB_SUFFIX).a \ +# $(DEPSDIR)/lib/libboost_filesystem$(BOOST_LIB_SUFFIX).a \ +# $(DEPSDIR)/lib/libboost_program_options$(BOOST_LIB_SUFFIX).a \ +# $(DEPSDIR)/lib/libboost_thread$(BOOST_LIB_SUFFIX).a \ +# $(DEPSDIR)/lib/libssl.a \ +# $(DEPSDIR)/lib/libgmp.a \ +# $(DEPSDIR)/lib/libcrypto.a \ +# -lz \ +# -lssl \ +# -lcrypto \ +# -lgmp +#else TESTLIBS += \ -lboost_unit_test_framework$(BOOST_LIB_SUFFIX) LIBS += \ @@ -60,7 +75,7 @@ LIBS += \ -lcrypto \ -lz TESTDEFS += -DBOOST_TEST_DYN_LINK -endif +#endif DEFS=-DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE diff --git a/src/serialize.h b/src/serialize.h index 3b3dcd4fcb..74ee9059a2 100644 --- a/src/serialize.h +++ b/src/serialize.h @@ -811,6 +811,7 @@ class CDataStream iterator insert(iterator it, const char& x=char()) { return vch.insert(it, x); } void insert(iterator it, size_type n, const char& x) { vch.insert(it, n, x); } +/* void insert(iterator it, const_iterator first, const_iterator last) { assert(last - first >= 0); @@ -823,6 +824,7 @@ class CDataStream else vch.insert(it, first, last); } +*/ void insert(iterator it, std::vector::const_iterator first, std::vector::const_iterator last) {