<p>I think I've found the answer (but I'm not 100% sure). I had to change this:</p>

<pre><code>chainTxData = ChainTxData{
        // Data as of block 0000000000000000002d6cca6761c99b3c2e936f9a0e304b7c7651a993f461de (height 506081).
        // 1521311547, // * UNIX timestamp of last known number of transactions
        // 0,  // * total number of transactions between genesis and that timestamp
        //             //   (the tx=... number in the SetBestChain debug.log lines)
        // 3.5         // * estimated number of transactions per second after that timestamp
    };
</code></pre>

<p>To this in chainparams.cpp:</p>

<pre><code>    chainTxData = ChainTxData{
        0,
        0,
        0
    };
</code></pre>

<p>That seem to have solved the issue and now I see "Progress 100%". It's the only thing that changed, the other things "Progress increase per hour", "Number of blocks left", "3 days behind" are still the same but the progress seems to have changed after I modified that section of the code.</p>

<p><em>UPDATE: When trying to use cpuminer-multi to mine, I receive this message:</em></p>

<pre><code>JSON protocol response:
{
   "error": {
      "code": -10,
      "message": "Bitcoin is downloading blocks..."
   },
   "result": null,
   "id": 0
}
</code></pre>

<p><em>So it looks I was wrong and even if it says 100% it didn't finish the sync. It's because the chain has zero blocks? It doesn't count the genesis block for some reason?</em></p>

CC BY-SA 3.0
2018-03-21T21:17:16.107Z
2018-03-21T21:52:52.270Z
2018-03-21T21:52:52.270Z
hhaamm
<p><a href="https://i.sstatic.net/Pd2Pm.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Pd2Pm.png" alt="enter image description here"></a></p>

<p>I have two BTC Core nodes modified with custom genesis blocks. I'm connecting them using the <code>-connect</code> option and the <code>-listen</code> option, and I can see in debug.log that they see each other:</p>

<pre><code>2018-03-21 19:49:42 New outbound peer connected: version: 70015, blocks=0, peer=5
</code></pre>

<p>And:</p>

<pre><code>2018-03-21 19:49:40 New outbound peer connected: version: 70015, blocks=0, peer=0
</code></pre>

<p>But, as shown in the image, the client is not able to sync. Do I need to mine at least one block so BTC Core can finish the synchronization, or is this a sympton of other problem?</p>

<bitcoin-core><altcoin><bitcoin-core-development>
BTC Core not syncing, maybe becacuse it has zero blocks?
hhaamm
# BTC Core not syncing, maybe becacuse it has zero blocks?

(Asked by: username_0 on 2018-03-21)

[![enter image description here](https://i.sstatic.net/Pd2Pm.png)](https://i.sstatic.net/Pd2Pm.png)

I have two BTC Core nodes modified with custom genesis blocks. I'm connecting them using the `-connect` option and the `-listen` option, and I can see in debug.log that they see each other:

```
2018-03-21 19:49:42 New outbound peer connected: version: 70015, blocks=0, peer=5

```

And:

```
2018-03-21 19:49:40 New outbound peer connected: version: 70015, blocks=0, peer=0

```

But, as shown in the image, the client is not able to sync. Do I need to mine at least one block so BTC Core can finish the synchronization, or is this a sympton of other problem?

**Tags:** bitcoin-core, altcoin, bitcoin-core-development


---

## 1 answers

### Answer by username_0 on 2018-03-21. Score: 1

I think I've found the answer (but I'm not 100% sure). I had to change this:

```
chainTxData = ChainTxData{
        // Data as of block 0000000000000000002d6cca6761c99b3c2e936f9a0e304b7c7651a993f461de (height 506081).
        // 1521311547, // * UNIX timestamp of last known number of transactions
        // 0,  // * total number of transactions between genesis and that timestamp
        //             //   (the tx=... number in the SetBestChain debug.log lines)
        // 3.5         // * estimated number of transactions per second after that timestamp
    };

```

To this in chainparams.cpp:

```
    chainTxData = ChainTxData{
        0,
        0,
        0
    };

```

That seem to have solved the issue and now I see "Progress 100%". It's the only thing that changed, the other things "Progress increase per hour", "Number of blocks left", "3 days behind" are still the same but the progress seems to have changed after I modified that section of the code.

*UPDATE: When trying to use cpuminer-multi to mine, I receive this message:*

```
JSON protocol response:
{
   "error": {
      "code": -10,
      "message": "Bitcoin is downloading blocks..."
   },
   "result": null,
   "id": 0
}

```

*So it looks I was wrong and even if it says 100% it didn't finish the sync. It's because the chain has zero blocks? It doesn't count the genesis block for some reason?*


---

