diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-02-18 15:02:36 +0100 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-02-18 15:42:38 +0100 |
commit | 9976cf070fdda61afa30cd65ef5bcddad4f43e81 (patch) | |
tree | 79b6434a7ab3303a6c4fb3c03769272c0ff3a47a /src/keystore.cpp | |
parent | 0b807a417f4a15f3e37ae35e70a72e6169f01c02 (diff) |
Move GenerateNewKey back to CWallet
Diffstat (limited to 'src/keystore.cpp')
-rw-r--r-- | src/keystore.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/keystore.cpp b/src/keystore.cpp index 18e5c377dc..e76f7790f1 100644 --- a/src/keystore.cpp +++ b/src/keystore.cpp @@ -8,16 +8,6 @@ #include "db.h" #include "script.h" -std::vector<unsigned char> CKeyStore::GenerateNewKey() -{ - RandAddSeedPerfmon(); - CKey key; - key.MakeNewKey(); - if (!AddKey(key)) - throw std::runtime_error("CKeyStore::GenerateNewKey() : AddKey failed"); - return key.GetPubKey(); -} - bool CKeyStore::GetPubKey(const CBitcoinAddress &address, std::vector<unsigned char> &vchPubKeyOut) const { CKey key; |