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

btcjson: turn warnings into StringOrArray type #2245

Merged
merged 1 commit into from
Sep 21, 2024

Commits on Sep 2, 2024

  1. btcjson: turn warnings into StringOrArray type

    Fixes btcsuite#2224 and lightningnetwork/lnd#9053.
    
    Depending on the version of Bitcoin Core, the "warnings" field in the
    response to getnetworkinfo is either a single string value or an array
    of strings.
    We can easily parse those two variants with a custom type that
    implements an UnmarshalJSON method.
    guggero committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    ed879ea View commit details
    Browse the repository at this point in the history