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

Apply changes from btcsuite/btcd: btcjson: turn warnings into StringOrArray type #4

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

octobocto
Copy link

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.

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.
@octobocto octobocto changed the title btcjson: turn warnings into StringOrArray type Apply changes from btcsuite/btcd: btcjson: turn warnings into StringOrArray type Sep 27, 2024
@octobocto octobocto merged commit c0a9f96 into master Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

getnetworkinfo core RPC introduced new field in json object.
2 participants