Skip to content

Commit

Permalink
Merge bitcoin#1513: [Trivial] Remove CMasternode::SliceHash
Browse files Browse the repository at this point in the history
8af3ceb [Trivial] Remove CMasternode::SliceHash (random-zebra)

Pull request description:

  Removes un-used function  `SliceHash` (which is also buggy and overflowing,
  trying to copy 64 bytes to a destination buffer having only 8 bytes).

ACKs for top commit:
  Fuzzbawls:
    ACK 8af3ceb
  furszy:
    ACK 8af3ceb

Tree-SHA512: 70b194196bdc8ac216fc363ba347c77c75492ca2e432458bfa8f0aeeda09f90d401781771da5dec33c44a19a07921ea160787bfbb8b02d5c7193e0c50e64060f
  • Loading branch information
random-zebra committed Apr 12, 2020
2 parents 0c8950a + 8af3ceb commit ae4fde3
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 ae4fde3

Please sign in to comment.