aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2020-01-14 22:37:16 -0800
committerBen Woosley <ben.woosley@gmail.com>2020-06-19 12:14:06 -0700
commit0a5ea32ce605984094c5552877cb99bc81654f2c (patch)
treecb53980bce46fe9253638771e786be287122ceb4 /src/rpc
parentf3d776b59380ad31e8b3a2948364c7690eebe05d (diff)
Prefer explicit uint160 conversion
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/rawtransaction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp
index e14217c307..814f8bddfe 100644
--- a/src/rpc/rawtransaction.cpp
+++ b/src/rpc/rawtransaction.cpp
@@ -595,7 +595,7 @@ static UniValue decodescript(const JSONRPCRequest& request)
if (which_type == TX_PUBKEY) {
segwitScr = GetScriptForDestination(WitnessV0KeyHash(Hash160(solutions_data[0].begin(), solutions_data[0].end())));
} else if (which_type == TX_PUBKEYHASH) {
- segwitScr = GetScriptForDestination(WitnessV0KeyHash(solutions_data[0]));
+ segwitScr = GetScriptForDestination(WitnessV0KeyHash(uint160{solutions_data[0]}));
} else {
// Scripts that are not fit for P2WPKH are encoded as P2WSH.
// Newer segwit program versions should be considered when then become available.