How can you tell if your block chain is synced on the relay and producer nodes
compare the height of the synced blockchain
cardano-cli query tip --mainnet
{
"blockNo": 5477930,
"headerHash": "9729d213d87ed891191687db72e037d0036e2323a9cb78d12f336e5cec1313a4",
"slotNo": 24529931
}
with Latest Block number in the Cardano explorer
EPOCH / SLOT | BLOCK | CREATED AT | TRANSACTIONS | OUTPUT (₳) | SIZE (BYTES) | CREATED BY |
---|---|---|---|---|---|---|
254 / 165131 | 5477930 | 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
2 Likes
from 1.26.1 the output of cardano-cli query tip --mainnet
contains the actual epoch as well.
$ cardano-cli query tip --mainnet
{
"epoch": 261,
"hash": "81bc4dee50b6385a1d2fc235753c7af223e4ecf3bcb54633eea62d1d57d7283e",
"slot": 27451256,
"block": 5619862
}
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
why would you want to share the blockchain db?
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.