aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletmodel.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <[email protected]>2016-10-19 17:07:42 +0200
committerJonas Schnelli <[email protected]>2016-10-19 17:08:17 +0200
commit3e942a7060fed368f82add85177337361f6e8edd (patch)
treeaf2630502fe8a876346307c65398b55d33098085 /src/qt/walletmodel.cpp
parentMerge #7948: RPC: augment getblockchaininfo bip9_softforks data (diff)
parentQt/splash: Specifically keep track of which wallet(s) we are connected to for... (diff)
downloaddiscoin-3e942a7060fed368f82add85177337361f6e8edd.tar.xz
discoin-3e942a7060fed368f82add85177337361f6e8edd.zip
Merge #8774: Qt refactors to better abstract wallet access
178cd88 Qt/splash: Specifically keep track of which wallet(s) we are connected to for later disconnecting (Luke Dashjr) 1880aeb Qt: Get the private key for signing messages via WalletModel (Luke Dashjr)
Diffstat (limited to 'src/qt/walletmodel.cpp')
-rw-r--r--src/qt/walletmodel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp
index c8a2cb37e..305cb4fef 100644
--- a/src/qt/walletmodel.cpp
+++ b/src/qt/walletmodel.cpp
@@ -563,6 +563,11 @@ bool WalletModel::havePrivKey(const CKeyID &address) const
return wallet->HaveKey(address);
}
+bool WalletModel::getPrivKey(const CKeyID &address, CKey& vchPrivKeyOut) const
+{
+ return wallet->GetKey(address, vchPrivKeyOut);
+}
+
// returns a list of COutputs from COutPoints
void WalletModel::getOutputs(const std::vector<COutPoint>& vOutpoints, std::vector<COutput>& vOutputs)
{