block-explorer
block-explorer copied to clipboard
compatibility with new bitcoind versions
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)