As per title.
Details
- Reviewers
freetrader sickpig kyuupichan awemany - Group Reviewers
Restricted Project - Commits
- rSTAGINGde3a474b1e9d: Some simplification in the compact block code and tests
rABCde3a474b1e9d: Some simplification in the compact block code and tests
make check ../qa/pull-tester/rpc-tests.py
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
src/net_processing.cpp | ||
---|---|---|
1630 ↗ | (On Diff #567) | This appears similarly redundant, also the if (!State(...)) before. Furthermore, is it the right behavior to simply ignore a wrong-version compact block (as that appears to be what is happening here)? |
src/net_processing.cpp | ||
---|---|---|
1622 ↗ | (On Diff #567) | This actually also appears to be redundant... |
See comments, make check passes.
src/net_processing.cpp | ||
---|---|---|
1622 ↗ | (On Diff #567) | As I said in slack, State(pfrom->GetId())->fProvidesHeaderAndIDs is checked for being false and then State(pfrom->GetId())->fProvidesHeaderAndIDs is set to true, which appears redundant. fProvidesHeaderAndIDs is also a simple bool flag and not some complex object with an overloaded assignment operator. When I asked you on this you said 'side effects, multithreading'. But if there is a multithreading side-effect problem here, shouldn't the if(..) part be locked somehow? Anyways, do as you think makes the most sense. |
1630 ↗ | (On Diff #567) | Ok, makes sense on the SegWit part. Otherwise, same comment as above. |
src/net_processing.cpp | ||
---|---|---|
1622 ↗ | (On Diff #567) | In one case there is a write, in the other case there is no write. This is semantic change. |
Accepted this on account of argument against semantic change.
If there was such a semantic change it would need separate testing to show it is ok.