# How can you tell if your block chain is synced

**URL:** <https://forum.cardano.org/t/how-can-you-tell-if-your-block-chain-is-synced/54155>\
**Category:** Setup a Stake Pool\
**Created:** [18 March 2021 19:19 UTC](https://forum.cardano.org/t/how-can-you-tell-if-your-block-chain-is-synced/54155 "2021-03-18T19:19:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Sherman](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/robert_sherman/32/33343_2.png) [@Robert\_Sherman](https://forum.cardano.org/u/Robert_Sherman)\
**Post date:** [18 March 2021 19:19 UTC](https://forum.cardano.org/t/how-can-you-tell-if-your-block-chain-is-synced/54155/1 "2021-03-18T19:19:57Z")

</div>

How can you tell if your block chain is synced on the relay and producer nodes

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [18 March 2021 19:24 UTC](https://forum.cardano.org/t/how-can-you-tell-if-your-block-chain-is-synced/54155/2 "2021-03-18T19:24:45Z")

</div>

compare the [height of the synced blockchain](https://docs.cardano.org/projects/cardano-node/en/latest/stake-pool-operations/getConfigFiles_AND_Connect.html)

```auto
cardano-cli query tip --mainnet
{
    "blockNo": 5477930,
    "headerHash": "9729d213d87ed891191687db72e037d0036e2323a9cb78d12f336e5cec1313a4",
    "slotNo": 24529931
}

```

with Latest Block number in the [Cardano explorer](https://explorer.cardano.org/en)

| EPOCH / SLOT | BLOCK | CREATED AT | TRANSACTIONS | OUTPUT (₳) | SIZE (BYTES) | CREATED BY |
| --- | --- | --- | --- | --- | --- | --- |
| [254 / 165131](https://explorer.cardano.org/en/epoch?number=254) | [5477930](https://explorer.cardano.org/en/block?id=9729d213d87ed891191687db72e037d0036e2323a9cb78d12f336e5cec1313a4) | 2021/03/18 | | 19:37:02 | 3 | 251707.207573 |

in the example `"blockNo": 5477930` is equal with `BLOCK 5477930` so that means the node is in sync

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [21 April 2021 15:11 UTC](https://forum.cardano.org/t/how-can-you-tell-if-your-block-chain-is-synced/54155/3 "2021-04-21T15:11:47Z")

</div>

from 1.26.1 the output of `cardano-cli query tip --mainnet` contains the actual epoch as well.

```auto
$ cardano-cli query tip --mainnet
{
    "epoch": 261,
    "hash": "81bc4dee50b6385a1d2fc235753c7af223e4ecf3bcb54633eea62d1d57d7283e",
    "slot": 27451256,
    "block": 5619862
}

```

---

<div class="post-metadata">

**Author:** ![vs4vijay](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/vs4vijay/32/33617_2.png) [@vs4vijay](https://forum.cardano.org/u/vs4vijay)\
**Post date:** [21 April 2021 16:42 UTC](https://forum.cardano.org/t/how-can-you-tell-if-your-block-chain-is-synced/54155/4 "2021-04-21T16:42:32Z")

</div>

Does that mean that whole blockchain will be downloaded twice? 1 for relay node, another for block producing node?

I think this is redundant, is there anyway to share the blockchain db for both of these nodes?

CC: @Alexd1985

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [21 April 2021 17:03 UTC](https://forum.cardano.org/t/how-can-you-tell-if-your-block-chain-is-synced/54155/5 "2021-04-21T17:03:02Z")

</div>

why would you want to share the blockchain db?

---

<div class="post-metadata">

**Author:** ![Triton-pool](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@Triton-pool](https://forum.cardano.org/u/Triton-pool)\
**Post date:** [21 April 2021 18:59 UTC](https://forum.cardano.org/t/how-can-you-tell-if-your-block-chain-is-synced/54155/6 "2021-04-21T18:59:20Z")

</div>

Relay and BP are all independent computers, each keeps their own copy of the blockchain. If you want to speed up the install, let one sync and copy (scp command) the db folder to all your other nodes.
