Open bitcoinbrisbane opened 3 months ago
On bitcoin-cli the getblockchaininfo rpc call returns the pruneheight. This is useful for resyncing
getblockchaininfo
pruneheight
{ "chain": "main", "blocks": 624959, "headers": 624959, "bestblockhash": "0000000000000000000c799dc0e36302db7fbb471711f140dc308508ef19e343", "difficulty": 13912524048945.91, "mediantime": 1586333371, "verificationprogress": 0.9999971825740865, "initialblockdownload": false, "chainwork": "00000000000000000000000000000000000000000e4c955dbc140174f247f260", "size_on_disk": 5089213233, "pruned": true, "pruneheight": 621006, "automatic_pruning": true, "prune_target_size": 5242880000, "softforks": { "bip34": { "type": "buried", "active": true, "height": 227931 }, "bip66": { "type": "buried", "active": true, "height": 363725 }, "bip65": { "type": "buried", "active": true, "height": 388381 }, "csv": { "type": "buried", "active": true, "height": 419328 }, "segwit": { "type": "buried", "active": true, "height": 481824 } }, "warnings": "" }
On bitcoin-cli the
getblockchaininfo
rpc call returns thepruneheight
. This is useful for resyncing