From bf51d37e5dc20687f2bb820c0c95c6b6a7907032 Mon Sep 17 00:00:00 2001 From: jahway603 Date: Sat, 3 Sep 2022 10:09:46 -0400 Subject: [PATCH 1/2] added copyright to genbuild.sh --- share/genbuild.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/genbuild.sh b/share/genbuild.sh index efe083f05..d4dc35ed4 100755 --- a/share/genbuild.sh +++ b/share/genbuild.sh @@ -1,4 +1,7 @@ #!/bin/sh +# Copyright (c) 2018-2022 The Hush developers +# Distributed under the GPLv3 software license, see the accompanying +# file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html if [ $# -gt 1 ]; then cd "$2" fi From 325dcec0ac790cae2dc2ed931f4ad73fab30483c Mon Sep 17 00:00:00 2001 From: jahway603 Date: Sat, 3 Sep 2022 10:22:00 -0400 Subject: [PATCH 2/2] remove unused function GetKeyID_NoCheck --- src/base58.cpp | 8 -------- src/base58.h | 2 -- 2 files changed, 10 deletions(-) diff --git a/src/base58.cpp b/src/base58.cpp index d46894ea0..831a4842e 100644 --- a/src/base58.cpp +++ b/src/base58.cpp @@ -323,14 +323,6 @@ bool CBitcoinAddress::GetKeyID(CKeyID& keyID) const return true; } -bool CBitcoinAddress::GetKeyID_NoCheck(CKeyID& keyID) const -{ - uint160 id; - memcpy(&id, &vchData[0], 20); - keyID = CKeyID(id); - return true; -} - bool CBitcoinAddress::IsScript() const { return IsValid() && vchVersion == Params().Base58Prefix(CChainParams::SCRIPT_ADDRESS); diff --git a/src/base58.h b/src/base58.h index 6fa3f457f..1032a4f00 100644 --- a/src/base58.h +++ b/src/base58.h @@ -146,7 +146,6 @@ public: CTxDestination Get() const; bool GetKeyID(CKeyID &keyID) const; - bool GetKeyID_NoCheck(CKeyID& keyID) const; bool GetIndexKey(uint160& hashBytes, int& type, bool ccflag) const; bool IsScript() const; }; @@ -171,7 +170,6 @@ public: CTxDestination Get() const; bool GetKeyID(CKeyID &keyID) const; - bool GetKeyID_NoCheck(CKeyID& keyID) const; bool GetIndexKey(uint160& hashBytes, int& type, bool ccflag) const; bool IsScript() const; };