aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.h
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-07-15 15:20:50 +1000
committerGavin Andresen <gavinandresen@gmail.com>2013-08-22 11:05:45 +1000
commit618855133d4ae4ece130aec3b35c5a65bea95b8f (patch)
treefbbaf4bfdf5751ad24635fdcb4b633d71433a2d0 /src/wallet.h
parentb94595bb7f6b98c11182df5373fe6461f4776098 (diff)
downloadbitcoin-618855133d4ae4ece130aec3b35c5a65bea95b8f.tar.xz
Refactor: CAddressBookData for mapAddressBook
Straight refactor, so mapAddressBook stores a CAddressBookData (which just contains a std::string) instead of a std::string. Preparation for payment protocol work, which will add the notion of refund addresses to the address book.
Diffstat (limited to 'src/wallet.h')
-rw-r--r--src/wallet.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/wallet.h b/src/wallet.h
index 664a032912..a3bcc26c5e 100644
--- a/src/wallet.h
+++ b/src/wallet.h
@@ -64,6 +64,22 @@ public:
)
};
+/** Address book data */
+class CAddressBookData
+{
+public:
+ std::string name;
+
+ CAddressBookData()
+ {
+ }
+
+ IMPLEMENT_SERIALIZE
+ (
+ READWRITE(name);
+ )
+};
+
/** A CWallet is an extension of a keystore, which also maintains a set of transactions and balances,
* and provides the ability to create new transactions.
*/
@@ -124,7 +140,7 @@ public:
int64 nOrderPosNext;
std::map<uint256, int> mapRequestCount;
- std::map<CTxDestination, std::string> mapAddressBook;
+ std::map<CTxDestination, CAddressBookData> mapAddressBook;
CPubKey vchDefaultKey;