From 8dd067088d41f021b357d7db5fa5f0a9f61edddc Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Tue, 5 Sep 2023 12:03:46 -0400 Subject: Make WitnessUnknown members private Make sure that nothing else can change WitnessUnknown's data members by making them private. Also change the program to use a vector rather than C-style array. --- src/util/message.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') diff --git a/src/util/message.cpp b/src/util/message.cpp index ec845aeffb..1afb28cc10 100644 --- a/src/util/message.cpp +++ b/src/util/message.cpp @@ -47,7 +47,7 @@ MessageVerificationResult MessageVerify( return MessageVerificationResult::ERR_PUBKEY_NOT_RECOVERED; } - if (!(CTxDestination(PKHash(pubkey)) == destination)) { + if (!(PKHash(pubkey) == *std::get_if(&destination))) { return MessageVerificationResult::ERR_NOT_SIGNED; } -- cgit v1.2.3