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

blockchain: Add invalidate/reconsider infrastructure. #2536

Merged
merged 4 commits into from
Jan 7, 2021

Commits on Jan 7, 2021

  1. blockchain: Add invalidate/reconsider infrastruct.

    This adds infrastructure to support invalidating arbitrary blocks as if
    they had violated a consensus rule as well as reconsidering arbitrary
    blocks for validation under the current consensus rules.
    
    It also includes comprehensive tests to ensure proper functionality.
    
    Example use cases this enables:
    
    - Revalidating blocks under new consensus rules
      - Consider the case of old software rejecting blocks due to new
        consensus rules activating on the network and then upgrading to a
        new version that supports the new rules
    - Possibility of manually generating snapshots of historical state such
      as live tickets and available utxos
    - Manually recovering from unexpected circumstances
    - Easier chain reorganization testing
    davecgh committed Jan 7, 2021
    Configuration menu
    Copy the full SHA
    fd92d7c View commit details
    Browse the repository at this point in the history
  2. rpc/jsonrpc/types: Add invalidate/reconsiderblock.

    This adds the command types for the upcoming invalidateblock and
    reconsiderblock RPC commands.
    davecgh committed Jan 7, 2021
    Configuration menu
    Copy the full SHA
    970a56e View commit details
    Browse the repository at this point in the history
  3. rpcserver: Add invalidate/reconsiderblock support.

    This implements the invalidateblock and reconsiderblock RPC commands
    including the required help strings.
    davecgh committed Jan 7, 2021
    Configuration menu
    Copy the full SHA
    034e279 View commit details
    Browse the repository at this point in the history
  4. docs: Add invalidate/reconsiderblock JSON-RPC API.

    This adds documentation for the new invalidateblock and reconsiderblock
    RPC commands to the JSON-RPC API docs.
    davecgh committed Jan 7, 2021
    Configuration menu
    Copy the full SHA
    0e72a3e View commit details
    Browse the repository at this point in the history