-
Notifications
You must be signed in to change notification settings - Fork 38.6k
net, refactor: net_processing, add ProcessCompactBlockTxns
#26969
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
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. 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. |
|
Concept ACK |
ProcessBlockTxnMessageProcessCompactBlockTxns
ProcessCompactBlockTxns ProcessCompactBlockTxns
|
Force-pushed addressing @ajtowns's suggestion. |
3e95e62 to
c17e71b
Compare
c17e71b to
9001051
Compare
9001051 to
fd27f29
Compare
|
Rebased |
ProcessCompactBlockTxnsProcessCompactBlockTxns
1f7f871 to
3cd4578
Compare
3cd4578 to
e57f912
Compare
|
Force-pushed addressing #26969 (comment) (@dergoegge) |
e57f912 to
fe4ad5f
Compare
|
Rebased |
|
ACK 355bc6098a7373feb1d59f9651a79e1477d22243 |
355bc60 to
686629d
Compare
|
re ACK 686629d only differences beyond rebase is suggested changes for |
|
Force-pushed addressing #26969 (comment) |
|
re ACK 686629d2be5545ef59cf0e97f4f3a74c6cde2efa |
dergoegge
left a comment
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 686629d2be5545ef59cf0e97f4f3a74c6cde2efa
686629d to
89478af
Compare
|
Rebased |
|
reACK 89478af |
ajtowns
left a comment
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.
reACK 89478af481b2e6d4652b2fe50ff5fe5b92cbd69e
When processing `CMPCTBLOCK` message, at some moments we can need to process cmpct block txns, since all messages are handled by ProcessMessage, we call ProcessMessage all over again. For this reason, it creates a function called `ProcessCompactBlockTxns` to process it.
89478af to
77d6d89
Compare
|
Force-pushed addressing #26969 (comment) |
|
reACK 77d6d89 |
|
utACK 77d6d89 |
|
ACK 77d6d89 Verified diff is primarily a moveonly that removes the recursion for |
When processing
CMPCTBLOCKmessage, at some moments we can need to process compact block txns /BLOCKTXN, since all messages are handled byProcessMessage, so we callProcessMessageall over again.bitcoin/src/net_processing.cpp
Lines 4331 to 4348 in ab98673
This PR creates a function called
ProcessCompactBlockTxnsto process it to avoid callingProcessMessagefor it - this function is also called when processingBLOCKTXNmsg.