- 
                Notifications
    You must be signed in to change notification settings 
- Fork 38.1k
doc: Fix CWalletTx::Confirmation doc #23332
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
fa4e8fe    to
    faf9a9f      
    Compare
  
    faf9a9f    to
    fa8fef6      
    Compare
  
    | The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones: 
 If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. | 
| Code review ACK fa8fef6 | 
| cc Ryan @ryanofsky | 
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.
| /* Used by TransactionAddedToMemorypool/BlockConnected/Disconnected/ScanForWalletTransactions. | ||
| * Should be called with non-zero block_hash and posInBlock if this is for a transaction that is included in a block. */ | 
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.
In commit "doc: Fix CWalletTx::Confirmation doc" (fa8fef6)
Minor: This comment does seem useful to me and I'd probably s/non-zero block_hash and posInBlock/confirmation/ instead of dropping it.
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.
This is already explained in the Confirmation doc:
/** Confirmation includes tx status and a triplet of {block height/block hash/tx index in block} ...
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.
If you think this is important to explain, it might be better to put the comment to TxStateConfirmed from #21206?
fa8fef6 doc: Fix CWalletTx::Confirmation doc (MarcoFalke) Pull request description: Follow-up to: * commit 700c42b, which replaced pIndex with block_hash in AddToWalletIfInvolvingMe. * commit 9700fcb, which replaced posInBlock with confirm.nIndex. ACKs for top commit: laanwj: Code review ACK fa8fef6 ryanofsky: Code review ACK fa8fef6 Tree-SHA512: e7643b8e9200b8ebab3eda30435ad77006568a03476006013c9ac42c826c84e42e29bcdefc6f443fe4d55e76e903bfed5aa7a51f831665001c204634b6f06508
Follow-up to:
commit 700c42b, which replaced pIndex
with block_hash in AddToWalletIfInvolvingMe.
commit 9700fcb, which replaced
posInBlock with confirm.nIndex.