aboutsummaryrefslogtreecommitdiff
path: root/src/key_io.cpp
diff options
context:
space:
mode:
authorAndrew Chow <github@achow101.com>2023-08-09 09:46:25 -0400
committerAndrew Chow <github@achow101.com>2023-09-12 12:14:31 -0400
commit07d3bdf4ebc06825ea24ab6f7c87aef6a22238c6 (patch)
tree11a23667794fcd9b4052230f9cfac00e9cb6b00d /src/key_io.cpp
parent1a98a51c666e9ae77364115775ec2e0ba984e8e0 (diff)
Add PubKeyDestination for P2PK scripts
P2PK scripts are not PKHash destinations, they should have their own type. This also results in no longer showing a p2pkh address for p2pk outputs. However for backwards compatibility, ListCoinst will still do this conversion.
Diffstat (limited to 'src/key_io.cpp')
-rw-r--r--src/key_io.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/key_io.cpp b/src/key_io.cpp
index 96dc01550c..1a43b5846f 100644
--- a/src/key_io.cpp
+++ b/src/key_io.cpp
@@ -77,6 +77,7 @@ public:
}
std::string operator()(const CNoDestination& no) const { return {}; }
+ std::string operator()(const PubKeyDestination& pk) const { return {}; }
};
CTxDestination DecodeDestination(const std::string& str, const CChainParams& params, std::string& error_str, std::vector<int>* error_locations)