Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rpc] Allow RPC to fetch all addrman records and add records to addrman #19658

Merged
merged 3 commits into from
Aug 12, 2020

Commits on Aug 12, 2020

  1. [addrman] Specify max addresses and pct when calling GetAddresses()

    CAddrMan.GetAddr() would previously limit the number and percentage of
    addresses returned (to ADDRMAN_GETADDR_MAX (1000) and
    ADDRMAN_GETADDR_MAX_PCT (23) respectively). Instead, make it the callers
    responsibility to specify the maximum addresses and percentage they want
    returned.
    
    For net_processing, the maximums are MAX_ADDR_TO_SEND (1000) and
    MAX_PCT_ADDR_TO_SEND (23). For rpc/net, the maximum is specified by the
    client.
    jnewbery committed Aug 12, 2020
    1 Configuration menu
    Copy the full SHA
    f26502e View commit details
    Browse the repository at this point in the history
  2. 1 Configuration menu
    Copy the full SHA
    ae8051b View commit details
    Browse the repository at this point in the history
  3. [net] Add addpeeraddress RPC method

    Allows addresses to be added to Address Manager for testing.
    jnewbery committed Aug 12, 2020
    1 Configuration menu
    Copy the full SHA
    37a480e View commit details
    Browse the repository at this point in the history