Skip to content

Commit

Permalink
[Trivial] Remove CMasternode::SliceHash
Browse files Browse the repository at this point in the history
Removes un-used function SliceHash (which is also buggy and overflowing,
trying to copy 64 bytes to a destination buffer having only 8 bytes).
  • Loading branch information
random-zebra committed Apr 10, 2020
1 parent 172387a commit 8af3ceb
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/masternode.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,6 @@ class CMasternode : public CSignedMessage

bool UpdateFromNewBroadcast(CMasternodeBroadcast& mnb);

inline uint64_t SliceHash(uint256& hash, int slice)
{
uint64_t n = 0;
memcpy(&n, &hash + slice * 64, 64);
return n;
}

void Check(bool forceCheck = false);

bool IsBroadcastedWithin(int seconds)
Expand Down

0 comments on commit 8af3ceb

Please sign in to comment.