net: simplify GetLocalAddress() #25814

pull vasild wants to merge 1 commits into bitcoin:master from vasild:simplify_GetLocalAddress changing 1 files +2 −3
  1. vasild commented at 1:13 PM on August 10, 2022: contributor

    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}.

  2. net: simplify GetLocalAddress()
    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}`.
    daabd41211
  3. fanquake added the label P2P on Aug 10, 2022
  4. jarolrod approved
  5. jarolrod commented at 7:27 PM on August 10, 2022: member

    ACK daabd4121114fe6f780bccab311a522c0717c5b8

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

  6. aureleoules commented at 9:45 AM on August 11, 2022: member

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

  7. w0xlt approved
  8. MarcoFalke merged this on Aug 12, 2022
  9. MarcoFalke closed this on Aug 12, 2022

  10. vasild deleted the branch on Aug 12, 2022
  11. sidhujag referenced this in commit 34bf2f0400 on Aug 12, 2022
  12. bitcoin locked this on Aug 12, 2023

github-metadata-mirror

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-25 15:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me