mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-28 21:12:29 +02:00
Merge 9524 via rpc_pruneblkchain0
This commit is contained in:
commit
13813e7e5f
@ -788,6 +788,10 @@ static RPCHelpMan pruneblockchain()
|
||||
if (heightParam < 0) {
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Negative block height.");
|
||||
}
|
||||
if (heightParam == 0) {
|
||||
// Nothing to do here
|
||||
return uint64_t(0);
|
||||
}
|
||||
|
||||
// Height value more than a billion is too high to be a block height, and
|
||||
// too low to be a block time (corresponds to timestamp from Sep 2001).
|
||||
|
Loading…
Reference in New Issue
Block a user