(index)
| 283 | assert_equal(node.getblockcount(), 995) |
| 284 | |
| 285 | def height(index): |
| 286 | if use_timestamp: |
| 287 | return node.getblockheader(node.getblockhash(index))["time"] + TIMESTAMP_WINDOW |
| 288 | else: |
| 289 | return index |
| 290 | |
| 291 | def prune(index): |
| 292 | ret = node.pruneblockchain(height=height(index)) |
no outgoing calls