diff options
| author | Luke Dashjr <[email protected]> | 2020-02-21 21:52:52 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2020-04-02 16:00:28 +0000 |
| commit | b86cd155f6f661052042048aa7cfc2a397afe4f7 (patch) | |
| tree | 3a37177aff374ce8a0936622701c7cf53aa2de5d /src/qt/test/addressbooktests.cpp | |
| parent | Merge #18492: qt: Translations update pre-branch (diff) | |
| download | discoin-b86cd155f6f661052042048aa7cfc2a397afe4f7.tar.xz discoin-b86cd155f6f661052042048aa7cfc2a397afe4f7.zip | |
scripted-diff: Wallet: Rename mapAddressBook to m_address_book
Previous versions assumed absence of an entry in mapAddressBook indicated change.
This no longer holds true (due to bugs) and will shortly be made intentional.
Renaming the field helps ensure that old code using mapAddressBook directly gets checked for necessary rebasing.
-BEGIN VERIFY SCRIPT-
sed -i -e 's/mapAddressBook/m_address_book/g' $(git grep -l 'mapAddressBook' ./src)
-END VERIFY SCRIPT-
Diffstat (limited to 'src/qt/test/addressbooktests.cpp')
| -rw-r--r-- | src/qt/test/addressbooktests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/test/addressbooktests.cpp b/src/qt/test/addressbooktests.cpp index 0f082802c..042387286 100644 --- a/src/qt/test/addressbooktests.cpp +++ b/src/qt/test/addressbooktests.cpp @@ -97,7 +97,7 @@ void TestAddAddressesToSendBook(interfaces::Node& node) auto check_addbook_size = [&wallet](int expected_size) { LOCK(wallet->cs_wallet); - QCOMPARE(static_cast<int>(wallet->mapAddressBook.size()), expected_size); + QCOMPARE(static_cast<int>(wallet->m_address_book.size()), expected_size); }; // We should start with the two addresses we added earlier and nothing else. |