From 8af3ceb9a77b018d9471daf65ce81c50ead81755 Mon Sep 17 00:00:00 2001 From: random-zebra Date: Fri, 10 Apr 2020 16:10:22 +0200 Subject: [PATCH] [Trivial] Remove CMasternode::SliceHash Removes un-used function SliceHash (which is also buggy and overflowing, trying to copy 64 bytes to a destination buffer having only 8 bytes). --- src/masternode.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/masternode.h b/src/masternode.h index adb2e4922c45..71670d600841 100644 --- a/src/masternode.h +++ b/src/masternode.h @@ -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)