Skip to content

No pruneheight property on the GetBlockchainInfo RPC call #1213

@bitcoinbrisbane

Description

@bitcoinbrisbane

On bitcoin-cli the getblockchaininfo rpc call returns the pruneheight. This is useful for resyncing

{
  "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": ""
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions