Skip to content

Commit

Permalink
Merge pull request #51 from aivve/pow/sign
Browse files Browse the repository at this point in the history
Add Alt. Signed POW support
  • Loading branch information
aivve authored Dec 14, 2021
2 parents 4f62eac + 98dde2d commit b952901
Show file tree
Hide file tree
Showing 53 changed files with 40,913 additions and 835 deletions.
16 changes: 12 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,14 @@ include_directories(${CMAKE_BINARY_DIR}
src
cryptonote/external
cryptonote/include
cryptonote/src)
cryptonote/src
external/libqrencode
external/qcustomplot)

find_package(Qt5Gui REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Network REQUIRED)
find_package(Qt5PrintSupport REQUIRED)
find_package(Qt5LinguistTools REQUIRED)

# We have to look for Homebrew OpenSSL a bit differently
Expand Down Expand Up @@ -186,6 +189,7 @@ set(CRYPTONOTE_SOURCES
cryptonote/src/crypto/slow-hash.c
cryptonote/src/crypto/slow-hash.cpp
cryptonote/src/crypto/tree-hash.c
cryptonote/src/crypto/yespower.c
cryptonote/src/CryptoNoteCore/BlockchainIndices.cpp
cryptonote/src/CryptoNoteCore/BlockchainMessages.cpp
cryptonote/src/CryptoNoteCore/BlockIndex.cpp
Expand All @@ -208,6 +212,7 @@ set(CRYPTONOTE_SOURCES
cryptonote/src/CryptoNoteCore/TransactionPool.cpp
cryptonote/src/CryptoNoteCore/TransactionPrefixImpl.cpp
cryptonote/src/CryptoNoteCore/TransactionUtils.cpp
cryptonote/src/CryptoNoteProtocol/CryptoNoteProtocolHandler.cpp
cryptonote/src/InProcessNode/InProcessNode.cpp
cryptonote/src/InProcessNode/InProcessNodeErrors.cpp
cryptonote/src/NodeRpcProxy/NodeErrors.cpp
Expand Down Expand Up @@ -258,7 +263,6 @@ set(CRYPTONOTE_SOURCES
cryptonote/src/P2p/LevinProtocol.cpp
cryptonote/src/P2p/NetNodeConfig.cpp
cryptonote/src/P2p/PeerListManager.cpp
cryptonote/src/CryptoNoteProtocol/CryptoNoteProtocolHandler.cpp
cryptonote/src/Logging/ILogger.cpp
cryptonote/src/Logging/LoggerGroup.cpp
cryptonote/src/Logging/CommonLogger.cpp
Expand All @@ -277,6 +281,7 @@ file(GLOB_RECURSE SOURCES src/*.cpp)
file(GLOB_RECURSE HEADERS src/*.h)
file(GLOB_RECURSE FORMS src/gui/ui/*.ui)
file(GLOB_RECURSE Mnemonics cryptonote/src/Mnemonics/*)
file(GLOB_RECURSE QCustomPlot external/qcustomplot/*)
file(GLOB TRANSLATION_FILES src/languages/*.ts)

set(QRC
Expand Down Expand Up @@ -479,6 +484,7 @@ set(CRYPTONOTE_SOURCES ${CRYPTONOTE_SOURCES} ${PLATFORM_SOURCES})

add_library(${CRYPTONOTE_LIB} STATIC ${CRYPTONOTE_SOURCES})
add_library(Mnemonics ${Mnemonics})
add_library(QCustomPlot ${QCustomPlot})
set_target_properties(${CRYPTONOTE_LIB} PROPERTIES COMPILE_DEFINITIONS _GNU_SOURCE)

if (APPLE OR ${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
Expand All @@ -488,10 +494,12 @@ target_link_libraries(${CRYPTONOTE_LIB} ${Boost_LIBRARIES})
endif ()
set_target_properties(Mnemonics PROPERTIES COMPILE_DEFINITIONS _GNU_SOURCE)
target_link_libraries(Mnemonics ${Boost_LIBRARIES})
set_target_properties(QCustomPlot PROPERTIES COMPILE_DEFINITIONS _GNU_SOURCE)
target_link_libraries(QCustomPlot Qt5::Core Qt5::PrintSupport)

add_executable(${PROJECT_NAME} ${BUILD_PLATFORM} ${BUILD_RESOURCES} ${SOURCES} ${HEADERS} ${UIS} ${RCC})
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_DEFINITIONS _GNU_SOURCE)
target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES} ${QTMAIN} ${CRYPTONOTE_LIB} ${QRENCODE_LIB} Mnemonics)
target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES} ${QTMAIN} ${CRYPTONOTE_LIB} ${QRENCODE_LIB} Mnemonics QCustomPlot)
add_dependencies(${PROJECT_NAME} translations)
if (WIN32)
add_dependencies(${PROJECT_NAME} translations_delault)
Expand All @@ -516,7 +524,7 @@ elseif (WIN32)
target_link_libraries(${PROJECT_NAME} Imm32 Iphlpapi Winmm)
endif (APPLE)

qt5_use_modules(${PROJECT_NAME} Widgets Gui Network)
qt5_use_modules(${PROJECT_NAME} Core Widgets Gui Network PrintSupport)

# Installation

Expand Down
2 changes: 1 addition & 1 deletion cryptonote
Submodule cryptonote updated 70 files
+4 −0 .gitignore
+2 −2 README.md
+3 −1 external/miniupnpc/CMakeLists.txt
+1 −0 include/BlockchainExplorerData.h
+6 −5 include/CryptoNote.h
+6 −1 src/BlockchainExplorer/BlockchainExplorerDataBuilder.cpp
+2 −12 src/CMakeLists.txt
+3 −2 src/Checkpoints/Checkpoints.cpp
+1 −1 src/CryptoNoteConfig.h
+101 −4 src/CryptoNoteCore/Blockchain.cpp
+3 −1 src/CryptoNoteCore/Blockchain.h
+9 −3 src/CryptoNoteCore/Core.cpp
+2 −1 src/CryptoNoteCore/Core.h
+22 −1 src/CryptoNoteCore/CryptoNoteFormatUtils.cpp
+1 −0 src/CryptoNoteCore/CryptoNoteFormatUtils.h
+4 −0 src/CryptoNoteCore/CryptoNoteSerialization.cpp
+16 −8 src/CryptoNoteCore/Currency.cpp
+1 −1 src/CryptoNoteCore/Currency.h
+3 −0 src/CryptoNoteCore/ICore.h
+2 −1 src/CryptoNoteCore/IMinerHandler.h
+133 −19 src/CryptoNoteCore/Miner.cpp
+6 −3 src/CryptoNoteCore/Miner.h
+12 −6 src/CryptoNoteCore/MinerConfig.cpp
+2 −1 src/CryptoNoteCore/MinerConfig.h
+5 −9 src/CryptoNoteProtocol/CryptoNoteProtocolHandler.cpp
+23 −9 src/Daemon/DaemonCommandsHandler.cpp
+0 −109 src/Miner/BlockchainMonitor.cpp
+0 −46 src/Miner/BlockchainMonitor.h
+0 −159 src/Miner/Miner.cpp
+0 −67 src/Miner/Miner.h
+0 −280 src/Miner/MinerManager.cpp
+0 −76 src/Miner/MinerManager.h
+0 −138 src/Miner/MiningConfig.cpp
+0 −43 src/Miner/MiningConfig.h
+0 −52 src/Miner/main.cpp
+2 −1 src/P2p/NetNode.cpp
+3 −3 src/PaymentGate/WalletService.cpp
+472 −0 src/Platform/Android/System/Dispatcher.cpp
+119 −0 src/Platform/Android/System/Dispatcher.h
+33 −0 src/Platform/Android/System/ErrorMessage.cpp
+12 −15 src/Platform/Android/System/ErrorMessage.h
+35 −0 src/Platform/Android/System/Future.h
+88 −0 src/Platform/Android/System/Ipv4Resolver.cpp
+43 −0 src/Platform/Android/System/Ipv4Resolver.h
+282 −0 src/Platform/Android/System/TcpConnection.cpp
+53 −0 src/Platform/Android/System/TcpConnection.h
+183 −0 src/Platform/Android/System/TcpConnector.cpp
+46 −0 src/Platform/Android/System/TcpConnector.h
+198 −0 src/Platform/Android/System/TcpListener.cpp
+47 −0 src/Platform/Android/System/TcpListener.h
+143 −0 src/Platform/Android/System/Timer.cpp
+44 −0 src/Platform/Android/System/Timer.h
+1 −1 src/Platform/Linux/System/Timer.cpp
+1 −0 src/Platform/Windows/System/TcpListener.h
+8 −4 src/Rpc/CoreRpcServerCommandsDefinitions.h
+31 −9 src/Rpc/RpcServer.cpp
+1 −0 src/Serialization/BlockchainExplorerDataSerialization.cpp
+61 −5 src/SimpleWallet/SimpleWallet.cpp
+2 −0 src/SimpleWallet/SimpleWallet.h
+8 −0 src/Wallet/WalletRpcServer.cpp
+2 −0 src/Wallet/WalletRpcServerCommandsDefinitions.h
+1 −0 src/Wallet/WalletRpcServerErrorCodes.h
+55 −0 src/crypto/blake256.c
+5 −0 src/crypto/blake256.h
+18 −2 src/crypto/hash.h
+1 −0 src/crypto/insecure_memzero.h
+18 −37 src/crypto/slow-hash.c
+94 −0 src/crypto/sysendian.h
+1,249 −0 src/crypto/yespower.c
+126 −0 src/crypto/yespower.h
674 changes: 674 additions & 0 deletions external/qcustomplot/GPL.txt

Large diffs are not rendered by default.

577 changes: 577 additions & 0 deletions external/qcustomplot/changelog.txt

Large diffs are not rendered by default.

Loading

0 comments on commit b952901

Please sign in to comment.