Skip to content

Instantly share code, notes, and snippets.

@ik11235
Created December 10, 2017 04:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ik11235/c422c397fc2b51862dfa4d67ed734920 to your computer and use it in GitHub Desktop.
Save ik11235/c422c397fc2b51862dfa4d67ed734920 to your computer and use it in GitHub Desktop.
diff --git a/src/rpcrawtransaction.cpp b/src/rpcrawtransaction.cpp
index 1039518..b6f0726 100644
--- a/src/rpcrawtransaction.cpp
+++ b/src/rpcrawtransaction.cpp
@@ -296,7 +296,7 @@ Value listunspent(const Array& params, bool fHelp)
CTxDestination address;
if (ExtractDestination(pk, address))
{
- const CScriptID& hash = boost::get<const CScriptID&>(address);
+ const CScriptID& hash = boost::get<CScriptID>(address);
CScript redeemScript;
if (pwalletMain->GetCScript(hash, redeemScript))
entry.push_back(Pair("redeemScript", HexStr(redeemScript.begin(), redeemScript.end())));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment