diff options
| author | ロハン ダル <[email protected]> | 2017-02-21 11:31:13 -0800 |
|---|---|---|
| committer | ロハン ダル <[email protected]> | 2017-02-21 11:31:13 -0800 |
| commit | d60d54ddb394bce457c87fee5474421db65811ab (patch) | |
| tree | 955d66deef5fc5483032a5edbb6d5eb2ebec35fe /src/test | |
| parent | param variables made const (diff) | |
| parent | Merge #9485: ZMQ example using python3 and asyncio (diff) | |
| download | discoin-d60d54ddb394bce457c87fee5474421db65811ab.tar.xz discoin-d60d54ddb394bce457c87fee5474421db65811ab.zip | |
merge with bitcoin core
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/DoS_tests.cpp | 2 | ||||
| -rw-r--r-- | src/test/testutil.cpp | 18 |
2 files changed, 1 insertions, 19 deletions
diff --git a/src/test/DoS_tests.cpp b/src/test/DoS_tests.cpp index a8f09ba6a..c62e6ae83 100644 --- a/src/test/DoS_tests.cpp +++ b/src/test/DoS_tests.cpp @@ -23,7 +23,7 @@ #include <boost/foreach.hpp> #include <boost/test/unit_test.hpp> -// Tests this internal-to-main.cpp method: +// Tests these internal-to-net_processing.cpp methods: extern bool AddOrphanTx(const CTransactionRef& tx, NodeId peer); extern void EraseOrphansFor(NodeId peer); extern unsigned int LimitOrphanTxSize(unsigned int nMaxOrphans); diff --git a/src/test/testutil.cpp b/src/test/testutil.cpp index 304cffb79..e6d862297 100644 --- a/src/test/testutil.cpp +++ b/src/test/testutil.cpp @@ -11,23 +11,5 @@ #include <boost/filesystem.hpp> boost::filesystem::path GetTempPath() { -#if BOOST_FILESYSTEM_VERSION == 3 return boost::filesystem::temp_directory_path(); -#else - // TODO: remove when we don't support filesystem v2 anymore - boost::filesystem::path path; -#ifdef WIN32 - char pszPath[MAX_PATH] = ""; - - if (GetTempPathA(MAX_PATH, pszPath)) - path = boost::filesystem::path(pszPath); -#else - path = boost::filesystem::path("/tmp"); -#endif - if (path.empty() || !boost::filesystem::is_directory(path)) { - LogPrintf("GetTempPath(): failed to find temp path\n"); - return boost::filesystem::path(""); - } - return path; -#endif } |