getaddednodeinfo should return an array #2467

issue clanie opened this issue on April 5, 2013
  1. clanie commented at 7:53 PM on April 5, 2013: none

    When getaddednodeinfo is called with dns=false it returns something like this: {"result":{"addednode":"faucet.bitcoin.st","addednode":"faucet.bitxcoin.st"},"error":null,"id":null}

    I expected restult to be an array, and when calling with dns=true that is also what I get. Isn't it supposed to always return an array?

    I'm trying to deserialize this in Java, and that would be much easier if it always returned an array.

  2. laanwj commented at 10:22 AM on November 11, 2015: member

    Would probably have been easier if this had been done when designing the API. However at this point, changing the interface is going to cause more trouble than it solves.

  3. laanwj closed this on Nov 11, 2015

  4. DrahtBot locked this on Sep 8, 2021
Contributors

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-01 00:16 UTC

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