mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 23:07:59 +01:00
qt, refactor: remove redundant scope in TransactionDesc::FormatTxStatus()
This commit is contained in:
parent
f1ce67f09f
commit
b1bc1431db
1 changed files with 10 additions and 12 deletions
|
@ -33,7 +33,6 @@ using wallet::ISMINE_WATCH_ONLY;
|
|||
using wallet::isminetype;
|
||||
|
||||
QString TransactionDesc::FormatTxStatus(const interfaces::WalletTx& wtx, const interfaces::WalletTxStatus& status, bool inMempool, int numBlocks)
|
||||
{
|
||||
{
|
||||
int nDepth = status.depth_in_main_chain;
|
||||
if (nDepth < 0) {
|
||||
|
@ -47,7 +46,6 @@ QString TransactionDesc::FormatTxStatus(const interfaces::WalletTx& wtx, const i
|
|||
return tr("%1 confirmations").arg(nDepth);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Takes an encoded PaymentRequest as a string and tries to find the Common Name of the X.509 certificate
|
||||
// used to sign the PaymentRequest.
|
||||
|
|
Loading…
Add table
Reference in a new issue