Skip to content
Cosmopediaby Unity Nodes
DiscussionsTendermintQuestion: State Sync With Only One Node Over RPCForum ↗

Question: State Sync With Only One Node Over RPC

Tendermint3 posts1,598 views2 likesLast activity Feb 2022
ZI
zicklagOP
Feb 2022 1

Hey folks! I’m looking into using Tendermint for a new project of mine, but I have a question about block pruning and state sync. In my application, holding a long-term ledger is not a requirement. It’s OK if we can’t trace all blocks to genesis, and it’s OK if we lose that chain because no nodes have kept those blocks. Low resource usage is the priority, while not sacrificing the effectiveness of the consensus protocol. My question was whether or not it’s possible to have this scenario succeed: • Start a new cluster with one node • The cluster continues to operate from that one node and it only holds the last, say, 1000 blocks. • Soon the node no longer has the blockchain all the way to genesis because of prune blocks. • I add a new node to the cluster and State Sync is used to catch up to the current state and then begin normal consensus • I now have two nodes connected to the cluster and I can later add and remove more with a similar process, all without needing to have a node that has the full blockchain state. My biggest concern is this piece in the docs: image 742×119 12.9 KB This says that 2 RPC servers are required to do a state sync, but what…

Excerpt (1197 of 1694 characters). Read the whole post on the forum ↗

UD
uditvira
Feb 2022 1

Hey @zicklag afaik uniqueness is not enforced on the RPC servers, so you could get away with pointing to a single one and repeating the same endpoint on the second. I also believe this requirement for RPC servers is going to deprecated in the future. You’ll find Cosmos SDK experts in the dev discord if you have more detailed questions!

ZI
zicklag
Feb 2022

Awesome, thanks for the reply! I’m doing some experimenting locally so I test that out, and I’ll get on Discord if I get the chance if I have more questions.

← Back to Discussions