-
Notifications
You must be signed in to change notification settings - Fork 324
Refactor TransactionDesc::FormatTxStatus and TransactionStatus
#552
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review ACK cbf23e4 modulo a couple comments
cbf23e4 to
b0ffe4e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review ACK b0ffe4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review ACK b279331
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
concept ACK
-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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 343f83d, I have reviewed the code and it looks OK, I agree it can be merged.
|
Mind having another (final?) look? @MarcoFalke This PR addresses your #538 (comment). Does it look ok? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review ACK 343f83d
Thanks for working on this refactoring. I have reviewed the code and agree that it can be merged.
…` 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