Refactor TransactionDesc::FormatTxStatus and TransactionStatus#552
Refactor TransactionDesc::FormatTxStatus and TransactionStatus#552hebasto merged 5 commits intobitcoin-core:masterfrom
TransactionDesc::FormatTxStatus and TransactionStatus#552Conversation
cbf23e4 to
b0ffe4e
Compare
hebasto
left a comment
There was a problem hiding this comment.
Approach ACK 0b234f9.
In 0b234f9 "qt: remove redundant scope":
- it would be nice to rename s/
nDepth/depth/ - parameters
const interfaces::WalletTx& wtxandint numBlocksare not used, and could be dropped (maybe in a separated commit) - if you feel comfortable doing that, translator comments are always welcome :)
In b0ffe4e "qt: refactor TransactionStatus":
- removing of
open_formember could be split into a separated commit bool needsUpdateis still uninitialized- maybe put into commit message something like this " qt, refactor: Use member initializers in TransactionStatus"?
Also could you please, in addition to the link to #538, add actual descriptions of this PR changes to OP, because it goes into a merge commit message.
25fb10d to
064bbdf
Compare
|
@hebasto I have addressed all of your suggestions. Thanks. |
-BEGIN VERIFY SCRIPT-
s() { sed -i -e 's/nDepth/depth/g' $(git grep -l 'nDepth' $1); }
s src/qt/transactiondesc.cpp
-END VERIFY SCRIPT-
9f5a419 to
2c5dbf2
Compare
|
Almost ACK 2c5dbf2 except for 62ab92b "qt, refactor: add translator comments in If we are adding translator comments, we should also strive to prevent splitting of strings into less meaningful parts. Suggesting to separate that commit into a dedicated PR, as all of other commits are good to be merged. @w0xlt Please name this PR in a bit meaningful way because the PR title goes into the project commit history. |
TransactionDesc::FormatTxStatus and TransactionStatus
2c5dbf2 to
343f83d
Compare
TransactionDesc::FormatTxStatus and TransactionStatusTransactionDesc::FormatTxStatus and TransactionStatus
|
Mind having another (final?) look? @MarcoFalke This PR addresses your #538 (comment). Does it look ok? |
…` and ` TransactionStatus` 343f83d qt, refactor: Use member initializers in TransactionStatus (w0xlt) 66d58ad qt, refactor: remove unused field `qint64 TransactionStatus::open_for` (w0xlt) ad6aded qt, refactor: remove unused parameters in `TransactionDesc::FormatTxStatus()` (w0xlt) 045f8d0 scripted-diff: rename nDepth -> depth (w0xlt) b1bc143 qt, refactor: remove redundant scope in `TransactionDesc::FormatTxStatus()` (w0xlt) Pull request description: This PR implements the changes suggested in bitcoin-core/gui#538 (comment) . . remove redundant scope, rename `nDepth` -> `depth`, remove unused parameters and add translator comments in `TransactionDesc::FormatTxStatus()` . Use member initializers and remove unused field `qint64 TransactionStatus::open_for` in `TransactionStatus`. Closes bitcoin-core/gui#538 ACKs for top commit: hebasto: ACK 343f83d, I have reviewed the code and it looks OK, I agree it can be merged. jarolrod: Code Review ACK bitcoin-core/gui@343f83d Tree-SHA512: cc7333d85b7eb731aa8cdd2d8dfc707341532c93e1b5e3858e8341446cf055ba055b601f9662e8d4602726b1bedf13149c46256a60a0ce1a562f94c9986d945a
8cfb562 qt, refactor: add translator comments in `TransactionDesc::FormatTxStatus()` (w0xlt) Pull request description: This PR adds translator comments to `TransactionDesc::FormatTxStatus` as suggested in #552 (comment) and #552 (comment). ACKs for top commit: hebasto: ACK 8cfb562 Tree-SHA512: 2c44b915e6309508f34fc22bb90e3d88ad32ed82fdb3a395f7c6716941edc1b311991140d28e838ad622a7484ed86aedd25e55674857fec8716d9575aed25fa0
…sc::FormatTxStatus` 8cfb562 qt, refactor: add translator comments in `TransactionDesc::FormatTxStatus()` (w0xlt) Pull request description: This PR adds translator comments to `TransactionDesc::FormatTxStatus` as suggested in bitcoin-core/gui#552 (comment) and bitcoin-core/gui#552 (comment). ACKs for top commit: hebasto: ACK 8cfb562 Tree-SHA512: 2c44b915e6309508f34fc22bb90e3d88ad32ed82fdb3a395f7c6716941edc1b311991140d28e838ad622a7484ed86aedd25e55674857fec8716d9575aed25fa0
This PR implements the changes suggested in #538 (comment) .
. remove redundant scope, rename
nDepth->depth, remove unused parameters and add translator comments inTransactionDesc::FormatTxStatus(). Use member initializers and remove unused field
qint64 TransactionStatus::open_forinTransactionStatus.Closes #538