X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fkeystore.h;h=36149ba66bb2d8305e59b104d6bffcf5bf5a7649;hb=HEAD;hp=f4d0ad396cd61a668e815aaa94c5260ba1435752;hpb=ee3c631e7a917e702d04d8ff77579aeaf1d29a61;p=novacoin.git diff --git a/src/keystore.h b/src/keystore.h index f4d0ad3..46c20ca 100644 --- a/src/keystore.h +++ b/src/keystore.h @@ -7,8 +7,10 @@ #include "crypter.h" #include "sync.h" + #include -#include + +#include class CScript; @@ -25,7 +27,7 @@ public: * * A CTxDestination is the internal data type encoded in a CBitcoinAddress. */ -typedef boost::variant CTxDestination; +using CTxDestination = std::variant; /** A virtual base class for key stores */ class CKeyStore @@ -132,7 +134,6 @@ public: KeyMap::const_iterator mi = mapKeys.find(address); if (mi != mapKeys.end()) { - keyOut.Reset(); keyOut.SetSecret((*mi).second.first, (*mi).second.second); return true; }