Skip to content

Commit

Permalink
fix compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
gruve-p committed Nov 16, 2023
1 parent ebd1829 commit 0e04594
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/groestlcoin.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,9 @@ class CGroestlHashWriter
{
private:
GroestlHasher ctx;

const int nVersion;
public:

CGroestlHashWriter(int nVersionIn) : nVersion(nVersionIn) {}
CGroestlHashWriter(int nVersionIn) : nVersion{nVersionIn} {}

int GetVersion() const { return nVersion; }

Expand All @@ -105,7 +103,6 @@ class CGroestlHashWriter

template<typename T>
CGroestlHashWriter& operator<<(const T& obj) {
// Serialize to this stream
::Serialize(*this, obj);
return (*this);
}
Expand Down
2 changes: 1 addition & 1 deletion src/primitives/block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

uint256 CBlockHeader::GetHash() const
{
return (XCoin::GroestlHashWriter{} << *this).GetHash(); // GRS
return (XCoin::GroestlHasher{} << *this).GetHash(); // GRS
}

std::string CBlock::ToString() const
Expand Down

0 comments on commit 0e04594

Please sign in to comment.