@gmaxwell, this is meant to address #9761 (comment)
Should probably go in 0.14 with the rest of the grace period / importmulti changes
@gmaxwell, this is meant to address #9761 (comment)
Should probably go in 0.14 with the rest of the grace period / importmulti changes
819@@ -820,7 +820,8 @@ UniValue pruneblockchain(const JSONRPCRequest& request)
820 throw runtime_error(
821 "pruneblockchain\n"
822 "\nArguments:\n"
823- "1. \"height\" (numeric, required) The block height to prune up to. May be set to a discrete height, or to a unix timestamp to prune based on block time.\n"
824+ "1. \"height\" (numeric, required) The block height to prune up to. May be set to a discrete height, or a unix timestamp\n"
825+ " to prune based on block time. Timestamp based pruning automatically adds a 2 hour buffer.\n"
utACK 051fc42521dd5417f34ed27a727ad045a9823764
I think it should probably not be hard to add a test for this in: https://github.com/bitcoin/bitcoin/blob/1e92e041ddc8232bcf64f09fd70891b80ac05c66/qa/rpc-tests/pruning.py#L229
Though pruning.py is kind of a pain to run.
ok slightly modified the help text otherwise unchanged from ACK’ed commit
The 7200 number was added simultaneously in 3 separate PR’s, but I agree it should be cleaned up to a constant in a later PR.
pruning.py
to break.
@ryanofsky or I will fix the test.