NebulousLabs / Sia

Blockchain-based marketplace for file storage. Project has moved to GitLab: https://gitlab.com/NebulousLabs/Sia
https://sia.tech
MIT License
2.71k stars 442 forks source link

localhost:9980/consensus #3176

Closed snehap007 closed 5 years ago

snehap007 commented 5 years ago

After connecting the SIA daemon, I am trying to call consensus API but every time I am getting "synced: false". please guide me to getting "synced: true" from this API.

lukechampine commented 5 years ago

synced returns true when you have downloaded the entire blockchain. It may take a few hours. You can monitor the progress by checking the height field.

snehap007 commented 5 years ago

@lukechampine thanks for the reply, can you please provide me any link or steps to download entire blockchain?

lukechampine commented 5 years ago

As long as your node is able to connect to peers, it will automatically download the blockchain. You can check the number of peers with the /gateway endpoint.