diff options
| author | Ben Woosley <[email protected]> | 2020-01-15 14:02:31 -0800 |
|---|---|---|
| committer | Ben Woosley <[email protected]> | 2020-06-19 12:14:08 -0700 |
| commit | fa9ef2cdbed32438bdb32623af6e06f13ecd35e4 (patch) | |
| tree | e6a8b106579545eb0d32d6910a2833c9c4b6529f /src/wallet/rpcdump.cpp | |
| parent | Explicitly support conversion between equivalent hash types (diff) | |
| download | discoin-fa9ef2cdbed32438bdb32623af6e06f13ecd35e4.tar.xz discoin-fa9ef2cdbed32438bdb32623af6e06f13ecd35e4.zip | |
Remove an apparently unnecessary conversion
CScript -> CScriptID -> ScriptHash is unnecessary because
ScriptHash and CScriptID do the same thing.
Diffstat (limited to 'src/wallet/rpcdump.cpp')
| -rw-r--r-- | src/wallet/rpcdump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp index d9fe741a6..541675bce 100644 --- a/src/wallet/rpcdump.cpp +++ b/src/wallet/rpcdump.cpp @@ -297,7 +297,7 @@ UniValue importaddress(const JSONRPCRequest& request) pwallet->ImportScripts(scripts, 0 /* timestamp */); if (fP2SH) { - scripts.insert(GetScriptForDestination(ScriptHash(CScriptID(redeem_script)))); + scripts.insert(GetScriptForDestination(ScriptHash(redeem_script))); } pwallet->ImportScriptPubKeys(strLabel, scripts, false /* have_solving_data */, true /* apply_label */, 1 /* timestamp */); |