Fix addrProxy setting #899

pull sipa wants to merge 1 commits into bitcoin:master from sipa:fixproxysetting changing 2 files +17 −3
  1. sipa commented at 8:15 PM on February 25, 2012: member

    Before 0.6 addrProxy was a CAddress, but netbase changed it to CService. Retain compatibility by wrapping/unwrapping with a CAddress when saving or loading.

    This commit retains compatibility with 0.6.0rc1 (which wrote the setting as a CService) by trying to parse twice.

    Fixes #814

  2. Fix addrProxy setting
    Before 0.6 addrProxy was a CAddress, but netbase changed it to CService.
    Retain compatibility by wrapping/unwrapping with a CAddress when saving
    or loading.
    
    This commit retains compatibility with 0.6.0rc1 (which wrote the setting
    as a CService) by trying to parse twice.
    4a10d4c6dc
  3. sipa commented at 8:16 PM on February 25, 2012: member

    In case compatibility with 0.6.0rc1 is not required, this code suffices:

    if (strKey == "addrProxy") { CAddress addr; ssValue >> addr; addrProxy = addr; }

  4. gavinandresen commented at 9:47 PM on February 25, 2012: contributor

    ACK.

  5. sipa cross-referenced this on Feb 26, 2012 from issue No options in wallet + fix proxy settings by sipa
  6. gavinandresen merged this on Feb 27, 2012
  7. gavinandresen closed this on Feb 27, 2012

  8. suprnurd referenced this in commit 3c29252469 on Dec 5, 2017
  9. lateminer referenced this in commit 4b22a09024 on Oct 30, 2019
  10. bitcoin locked this on Sep 8, 2021

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-05-20 06:56 UTC