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

multi: Remove deprecated address index. #2930

Merged
merged 11 commits into from
May 21, 2022

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Apr 26, 2022

This removes the deprecated address index along with the associated CLI flags (--addrindex and --dropaddrindex) and searchrawtransactions JSON-RPC that depends on it.

The removals have been split into multiple commits to ease the review process and also ensure everything continues to work properly each step of the way.

The following is a high level overview of the changes:

  • Bumps the RPC server major version to 8.0.0
  • Removes the following entries from the JSON-RPC API docs:
    • searchrawtransactions
    • addrindex field of getinfo
  • Removes all code for searchrawtransaction method from the rpcclient
  • Removes all code from the RPC server for handling the following RPCs and fields:
    • searchrawtransactions
    • addrindex field of getinfo
  • Removes the following types and registrations along with associated tests from rpc/jsonrpc/types:
    • SearchRawTransactionsCmd
    • SearchRawTransactionsResult
    • InfoChainResult.AddrIndex
  • Removes all code to implement the address index from blockchain/indexers and server:
    • Removes the --addrindex and --dropaddrindex CLI flags
    • Updates the sampleconfig accordingly
    • Automatically drops the address index when it still exists to ensure legacy entries are removed

@davecgh davecgh added the rpc server api change Issues and/or pull requests that involve a new RPC server version or breaking to change to the API. label Apr 26, 2022
@davecgh davecgh added this to the 1.8.0 milestone Apr 26, 2022
@davecgh davecgh force-pushed the multi_remove_deprecated_addridx branch 2 times, most recently from 1aa3418 to 1894f42 Compare April 26, 2022 06:34
@davecgh davecgh force-pushed the multi_remove_deprecated_addridx branch from 1894f42 to 4a3c887 Compare May 8, 2022 19:14
@davecgh davecgh force-pushed the multi_remove_deprecated_addridx branch 2 times, most recently from b454be8 to 72cd571 Compare May 16, 2022 01:21
davecgh added 11 commits May 19, 2022 17:07
This removes the deprecated searchrawtransactions method from the
JSON-RPC API documentation.

This is part of the overall removal of the deprecated address index.
This removes support for the deprecated searchrawtransactions method
from the RPC client.

This is part of the overall removal of the deprecated address index.
This removes the deprecated searchrawtransactions method from the RPC
server along with associated tests and supporting code.

This is part of the overall removal of the deprecated address index.
This removes the AddrIndexer interface and related test infrastructure
since it is no longer used as of the removal of the address index code.

This is part of the overall removal of the deprecated address index.
This removes the deprecated types for the searchrawtransactions method
along with their tests.

This is part of the overall removal of the deprecated address index.
This removes support for the address index which also entails removal of
the --addrindex and --dropaddrindex flags as well as all related
indexing infrastructure.

The legacy index is now automatically dropped if it exists to ensure
clients that are upgrading are not left with unneeded data in their
databases.

This is part of the overall removal of the deprecated address index.
This removes the deprecated getinfo method addrindex field from the
JSON-RPC API documentation.

This is part of the overall removal of the deprecated address index.
This removes the deprecated getinfo method addrindex field from the
RPC server.

This is part of the overall removal of the deprecated address index.
This removes the deprecated addrindex field from the getinforesult type.

This is part of the overall removal of the deprecated address index.
@davecgh davecgh force-pushed the multi_remove_deprecated_addridx branch from 72cd571 to af533c1 Compare May 19, 2022 22:11
Copy link
Member

@dnldd dnldd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@davecgh davecgh merged commit af533c1 into decred:master May 21, 2022
@davecgh davecgh deleted the multi_remove_deprecated_addridx branch May 21, 2022 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rpc server api change Issues and/or pull requests that involve a new RPC server version or breaking to change to the API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants