Browse Source

Switched to cryptonight PoW.

cn
Jianping Wu 6 years ago
parent
commit
7f27245431
  1. 15
      src/Makefile.am
  2. 2
      src/Makefile.test.include
  3. 1413
      src/cryptonight/slow_hash.c
  4. 5
      src/primitives/block.cpp

15
src/Makefile.am

@ -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

2
src/Makefile.test.include

@ -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

1413
src/cryptonight/slow_hash.c

File diff suppressed because it is too large Load Diff

5
src/primitives/block.cpp

@ -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
{ {

Loading…
Cancel
Save