Switched to cryptonight PoW.

This commit is contained in:
Jianping Wu 2018-09-28 13:03:40 -07:00
parent fac4394247
commit 7f27245431
4 changed files with 20 additions and 1415 deletions

View File

@ -279,6 +279,21 @@ crypto_libbitcoin_crypto_a_SOURCES = \
crypto/sha512.cpp \ crypto/sha512.cpp \
crypto/sha512.h crypto/sha512.h
crypto_libbitcoin_crypto_a_SOURCES += \
cryptonight/slow-hash.c \
cryptonight/oaes_lib.c \
cryptonight/hash.c \
cryptonight/aesb.c \
cryptonight/keccak.c \
cryptonight/blake256.c \
cryptonight/groestl.c \
cryptonight/hash-extra-blake.c \
cryptonight/hash-extra-groestl.c \
cryptonight/hash-extra-skein.c \
cryptonight/hash-extra-jh.c \
cryptonight/skein.c \
cryptonight/jh.c
if USE_ASM if USE_ASM
crypto_libbitcoin_crypto_a_SOURCES += crypto/sha256_sse4.cpp crypto_libbitcoin_crypto_a_SOURCES += crypto/sha256_sse4.cpp
endif endif

View File

@ -107,7 +107,7 @@ test_test_litecoin_LDADD += $(LIBBITCOIN_SERVER) $(LIBBITCOIN_CLI) $(LIBBITCOIN_
$(LIBLEVELDB) $(LIBLEVELDB_SSE42) $(LIBMEMENV) $(BOOST_LIBS) $(BOOST_UNIT_TEST_FRAMEWORK_LIB) $(LIBSECP256K1) $(EVENT_LIBS) $(EVENT_PTHREADS_LIBS) $(LIBLEVELDB) $(LIBLEVELDB_SSE42) $(LIBMEMENV) $(BOOST_LIBS) $(BOOST_UNIT_TEST_FRAMEWORK_LIB) $(LIBSECP256K1) $(EVENT_LIBS) $(EVENT_PTHREADS_LIBS)
test_test_litecoin_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS) test_test_litecoin_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
test_test_litecoin_LDADD += $(LIBBITCOIN_CONSENSUS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) test_test_litecoin_LDADD += $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS)
test_test_litecoin_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static test_test_litecoin_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static
if ENABLE_ZMQ if ENABLE_ZMQ

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,10 @@
#include <utilstrencodings.h> #include <utilstrencodings.h>
#include <crypto/common.h> #include <crypto/common.h>
//#include <crypto/scrypt.h> //#include <crypto/scrypt.h>
#include <cryptonight/hash-ops.h> extern "C"
{
#include <cryptonight/hash-ops.h>
}
uint256 CBlockHeader::GetHash() const uint256 CBlockHeader::GetHash() const
{ {