0

In terms of Bitcoin's communication protocol, how does Bitcoin allow nodes to communicate between each other?

Is Bitcoin's communication protocol the same as IPFS(InterPlanetary File System) and if not, is it a great idea to use IPFS for blockchain communication? Since IPFS can transfer large amount of data, then why not sending Blockchain data through it?

Second, I found out on Stack Exchange that Bitcoin uses LevelDB to store data. Does that mean that there is a central server / authority where LevelDB is running the entire chain? If yes, how does that make Bitcoin decentralized? If not, then is LevelDB run on every node?

2

is it a great idea to use IPFS for blockchain communication?

Bitcoin nodes form a P2P network, using TCP to communicate bitcoin-specific messages between one another. By using a self-defined protocol, the Bitcoin network's communications can be optimized and made robust against attacks, while not having rely on any external dependencies to do so.

Since IPFS can transfer large amount of data, then why not sending Blockchain data through it?

As far as I understand it, IPFS is designed to work as a distributed file system. In this regard, it may be a suitable choice for a user looking to download the blockchain during the bootstrapping phase of creating a new Bitcoin node, as an alternative to downloading the same files from the Bitcoin network itself. Similarly, there are copies of the blockchain available on the BitTorrent network.

Note that in most cases, it is safest to download the blockchain from the Bitcoin network itself, to ensure you receive an authentic copy, with no malicious files or code inserted into it.

Bitcoin uses LevelDB to store data. Does that mean that there is a central server / authority where LevelDB is running the entire chain?

No, there is no central server or authority in the Bitcoin network. Each node builds and maintains its own database, so that it can independently validate the current state of the network.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.