aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-07-30 22:43:15 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-07-31 18:35:46 +0100
commit0b1f4b3c6685d0a6307926d43d166add538061b7 (patch)
tree7823d13dde28c39a9abdc2a598c8ce90b6c96e60 /src/wallet/wallet.h
parent74f1a27f2f45af7dafcc34df766cf76d29c7c6ed (diff)
downloadbitcoin-0b1f4b3c6685d0a6307926d43d166add538061b7.tar.xz
wallet: Drop unused OldKey
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index 06e22895b5..3e66f98225 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -676,28 +676,6 @@ public:
}
};
-/** Private key that was serialized by an old wallet (only used for deserialization) */
-struct OldKey {
- CPrivKey vchPrivKey;
- ADD_SERIALIZE_METHODS;
-
- template <typename Stream, typename Operation>
- inline void SerializationOp(Stream& s, Operation ser_action) {
- // no longer used by the wallet, thus dropped after deserialization:
- int64_t nTimeCreated;
- int64_t nTimeExpires;
- std::string strComment;
-
- int nVersion = s.GetVersion();
- if (!(s.GetType() & SER_GETHASH))
- READWRITE(nVersion);
- READWRITE(vchPrivKey);
- READWRITE(nTimeCreated);
- READWRITE(nTimeExpires);
- READWRITE(LIMITED_STRING(strComment, 65536));
- }
-};
-
struct CoinSelectionParams
{
bool use_bnb = true;