Skip to content

Conversation

vasild
Copy link
Contributor

@vasild vasild commented Aug 10, 2022

There is no need to use two variables ret and addr of the same type
CService and assign one to the other in a strange way like
ret = CService{addr}.

There is no need to use two variables `ret` and `addr` of the same type
`CService` and assign one to the other in a strange way like
`ret = CService{addr}`.
@fanquake fanquake added the P2P label Aug 10, 2022
Copy link
Member

@jarolrod jarolrod left a comment

Choose a reason for hiding this comment

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

ACK daabd41

Can still see my local addresses in the -netinfo dashboard.

Copy link
Contributor

@aureleoules aureleoules left a comment

Choose a reason for hiding this comment

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

ACK daabd41.
I verified that the behavior has not changed and the code is simplier.

Copy link
Contributor

@w0xlt w0xlt left a comment

Choose a reason for hiding this comment

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

ACK daabd41

@maflcko maflcko merged commit 89b2194 into bitcoin:master Aug 12, 2022
@vasild vasild deleted the simplify_GetLocalAddress branch August 12, 2022 10:42
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Aug 12, 2022
daabd41 net: simplify GetLocalAddress() (Vasil Dimov)

Pull request description:

  There is no need to use two variables `ret` and `addr` of the same type
  `CService` and assign one to the other in a strange way like
  `ret = CService{addr}`.

ACKs for top commit:
  jarolrod:
    ACK daabd41
  aureleoules:
    ACK daabd41.
  w0xlt:
    ACK bitcoin@daabd41

Tree-SHA512: 4bbd3746bc30fbc05bb32b58bb122c938acd849c0f72f1d3e8170557c1999ec26a888e06e874c3fc22562a2becddc7d817db7d174e0e1b383e8d74c39aa1e898
@bitcoin bitcoin locked and limited conversation to collaborators Aug 12, 2023
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.

6 participants