diff options
author | Jeff Garzik <jgarzik@bitpay.com> | 2013-05-30 07:55:25 -0700 |
---|---|---|
committer | Jeff Garzik <jgarzik@bitpay.com> | 2013-05-30 07:55:25 -0700 |
commit | e2f42142a03fa817a7fe6529fc1d55ef2d016352 (patch) | |
tree | a298361e95260b418a2bf82665390441e954954e /src/rpcrawtransaction.cpp | |
parent | 1803fa1db995e61258f1542e1766aec5b104d87d (diff) | |
parent | 896185d7ed3fa23415424c608f0897d6139640f4 (diff) |
Merge pull request #2600 from sipa/keyrefactor
Refactor key.cpp/.h
Diffstat (limited to 'src/rpcrawtransaction.cpp')
-rw-r--r-- | src/rpcrawtransaction.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rpcrawtransaction.cpp b/src/rpcrawtransaction.cpp index fb9811b921..c1e05466e5 100644 --- a/src/rpcrawtransaction.cpp +++ b/src/rpcrawtransaction.cpp @@ -407,10 +407,7 @@ Value signrawtransaction(const Array& params, bool fHelp) bool fGood = vchSecret.SetString(k.get_str()); if (!fGood) throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid private key"); - CKey key; - bool fCompressed; - CSecret secret = vchSecret.GetSecret(fCompressed); - key.SetSecret(secret, fCompressed); + CKey key = vchSecret.GetKey(); tempKeystore.AddKey(key); } } |