Skip to content

Commit

Permalink
Fix MeowPow Algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolin1579 committed Mar 21, 2024
1 parent 3c1d053 commit bf758f9
Show file tree
Hide file tree
Showing 8 changed files with 601 additions and 488 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Miningcore.Crypto.Hashing.Progpow.Meowpow;

[Identifier("meowpow")]
public class KawpowLight : IProgpowLight
public class MeowpowLight : IProgpowLight
{
public void Setup(int totalCache, ulong hardForkBlock = 0)
{
Expand Down
3 changes: 2 additions & 1 deletion src/Native/libmeowpow/ethash/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
include(GNUInstallDirs)

add_library(
ethash
ethash SHARED
bit_manipulation.h
builtins.h
endianness.hpp
Expand All @@ -21,6 +21,7 @@ add_library(
${include_dir}/ethash/progpow.hpp
progpow.cpp
)
set_property(TARGET ethash PROPERTY POSITION_INDEPENDENT_CODE ON)

target_link_libraries(ethash PRIVATE keccak)
target_include_directories(ethash PUBLIC $<BUILD_INTERFACE:${include_dir}>$<INSTALL_INTERFACE:include>)
Expand Down
4 changes: 1 addition & 3 deletions src/Native/libmeowpow/ethash/endianness.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

#pragma once

#include "ethash.hpp"

#if _WIN32

#include <stdlib.h>
Expand Down Expand Up @@ -96,4 +94,4 @@ struct be
};

#endif
} // namespace ethash
} // namespace ethash
Loading

0 comments on commit bf758f9

Please sign in to comment.