<p>To determine the current blockheight of any coin, you will need to pull data from the network itself. The source code that runs a node for any coin will not include this information. </p>

<p>A full node will download the blockchain history, so your node could then report the current blockheight back to you. The source code basically contains instructions telling your computer <em>how</em> to do this, but the explicit block height is not contained within the source code. </p>

CC BY-SA 3.0
2018-02-03T00:32:05.223Z
Thank you so much for the response... I forked a coin and have the main server node a VPS where other nodes connect. Is this information on the .mycoin directory on the VPS? Thank you so much again.
Nixxed
CC BY-SA 3.0
2018-02-03T03:59:42.063Z
You'll want to query your node for the current blockheight. You'll need to check the docs for the software you forked to find exactly how this is done.
chytrik
CC BY-SA 3.0
2018-02-02T23:27:16.460Z
2018-02-02T23:27:16.460Z
chytrik
<p>How do you determine the total blocks solved among all clients in the source code of an Altcoin? Is there a file in the code that can be viewed to see how many blocks have been solved in the meta data? How can this be determined or where can one look in the source code?</p>

<blockchain><block><altcoin>
Determining total blocks solved
Nixxed
# Determining total blocks solved

(Asked by: username_0 on 2018-02-02)

How do you determine the total blocks solved among all clients in the source code of an Altcoin? Is there a file in the code that can be viewed to see how many blocks have been solved in the meta data? How can this be determined or where can one look in the source code?

**Tags:** blockchain, block, altcoin


---

## 1 answers

### Answer by username_1 on 2018-02-02. Score: 0 | Accepted answer

To determine the current blockheight of any coin, you will need to pull data from the network itself. The source code that runs a node for any coin will not include this information.

A full node will download the blockchain history, so your node could then report the current blockheight back to you. The source code basically contains instructions telling your computer *how* to do this, but the explicit block height is not contained within the source code.

> **Comments:**
> **username_0**: Thank you so much for the response... I forked a coin and have the main server node a VPS where other nodes connect. Is this information on the .mycoin directory on the VPS? Thank you so much again.  
> **username_1**: You'll want to query your node for the current blockheight. You'll need to check the docs for the software you forked to find exactly how this is done.  

---

