aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorAndrew Chow <github@achow101.com>2023-09-05 12:03:46 -0400
committerAndrew Chow <github@achow101.com>2023-09-12 12:14:31 -0400
commit8dd067088d41f021b357d7db5fa5f0a9f61edddc (patch)
tree6b2adb2b5c2e5cae92f032d910e7294d55d716a4 /src/util
parent238d29aff9b43234e340a9cf17742b2be5d1e97d (diff)
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.
Diffstat (limited to 'src/util')
-rw-r--r--src/util/message.cpp2
1 files changed, 1 insertions, 1 deletions
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<PKHash>(&destination))) {
return MessageVerificationResult::ERR_NOT_SIGNED;
}