diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-05-20 07:27:49 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-05-20 07:27:53 -0400 |
commit | e20e964cb1ab78ac2fef3fd8871fcabc4b2c5afb (patch) | |
tree | 9e8a053fa0194f382b5aee735f707ea3d346ad88 /src/primitives | |
parent | bd5ec7c5284d839d403a0b859b4e6ef0ee50bcbc (diff) | |
parent | fabea6d404571d046365f4f083da3569d2cbf4f7 (diff) | |
download | bitcoin-e20e964cb1ab78ac2fef3fd8871fcabc4b2c5afb.tar.xz |
Merge #18996: net: Remove un-actionable TODO
fabea6d404571d046365f4f083da3569d2cbf4f7 net: Run clang-format on protocol.h (MarcoFalke)
facdeea2b25ef36e37b6ada58ea390a72d11a4b2 net: Remove un-actionable TODO (MarcoFalke)
Pull request description:
The first commit removes a TODO that is infeasible to solve. Currently, most (de)serializable classes in Bitcoin Core have public members. For example `CMessageHeader`, `FlatFilePos`, `CBlock`, `CTransaction`, `CCoin`, ...
So either this TODO comment should apply to all classes or to none. Fix that discrepancy by removing it from the source code for now. If deemed important, the TODO can be discussed in a brainstorming issue later.
Also run clang format on the header file in a new commit. Happy to drop this commit if it is too controversial, but I think it is trivial to review and makes the workflow of developers using clang-format-diff easier.
ACKs for top commit:
practicalswift:
ACK fabea6d404571d046365f4f083da3569d2cbf4f7
naumenkogs:
ACK fabea6d. Not sure why that TODO was there in the first place, but Marco's justification seems correct.
hebasto:
ACK fabea6d404571d046365f4f083da3569d2cbf4f7, agree with both changes: removing TODO and applying the `clang-format-diff.py`.
Tree-SHA512: b79ae07be27e5a40fc9f411a5e9ae91aecb2fdedbcbf74699614a1004f4ef816bf396903ec6c06eb1395fd83a2047620c7583acbaadfb8c4e613319a63062c3c
Diffstat (limited to 'src/primitives')
0 files changed, 0 insertions, 0 deletions