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

Autoprune #4701

Closed
wants to merge 9 commits into from
Closed

Autoprune #4701

wants to merge 9 commits into from

Commits on Jan 12, 2015

  1. Configuration menu
    Copy the full SHA
    35752e5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    63ecce0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    972c5d7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cb883f0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1339b7b View commit details
    Browse the repository at this point in the history
  6. Add a switch to allow running in a pruned state.

    These are the main functional changes on this state:
    
    * Do not allow running with a wallet or txindex.
    * Check for data at startup is mandatory only up to the last 288 blocks.
    * NODE_NETWORK flag is unset.
    * Requests for pruned blocks from other peers is answered with "notfound" and they are disconnected, not to stall their IBD.
    rdponticelli committed Jan 12, 2015
    Configuration menu
    Copy the full SHA
    c974c57 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    41c1569 View commit details
    Browse the repository at this point in the history
  8. Implement autoprune.

    This mode introduces a configuration parameter to keep block files at less than a fixed amount of MiB.
    rdponticelli committed Jan 12, 2015
    Configuration menu
    Copy the full SHA
    c12d6e5 View commit details
    Browse the repository at this point in the history
  9. Simplify CheckBlockFiles routine.

    We can do it now that the logic to avoid opening the files several times has been
    moved to their own functions and is handled mainly through variables.
    rdponticelli committed Jan 12, 2015
    Configuration menu
    Copy the full SHA
    bbb769c View commit details
    Browse the repository at this point in the history