From efaa69e6a6f91cc367d904633ca07ce0ebd79bf1 Mon Sep 17 00:00:00 2001 From: Adrian Gallagher Date: Fri, 18 May 2018 22:45:23 +1000 Subject: [PATCH] Litecoin: Basic changes for v0.16 release (#482) * Litecon: Modify thread names Since this string is displayed externally within lists of processes and should be consistent with branding, and not cause confusion for admins, when running "top", "ps aux", "pgrep" or similar commands. * Litecoin: Remove invalid doxygen link * Litecoin: Add additional optional build steps for osx builds Fixes: https://github.com/litecoin-project/litecoin/issues/463 * Litecoin: Show scrypt sse2 status in configure and fix scrypt syntax issue --- configure.ac | 1 + doc/README.md | 1 - doc/build-osx.md | 10 ++++++++++ src/crypto/scrypt.cpp | 2 +- src/httpserver.cpp | 4 ++-- 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 43368de22..ca5cebf07 100644 --- a/configure.ac +++ b/configure.ac @@ -1486,6 +1486,7 @@ echo " with bench = $use_bench" echo " with upnp = $use_upnp" echo " use asm = $use_asm" echo " sanitizers = $use_sanitizers" +echo " scrypt sse2 = $use_sse2" echo " debug enabled = $enable_debug" echo " gprof enabled = $enable_gprof" echo " werror = $enable_werror" diff --git a/doc/README.md b/doc/README.md index 68018475d..063b80f6a 100644 --- a/doc/README.md +++ b/doc/README.md @@ -52,7 +52,6 @@ The Litecoin repo's [root README](/README.md) contains relevant information on t - [Developer Notes](developer-notes.md) - [Release Notes](release-notes.md) - [Release Process](release-process.md) -- [Source Code Documentation (External Link)](https://dev.visucore.com/litecoin/doxygen/) - [Translation Process](translation_process.md) - [Translation Strings Policy](translation_strings_policy.md) - [Travis CI](travis-ci.md) diff --git a/doc/build-osx.md b/doc/build-osx.md index 7def11c33..3df60988d 100644 --- a/doc/build-osx.md +++ b/doc/build-osx.md @@ -64,6 +64,16 @@ Build Litecoin Core make deploy +5. Installation into user directories (optional): + + make install + + or + + cd ~/litecoin/src + cp litecoind /usr/local/bin/ + cp litecoin-cli /usr/local/bin/ + Running ------- diff --git a/src/crypto/scrypt.cpp b/src/crypto/scrypt.cpp index b49dc7e92..b96ee038b 100644 --- a/src/crypto/scrypt.cpp +++ b/src/crypto/scrypt.cpp @@ -313,7 +313,7 @@ std::string scrypt_detect_sse2() if (cpuid_edx & 1<<26) { scrypt_1024_1_1_256_sp_detected = &scrypt_1024_1_1_256_sp_sse2; - ret = "scrypt: using scrypt-sse2 as detected"); + ret = "scrypt: using scrypt-sse2 as detected"; } else { diff --git a/src/httpserver.cpp b/src/httpserver.cpp index 2a76d0d46..be8aae3c2 100644 --- a/src/httpserver.cpp +++ b/src/httpserver.cpp @@ -285,7 +285,7 @@ static void http_reject_request_cb(struct evhttp_request* req, void*) /** Event dispatcher thread */ static bool ThreadHTTP(struct event_base* base) { - RenameThread("bitcoin-http"); + RenameThread("litecoin-http"); LogPrint(BCLog::HTTP, "Entering http event loop\n"); event_base_dispatch(base); // Event loop will be interrupted by InterruptHTTPServer() @@ -334,7 +334,7 @@ static bool HTTPBindAddresses(struct evhttp* http) /** Simple wrapper to set thread name and run work queue */ static void HTTPWorkQueueRun(WorkQueue* queue) { - RenameThread("bitcoin-httpworker"); + RenameThread("litecoin-httpworker"); queue->Run(); }