Skip to content

Conversation

@morcos
Copy link
Contributor

@morcos morcos commented Jun 13, 2017

Since cfe77ef the global nTxConfirmTarget wasn't being updated by the smart
fee slider and thus the coin control dialog and labels were not being updated.

I'm not sure this is the ideal way to pass this information around, I'm open to suggestions.

@morcos
Copy link
Contributor Author

morcos commented Jun 13, 2017

Forgot to mention this should definitely be tagged 0.14
Not sure if it's worth holding up 0.14.2
@laanwj

It's broken in the entire 0.14 branch

@laanwj laanwj added this to the 0.14.3 milestone Jun 13, 2017
CoinControlDialog::payAmounts.clear();
CoinControlDialog::fSubtractFeeFromAmount = false;
if (ui->radioSmartFee->isChecked()) {
CoinControlDialog::coinControl->nConfirmTarget = ui->sliderSmartFee->maximum() - ui->sliderSmartFee->value() + 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems strange that all these CoinControlDialog members are static, but of course the pr isn't changing that. This seems like a clean fix given the current organization.

Copy link
Member

Choose a reason for hiding this comment

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

Yes the use of static here has always annoyed me too, but indeed that's not the focus here.

@laanwj
Copy link
Member

laanwj commented Jun 13, 2017

I've tagged it for 0.14.3. If there's any issues with 0.14.2 we can include it in the next rc, but it seems that rc2 can go straight to release.

@jonasschnelli
Copy link
Contributor

Thanks for the fix.
Tested ACK: 3e7cbeb

@morcos
Copy link
Contributor Author

morcos commented Jun 14, 2017

@laanwj is it too late to change release notes for 0.14.2? do you think it's at least worth mentioning that it is a known bug. might save some people some confusion?

Since cfe77ef the global nTxConfirmTarget wasn't being updated by the smart
fee slider and thus the coin control dialog and labels were not being updated.
@morcos morcos force-pushed the fixcoincontrolfee branch from 3e7cbeb to e9cd778 Compare June 14, 2017 14:58
@morcos
Copy link
Contributor Author

morcos commented Jun 14, 2017

oops, forgot to replace the global nTxConfirmTarget in one more place

@maflcko
Copy link
Member

maflcko commented Jun 14, 2017 via email

@morcos
Copy link
Contributor Author

morcos commented Jun 14, 2017

@MarcoFalke yes, just display

opened #10588

@laanwj
Copy link
Member

laanwj commented Jun 15, 2017

utACK e9cd778

@laanwj laanwj merged commit e9cd778 into bitcoin:master Jun 15, 2017
laanwj added a commit that referenced this pull request Jun 15, 2017
e9cd778 Pass in smart fee slider value to coin control dialog (Alex Morcos)

Tree-SHA512: 3899c3eb89b06e9cc842b33fabcce40a84fcc3a88ac2b02861f63419925312ac2a9f632567c02b0a060f5c5cd55f337e35e99b80535d1c1b8fcb7fd0c539f3c0
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jul 9, 2019
…ialog

e9cd778 Pass in smart fee slider value to coin control dialog (Alex Morcos)

Tree-SHA512: 3899c3eb89b06e9cc842b33fabcce40a84fcc3a88ac2b02861f63419925312ac2a9f632567c02b0a060f5c5cd55f337e35e99b80535d1c1b8fcb7fd0c539f3c0
@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.

6 participants