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

[rpc] getblockchaininfo: add size_on_disk, prune_target_size, automat… #2416

Closed

Conversation

PastaPastaPasta
Copy link
Member

[rpc] getblockchaininfo: add size_on_disk, prune_target_size, automatic_pruning

Fix pruneheight help text.
Move fPruneMode block to match output ordering with help text.
Add functional tests for new fields in getblockchaininfo. That file was deleted in the dash branch, so the tests were not backported

fixes #2391

…ic_pruning

Fix pruneheight help text.
Move fPruneMode block to match output ordering with help text.
Add functional tests for new fields in getblockchaininfo.
obj.push_back(Pair("pruneheight", block->nHeight));

// if 0, execution bypasses the whole if block.
bool automatic_pruning = (gArgs.GetArg("-prune", 0) != 1);
Copy link

Choose a reason for hiding this comment

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

Need to remove gArgs here, which isn't implemented yet in Dash.

@UdjinM6
Copy link

UdjinM6 commented Nov 5, 2018

Pls specify PR(s) you backported.

@PastaPastaPasta
Copy link
Member Author

Backports bitcoin#11367

@UdjinM6
Copy link

UdjinM6 commented Nov 5, 2018

Looks like you have to backport at least bitcoin#11370 first. Also, test folders were reorged in bitcoin#9956, we haven't backported this one yet (the corresponding file in our version/repo is qa/rpc-tests/blockchain.py).

In general, (with ^^^ in mind) not sure if fixing #2391 right now instead of waiting for future backport packs is a good idea. Thoughts @codablock ?

@PastaPastaPasta
Copy link
Member Author

Let's put this on hold for the moment, lets implement these backports for 0.13.x or 1.0 but not 0.13.0

@PastaPastaPasta PastaPastaPasta deleted the backport-11367 branch March 8, 2019 07:29
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

Successfully merging this pull request may close these issues.

None yet

4 participants