<p>You can run with <code>-connect=0</code>. If it's not connected to anything, it can't sync further.</p>

CC BY-SA 4.0
2021-02-09T03:58:45.017Z
2021-02-09T03:58:45.017Z
Pieter Wuille
<p>I am currently using <code>bitcoind</code> to do some transaction analysis on a small part of the blockchain. However, after the local copy of the blockchain reaches the <code>-stopatheight</code> value, it quits. Is there a way to keep it running at that height? Or do I need to sync the full blockchain to keep it running? I want to keep it running so that I can run the <code>bitcoin-cli</code> and perform a few RPC calls</p>

CC BY-SA 4.0
2021-02-09T04:38:24.273Z
You can use any parser for to analyze any part of blockchain that you need. For example, my script https://github.com/ragestack/blockchain-parser can do it. If you need chainstate data, you can also calculate it from parser's output data.
Denis Leonov
CC BY-SA 4.0
2021-02-09T16:05:51.577Z
@DenisLeonov Thanks for that, do you have any benchmarks? I have read in academia that Python would be slow to parse the full blockchain, have you done any sort of testing to see how it compares to parsers built with cpp or others
m0bi5
CC BY-SA 4.0
2021-02-09T16:11:09.070Z
i think there is no need for extreme speed for onetime blockchain parsing
Denis Leonov
<bitcoin-core><bitcoind><bitcoin-cli>
Is it possible to keep bitcoind running with the blockchain synced up to only a certain height?
m0bi5
# Is it possible to keep bitcoind running with the blockchain synced up to only a certain height?

(Asked by: username_0 on 2021-02-09)

I am currently using `bitcoind` to do some transaction analysis on a small part of the blockchain. However, after the local copy of the blockchain reaches the `-stopatheight` value, it quits. Is there a way to keep it running at that height? Or do I need to sync the full blockchain to keep it running? I want to keep it running so that I can run the `bitcoin-cli` and perform a few RPC calls

**Tags:** bitcoin-core, bitcoind, bitcoin-cli

> **Comments:**
> **username_1**: You can use any parser for to analyze any part of blockchain that you need. For example, my script https://github.com/ragestack/blockchain-parser can do it. If you need chainstate data, you can also calculate it from parser's output data.  
> **username_0**: @DenisLeonov Thanks for that, do you have any benchmarks? I have read in academia that Python would be slow to parse the full blockchain, have you done any sort of testing to see how it compares to parsers built with cpp or others  
> **username_1**: i think there is no need for extreme speed for onetime blockchain parsing  

---

## 1 answers

### Answer by username_2 on 2021-02-09. Score: 5 | Accepted answer

You can run with `-connect=0`. If it's not connected to anything, it can't sync further.


---

