Skip to content

CWallet: fix mapAddress book update - #350

Closed
laanwj wants to merge 1 commit into
bitcoin:masterfrom
laanwj:cwalletfix
Closed

laanwj wants to merge 1 commit into
bitcoin:masterfrom
laanwj:cwalletfix

Conversation

@laanwj

@laanwj laanwj commented Jun 26, 2011

Copy link
Copy Markdown
Member

Fix update of internal data structure (mapAddressBook) after changes to the address book, and add convenience methods EraseAddressBookName, GetDefaultAddress, SetDefaultAddress to be used from UI.

The problem was introduced in the new CWallet class; mapAddress book used to be updated in db.cpp. It now makes more sense to do the update directly in CWallet.

…s EraseAddressBookName, GetDefaultAddress, SetDefaultAddress
@sgimenez

Copy link
Copy Markdown
Contributor

Hi,
See also pull #335.

@laanwj

laanwj commented Jun 26, 2011

Copy link
Copy Markdown
Member Author

hm right, seems that I did some duplicated effort :-)

@sgimenez

Copy link
Copy Markdown
Contributor

Your Erase naming is more consistent with the name of other functions.
SetDefaultAddress was missing.
Also, I agree that code should be extracted from .h to .cpp files!

It's nice to see some activity, and thanks for the (indirect) feedback! :-)

sgimenez added a commit to sgimenez/bitcoin that referenced this pull request Jun 27, 2011
This problem was reported independently by laanwj in Issue bitcoin#350.
@gavinandresen

Copy link
Copy Markdown
Contributor

If this is still relevant with the new QT GUI, please rebase and re-open.

@luke-jr

luke-jr commented Dec 5, 2011

Copy link
Copy Markdown
Contributor

For the record, this fix got merged for 0.3.24.

deadalnix pushed a commit to deadalnix/bitcoin that referenced this pull request Mar 9, 2017
ensure that mined block size cannot be set > excessive block size
classesjack pushed a commit to classesjack/bitcoin that referenced this pull request Jan 2, 2018
…ctstaking

Change nocontractstaking -> disablecontractstaking
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request Oct 16, 2019
COPYRIGHT_YEAR was defined twice.
0xartem added a commit to Crowndev/crown-core that referenced this pull request Feb 9, 2020
rajarshimaitra pushed a commit to rajarshimaitra/bitcoin that referenced this pull request Aug 5, 2021
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants