refactor: Move more stuff to blockstorage #21727
pull MarcoFalke wants to merge 5 commits into bitcoin:master from MarcoFalke:2104-blockstorage changing 8 files +383 −349-
MarcoFalke commented at 6:13 am on April 19, 2021: memberSee #21575
-
fanquake added the label Refactoring on Apr 19, 2021
-
MarcoFalke force-pushed on Apr 19, 2021
-
DrahtBot commented at 12:11 pm on April 19, 2021: member
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #21538 (fuzz: Add fuzzing syscall sandbox: detect use of unexpected syscalls when fuzzing (“syscall sanitizer”) by practicalswift)
- #20487 (Add syscall sandboxing using seccomp-bpf (Linux secure computing mode) by practicalswift)
- #20452 (util: Replace use of locale dependent atoi(…) with locale-independent std::from_chars(…) (C++17) by practicalswift)
- #20331 (allow -loadblock blocks to be unsorted by LarryRuane)
- #19438 (Introduce deploymentstatus by ajtowns)
- #18130 (Replace uses of boost::trim* with locale-independent alternatives by Empact)
- #15936 (Unify bitcoin-qt and bitcoind persistent settings by ryanofsky)
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.
-
promag commented at 10:51 pm on April 19, 2021: member
Code review ACK fa8cf6fae74f5738c2cb7a72400cd9af76d016e3. Always nice to see a nice chunk of code moved from validation.cpp. I agree this block storage related code doesn’t belong there.
Verified commit by commit, with the given instructions, easy to review and to reason about. Only detail is that
AbortNode
is moved early since it is needed in an upcoming commit. -
DrahtBot added the label Needs rebase on Apr 20, 2021
-
MarcoFalke force-pushed on Apr 20, 2021
-
MarcoFalke commented at 6:40 am on April 20, 2021: member
Rebased.
0git range-diff bitcoin-core/master fa8cf6fae7 fab20c8f73 --word-diff-regex=.
-
DrahtBot removed the label Needs rebase on Apr 20, 2021
-
practicalswift commented at 10:19 am on April 20, 2021: contributor
Concept ACK
I don’t know if that would belong in this PR or in a follow-up PR, but perhaps we want to introduce
namespace blockstorage
similar to hownamespace init
is introduced in #21732? -
MarcoFalke commented at 10:56 am on April 20, 2021: memberI think a namespace is not the right solution here. Blockstorage is inherently stateful, so a class makes more sense. I expect that
BlockManager
can be recycled to be this class (after it is moved here), but this will happen in later pull requests. The changes here are focussed on move-only to simply collect the code that is blockstorage related. -
refactor: Move pruning/reindex/importing globals to blockstorage
Can be reviewed with --color-moved=dimmed-zebra
-
refactor: Move block storage globals to blockstorage
However, keep a declaration in validation to make it possible to move smaller chunks to blockstorage without breaking compilation. Also, expose AbortNode in the header. Can be reviewed with --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space
-
move-only: Move constants to blockstorage fa7e64d586
-
move-only: Move functions to blockstorage fadafab833
-
style: Add { } to multi-line if
Can be reviewed with --word-diff-regex=. --ignore-all-space
-
MarcoFalke force-pushed on Apr 27, 2021
-
Sjors commented at 9:08 am on April 27, 2021: memberACK fa09a9eac8d8ab65ce4064c35a9f21349a644982
-
MarcoFalke requested review from promag on Apr 27, 2021
-
kiminuo commented at 11:40 am on April 27, 2021: contributor
ACK fa09a9e
- Checked diff via dimmed-zebra.
- Compiled each individual commit - success.
- (Noticed only that
IsBlockPruned
is no longer an inline function.)
-
promag commented at 1:45 pm on April 27, 2021: member
Code review ACK fa09a9eac8d8ab65ce4064c35a9f21349a644982. Since last review
git range-diff c6d6bc8abb721be68a3d2cdba11ceb5e9814c9b1 fa8cf6fae74f5738c2cb7a72400cd9af76d016e3 fa09a9eac8d8ab65ce4064c35a9f21349a644982 –word-diff-regex=.`
-
laanwj commented at 1:59 pm on May 5, 2021: memberCode review ACK fa09a9eac8d8ab65ce4064c35a9f21349a644982
-
laanwj merged this on May 5, 2021
-
laanwj closed this on May 5, 2021
-
MarcoFalke deleted the branch on May 5, 2021
-
sidhujag referenced this in commit 0590f58fb9 on May 5, 2021
-
ryanofsky referenced this in commit 76e3dda368 on Dec 30, 2021
-
ryanofsky referenced this in commit 84e96f649a on Jan 4, 2022
-
ryanofsky referenced this in commit 4ee68619fa on Jan 4, 2022
-
gwillen referenced this in commit 87c10268ee on Jun 1, 2022
-
DrahtBot locked this on Aug 16, 2022
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 03:12 UTC
More mirrored repositories can be found on mirror.b10c.me