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

compatibility with new bitcoind versions #460

Open
philipp1992 opened this issue Feb 17, 2022 · 0 comments
Open

compatibility with new bitcoind versions #460

philipp1992 opened this issue Feb 17, 2022 · 0 comments

Comments

@philipp1992
Copy link

when using bitcoind 22.0 one must pass the -deprecatedrpc=addresses flag or else the block-explorer will not be able to synchronize addresses from transactions.

however this will only work until the next major version. Until then a better method should be found to get the addresses.

https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-22.0.md
The following RPCs: gettxout, getrawtransaction, decoderawtransaction, decodescript, gettransaction, and REST endpoints: /rest/tx, /rest/getutxos, /rest/block deprecated the following fields (which are no longer returned in the responses by default): addresses, reqSigs. The -deprecatedrpc=addresses flag must be passed for these fields to be included in the RPC response. This flag/option will be available only for this major release, after which the deprecation will be removed entirely. Note that these fields are attributes of the scriptPubKey object returned in the RPC response. However, in the response of decodescript these fields are top-level attributes, and included again as attributes of the scriptPubKey object. (#20286)

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

No branches or pull requests

1 participant