Skip to content

Conversation

jnewbery
Copy link
Contributor

@jnewbery jnewbery commented Aug 18, 2021

Also, access mapRecvBytesPerMsgCmd with at() not find(). This
throws an error if COMMAND_OTHER doesn't exist, which should never
happen. find() instead just accessed the last element, which could make
debugging more difficult.

Resolves review comments from PR19107:

@jnewbery
Copy link
Contributor Author

This is #20364, rebased on master.

Requesting rereview from @ryanofsky @MarcoFalke and @ajtowns, who reviewed the original PR.

@fanquake fanquake added the P2P label Aug 18, 2021
@DrahtBot
Copy link
Contributor

DrahtBot commented Aug 19, 2021

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

No conflicts as of last run.

Also, access mapRecvBytesPerMsgCmd with `at()` not `find()`. This
throws an error if COMMAND_OTHER doesn't exist, which should never
happen. `find()` instead just accessed the last element, which could make
debugging more difficult.

Resolves review comments from PR19107:

- bitcoin#19107 (comment)
- bitcoin#19107 (comment)
@jnewbery jnewbery force-pushed the 2021-08-20364-rebased branch from 0bf1ebf to f3e451b Compare August 19, 2021 17:20
@practicalswift
Copy link
Contributor

Concept ACK

Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK

Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code-review ACK f3e451b

Also rebased on master + verified that the build is clean and all tests pass.

Copy link
Contributor

@ryanofsky ryanofsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review ACK f3e451b. Changes since last review in #20364 (review) were simplifying by dropping the third commit, rebasing, and cleaning up some style & comments in the first commit.

The cleanups here are all small and straightforward, but I think the best one is getting rid of the unchecked map.find iterator dereference, and getting rid of the redundant & sometimes initialized out_err_raw_size output parameter.

@maflcko maflcko merged commit 9e3f7dc into bitcoin:master Nov 2, 2021
@jnewbery jnewbery deleted the 2021-08-20364-rebased branch November 2, 2021 13:04
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Nov 2, 2021
@bitcoin bitcoin locked and limited conversation to collaborators Nov 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants