fanquake added the label Refactoring on Oct 17, 2018
gmaxwell
commented at 8:33 PM on October 18, 2018:
contributor
NAK. Too much work to review. In a random spotcheck, I looked at the commit removing the nbytes <0 case, and nBytes is an int. AFAICT the removal just made the code more brittle, because the assumption that it could never be true doesn't flow directly from the structure, but only from the specific behaviour of the surrounding code.
practicalswift force-pushed on Oct 18, 2018
promag
commented at 8:51 PM on October 18, 2018:
member
Looks like these changes come more often than what maintainers can take, as such it reduces their available time on other type of changes. Not saying this isn't important, but piling up PR's also doesn't help.
practicalswift
commented at 8:51 PM on October 18, 2018:
contributor
@gmaxwell I see your argument regarding a scenario where the rest of the if-else-flow is changed in a sloppy way: I've now removed the two commits pertaining to redundant conditions. Hopefully the rest of the remaining changes are trivial to review.
From what I can judge they are all technically in the "if it compiles it works" camp. Let me know if that is technically incorrect. (I'm talking in technical terms here – obviously we shouldn't blindly trust the compiler.)
practicalswift
commented at 8:56 PM on October 18, 2018:
contributor
@promag That's why I've batched them into one PR :-)
promag
commented at 9:06 PM on October 18, 2018:
member
Currently you have 34 open PR's (more than 10% of the total), 17 of which have Refactoring label — and not counting commits. I'm just saying you can avoid having so many at once and keep the most important open. My opinion of course.
practicalswift
commented at 9:16 PM on October 18, 2018:
contributor
@promag Please note that the "refactoring" labelled PR:s include undefined behaviour fixes and locking fixes :-D
sipa
commented at 9:21 PM on October 18, 2018:
member
@practicalswift Please don't mix refactoring changes and actual fixes of issues.
A certain degree of refactoring improvements is fine, but you're single-handedly burying reviewers under piles of pull requests. Do maybe one at a time...
Otherwise, PRs that actually fix issues may not get the attention they need because reviewers just see "oh yet another practicalswift PR"...
Concerning actual issues, also please assess what the impact is; many code smell problems while possibly errorneous don't actually have any code path to trigger them.
practicalswift
commented at 9:25 PM on October 18, 2018:
contributor
@sipa I've never called them "refactoring". I call them "undefined behaviour" or simply "bugs" :-)
Please let me know if you think any of these pull requests should be closed and I'll do so :-)
It should be added that most of these are very small in terms of net LOC introduced, which hopefully make them relatively easy to review. For me personally at least review work is largely a function of LOC.
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: 2026-04-16 15:15 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me