Skip to content

Conversation

@promag
Copy link
Contributor

@promag promag commented Feb 22, 2019

This is a small cleanup since the return value of WalletFrame methods are not used. This is in line with the usual async slot declaration.

@laanwj
Copy link
Member

laanwj commented Feb 22, 2019

The first question that comes to mind for me is: should these return values be used?

@promag
Copy link
Contributor Author

promag commented Feb 22, 2019

Not currently, and if there's a need then it should be used and tagged not discarded.

@laanwj
Copy link
Member

laanwj commented Feb 22, 2019

So the intent is to ignore errors in these functions at the moment?

@promag
Copy link
Contributor Author

promag commented Feb 22, 2019

What errors?

@jonasschnelli
Copy link
Contributor

I guess what @laanwj meant was if we should silently ignore things like if the wallet is already loaded or if we should transport that "error" to the user... I guess its captured earlier so I'm fine with this change.

@practicalswift
Copy link
Contributor

utACK 28c86de

@promag
Copy link
Contributor Author

promag commented Feb 22, 2019

@jonasschnelli Yap, WalletController should validate those things, at this point these methods should simply work. I also plan to reduce those conditions so it's easier to reason about how these widgets work.

@fanquake fanquake added the GUI label Feb 23, 2019
@jonasschnelli
Copy link
Contributor

utACK 28c86de (post 0.18 branch-off)

@maflcko maflcko added this to the 0.19.0 milestone Feb 23, 2019
@DrahtBot
Copy link
Contributor

DrahtBot commented Feb 27, 2019

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

No conflicts as of last run.

@practicalswift
Copy link
Contributor

re-utACK 28c86de

@jonasschnelli jonasschnelli merged commit 28c86de into bitcoin:master Mar 7, 2019
jonasschnelli added a commit that referenced this pull request Mar 7, 2019
28c86de gui: Drop unused return values in WalletFrame (João Barbosa)

Pull request description:

  This is a small cleanup since the return value of `WalletFrame` methods are not used. This is in line with the usual async slot declaration.

Tree-SHA512: ff0ca098804118bba200a58cd796ff90e853a6430e58125bd178b7bfa9b2b763c13d17b81e8f3ebd94395cac249d80379ba1529680c47682ba6a2ed81492ba33
@promag promag deleted the 2019-02-walletframe branch March 7, 2019 20:10
jasonbcox pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Nov 11, 2020
Summary:
This is a backport of Core [[bitcoin/bitcoin#15464 | PR15464]]

`addWallet` is not modified because the return value is added back and used in [[bitcoin/bitcoin#16963 | PR16963]] which was backported in D7699.

Test Plan: `ninja && src/qt/bitcoin-qt`

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D8363
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Sep 11, 2021
28c86de gui: Drop unused return values in WalletFrame (João Barbosa)

Pull request description:

  This is a small cleanup since the return value of `WalletFrame` methods are not used. This is in line with the usual async slot declaration.

Tree-SHA512: ff0ca098804118bba200a58cd796ff90e853a6430e58125bd178b7bfa9b2b763c13d17b81e8f3ebd94395cac249d80379ba1529680c47682ba6a2ed81492ba33
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants