net processing: Move block inventory state to net_processing#19829
net processing: Move block inventory state to net_processing#19829maflcko merged 7 commits intobitcoin:masterfrom
Conversation
|
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. |
|
Thanks for the review @ariard . I've addressed your comments. |
f479be8 to
f07c765
Compare
|
Rebased |
f07c765 to
1cc4d31
Compare
|
Concept ACK |
1cc4d31 to
aafa89b
Compare
|
rebased |
|
Concept ACK. |
aafa89b to
0684152
Compare
|
Thanks for the review @hebasto . I've addressed both of your comments. |
hebasto
left a comment
There was a problem hiding this comment.
ACK 06841521613f1e7312f3f51597b43a20c193a363, tested on Linux Mint 20 (x86_64).
|
rebased |
jonatack
left a comment
There was a problem hiding this comment.
ACK 9aad3e4f3347990641da23c0d9a3f05e1669cabf modulo the RPC fields/help order (see comment below)
|
Concept ACK |
maflcko
left a comment
There was a problem hiding this comment.
review ACK 9aad3e4f33 🔱
Changes since previous review:
- Add lock-order docs
- Pass in Peer& to ProcessHeadersMessage
- Shuffle order in RPC doc
- Rebase
- Doc fixups
- New commit with a lock
Show signature and timestamp
Signature:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
review ACK 9aad3e4f33 🔱
Changes since previous review:
* Add lock-order docs
* Pass in Peer& to ProcessHeadersMessage
* Shuffle order in RPC doc
* Rebase
* Doc fixups
* New commit with a lock
-----BEGIN PGP SIGNATURE-----
iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
pUhhwgv+M611eBCdMzaHcsl/tL05mOFVC94Nc9F7t5MCW8iuNlEWaT7yzpQaPV5g
8L9MZqFGi7YpPVrL2y12ky0MYBfG9MdploG2F53O4WvLnyEa6PXw04HZKqlv9yfS
qcJEwjJc+XvKPohl6NZg91GDyofVttKI8bqCqjPhEbZYCi2+RQ9o0OZ1PJEr8b6L
KgtXpj+YgtpRwpH5ny/E/mR5LwfLFmxYNmgQlEpMvjIqyxcSUgrYXn77vxMJI//T
Y2g5NowkMo43S12fT6KWJk9eMoRy+L2kgrCD9LI0r/wuY1B+9rCamBgzeBKIuk6f
EfFnS33FIG8xcT21+x5g38J6jlHz6HlSy/huA31ALBhDItMTR+dm7VI+1KXKTTag
nhN9S/ZVWXjjPaZKzbAmKguPRbJWdOcoWdyAlZy+S4qeC+wdEqT+GBGvhj0TZ3du
56VMY6sNhdG8kUQr4KuwugereUtKQDJvHMehBH6ki6br/G6W71kdpCYPhxK5fZkx
khylqj75
=v6fJ
-----END PGP SIGNATURE-----
Timestamp of file with hash 431bceaaa7cf87a17743f11d77f4a61c5cdf9d1374a5f4fcd4e5683b564af330 -
Not done as a scripted diff to avoid misnaming the local variable in ProcessMessage().
-BEGIN VERIFY SCRIPT- sed -i 's/vBlockHashesToAnnounce/m_blocks_for_headers_relay/g' src/net_processing.* sed -i 's/vInventoryBlockToSend/m_blocks_for_inv_relay/g' src/net_processing.* -END VERIFY SCRIPT-
Also rename to m_continuation_block to better communicate meaning.
9aad3e4 to
3002b4a
Compare
|
Thanks for the latest reviews @jonatack and @MarcoFalke. I've addressed/responded to all of your comments. I'd like to stabilize this PR now unless any functional issues are found. We have ACKs on the code change at various times from @MarcoFalke, @jonatack, @hebasto, @sipa and @Sjors. If there are any further style suggestions, I can address them in the next PR in this series. |
maflcko
left a comment
There was a problem hiding this comment.
re-ACK 3002b4a 🌓
only changes:
- Move RPC help once more
- Fix LOCK scope {} nit
- Rename a member
Show signature and timestamp
Signature:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
re-ACK 3002b4af2b4fde63026f8f7c575452a5c989c662 🌓
only changes:
* Move RPC help once more
* Fix LOCK scope {} nit
* Rename a member
-----BEGIN PGP SIGNATURE-----
iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
pUirewv/WiQMgzv/dZCAqCSBX8qa6mPZiEw4j5mOPAnylVH3P+qiQGEXrHpKVjTj
XO0rGPI+dEvej90YVSThX231sBS1VXvP4hv8JKYHVdoAVP2j3XbmEmtZrPoGqViR
eMtblmUALv5A8OfkquBDUb/PVDr9FxUycTe01tGxyxhcLtaTfoIcq+6Elh7NkWMm
tgszY1rz2S7pjYU3GH/an+v5BYOBAi3HG5vHETEICQGjabAEduMZFF2bueQZIj1Q
CkVhnj/mcFx7Fypc0J1q5LsPonuPHVfqMK38dO6iFxcpLfLZKwmcnXAJ7OFnHkQF
JJ1zXA5HRixl5UKakZqUkjhjroD71vfODzfhSLaszEZLqeGXx0+N17CAd8Vgblk2
ReLskQfzmco+aHWX6Hl7CKj7+yTszpWTMvmMvkl08EaNnAGuGBbF1TgI8oA213Ry
QwjwlP5Ohx7Iy33qtysxAq5/4jqypu/srlhxcfFCidi+AvujeZqcyXLztxw54zLj
cWdIBtpT
=PVp9
-----END PGP SIGNATURE-----
Timestamp of file with hash 03268669e27bdf510ed13b406639896a3bedb0573f1b2d13c4c88ed636966237 -
|
re-ACK 3002b4a per |
|
Code review re-ACK 3002b4a |
Summary: As per title, only comments. Partial backport of [[bitcoin/bitcoin#19829 | core#19829]]: bitcoin/bitcoin@717a374 Ref T1696. Test Plan: Read the comments. Reviewers: #bitcoin_abc, PiRK Reviewed By: #bitcoin_abc, PiRK Maniphest Tasks: T1696 Differential Revision: https://reviews.bitcoinabc.org/D10865
Summary: Partial backport of [[bitcoin/bitcoin#19829 | core#19829]]: bitcoin/bitcoin@77a2c2f Ref T1696. Test Plan: ninja all check-all Reviewers: #bitcoin_abc, PiRK Reviewed By: #bitcoin_abc, PiRK Maniphest Tasks: T1696 Differential Revision: https://reviews.bitcoinabc.org/D10866
Summary: ``` Not done as a scripted diff to avoid misnaming the local variable in ProcessMessage(). ``` Partial backport of [[ bitcoin/bitcoin#19829 | core#19829 ]]: bitcoin/bitcoin@78040f9 Depends on D10866. Ref T1696. Test Plan: ninja all check-all Reviewers: #bitcoin_abc, PiRK Reviewed By: #bitcoin_abc, PiRK Subscribers: PiRK Maniphest Tasks: T1696 Differential Revision: https://reviews.bitcoinabc.org/D10867
Summary: Partial backport of [[bitcoin/bitcoin#19829 | core#19829]]: bitcoin/bitcoin@53b7ac1 Ref T1696. Depends on D10867. Test Plan: ninja all check-all Reviewers: #bitcoin_abc, PiRK Reviewed By: #bitcoin_abc, PiRK Maniphest Tasks: T1696 Differential Revision: https://reviews.bitcoinabc.org/D10868
Summary: Original rename script: ``` -BEGIN VERIFY SCRIPT- sed -i 's/vBlockHashesToAnnounce/m_blocks_for_headers_relay/g' src/net_processing.* sed -i 's/vInventoryBlockToSend/m_blocks_for_inv_relay/g' src/net_processing.* -END VERIFY SCRIPT- ``` Partial backport of [[bitcoin/bitcoin#19829 | core#19829]]: bitcoin/bitcoin@c853ef0 Ref T1696. Test Plan: ninja all check-all Reviewers: #bitcoin_abc, PiRK Reviewed By: #bitcoin_abc, PiRK Maniphest Tasks: T1696 Differential Revision: https://reviews.bitcoinabc.org/D10870
Summary: ``` Also rename to m_continuation_block to better communicate meaning. ``` Partial backport of [[bitcoin/bitcoin#19829 | core#19829]]: bitcoin/bitcoin@184557e Depends on D10870. Ref T1696. Test Plan: ninja all check-all Reviewers: #bitcoin_abc, PiRK Reviewed By: #bitcoin_abc, PiRK Maniphest Tasks: T1696 Differential Revision: https://reviews.bitcoinabc.org/D10871
Summary: Completes backport of [[bitcoin/bitcoin#19829 | core#19829]]: bitcoin/bitcoin@3002b4a Depends on D10871. Ref T1696. Test Plan: With Clang and debug: ninja all check-all Reviewers: #bitcoin_abc, PiRK Reviewed By: #bitcoin_abc, PiRK Maniphest Tasks: T1696 Differential Revision: https://reviews.bitcoinabc.org/D10872
This continues the work of moving application layer data into net_processing, by moving all block inventory state into the new Peer object added in #19607.
For motivation, see #19398.