Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for #952 (send coins tab glitch) #1189

Merged
merged 1 commit into from
May 6, 2012
Merged

fix for #952 (send coins tab glitch) #1189

merged 1 commit into from
May 6, 2012

Conversation

Diapolo
Copy link

@Diapolo Diapolo commented May 3, 2012

Tested on testnet and works as expected (fixes #952), if I send coins and update or set a label for an address it get's updated in the address list, which it did not before.

@laanwj
Copy link
Member

laanwj commented May 4, 2012

Can you please move the checking logic to WalletModel instead of inside SetAddressBookName? That'd make it an UI-only change and much easier to test.

@Diapolo
Copy link
Author

Diapolo commented May 4, 2012

The question is, if walletmodel.cpp is the only place, where that check makes senes or if it's beneficial to all places in the source? I'm fine if it's only needed in walletmodel.cpp, so can you verify this?

return false;
return CWalletDB(strWalletFile).WriteName(address.ToString(), strName);
std::map<CBitcoinAddress, std::string>::iterator mi = mapAddressBook.find(address);
// Check if we have a new address or label
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// Check if we have a new address or updated label

@laanwj
Copy link
Member

laanwj commented May 4, 2012

Well, it'd be nice to only change only the UI for an UI-only fix.

Then again, I guess the extra check doesn't hurt (except that it complicates the code a bit).

@Diapolo
Copy link
Author

Diapolo commented May 4, 2012

@laanwj Updated to be a GUI-fix only, is the LOCK in parentheses correct? I get now compiler warning, just want to be sure :)

@laanwj
Copy link
Member

laanwj commented May 4, 2012

The LOCK is not correct. You need to have the lock before any access to the address book, so also while doing the check.

@Diapolo
Copy link
Author

Diapolo commented May 4, 2012

Alright, the LOCK is now before any access to wallet, locking good now?

@laanwj
Copy link
Member

laanwj commented May 4, 2012

Yes, it's ok now

laanwj added a commit that referenced this pull request May 6, 2012
fix for #952 (send coins tab glitch)
@laanwj laanwj merged commit 46692fc into bitcoin:master May 6, 2012
coblee pushed a commit to litecoin-project/litecoin that referenced this pull request Jul 17, 2012
suprnurd pushed a commit to chaincoin-legacy/chaincoin that referenced this pull request Dec 5, 2017
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request Jan 22, 2019
…itcoin#1189)

At the same times actually log the coin freeze avaiblity from the then
branch of the if statement that checks that the utxo is spendable.
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request Dec 25, 2019
d0b3494 [GUI] Feature/Bug CoinControl Update on Open (Liquid369)

Pull request description:

  Improvement on bitcoin#1189
  Tested working

ACKs for top commit:
  furszy:
    ACK d0b3494
  random-zebra:
    utACK d0b3494 and merging...

Tree-SHA512: 5e8165df2e9eca41a79b971483438b0d4435f5101a1667e900380b0c365b795481fa38fe28389b7dfebe29f1475ed1b4c84f9c5802013f6f13783440679c6892
@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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

send coins tab glitch (Qt GUI)
2 participants