本文介绍了区块链是否包含websocket服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近正在阅读有关区块链的文章,对此技术非常感兴趣.我对区块链有一些疑问:

I was recently reading about blockchains and am very intrigued by this technology. I had a few questions regarding blockchains:

  1. 区块链是否使用网络套接字在用户之间传输信息?如果是,那么发送的信息(块)是否始终是JSON对象?

  1. Do Blockchains use web-sockets to transmit information between users? If yes then is the information(blocks) sent always a JSON object?

所有用户是否都拥有区块链的整个副本,他们是否只是看到区块链的部分副本?如果是,那么文件可以变大多少?

Do all users have the entire copy of the blockchain, do they each just see a partial copy of the blockchain? if yes then how big can the file get?

此外,什么决定事务/秒?我读过比特币大约每秒处理7笔交易,要使它们更具可伸缩性需要什么,是编码因素(例如编写更有效的算法(big-O))还是某种硬件限制?

Also, what determines transactions/second? I read bitcoin does about 7transactions/seconds and what is needed to make them more scalable, is it coding factors such as writing a more efficient algorithm (big-O) or is it some kind of hardware limitation?

很抱歉,如果这些问题看似微不足道,但我是尝试学习该技术的新手.任何帮助将不胜感激.

Sorry if these questions seem trivial but I am a newbie trying to learn the technology. Any help would be appreciated.

推荐答案

  1. 不,通常他们使用基于TCP的低级协议构建.
  2. 用户应具有完整的区块链副本,以验证交易.比特币的数据库大小:200 GB,以太坊660 GB.您可以使用没有完整副本的轻量级客户端,但是在这种情况下,您不属于网络的一部分.
  3. 在比特币中,块大小限制为1 MB.平均事务大小约为400个字节,因此平均块包含2000个事务.增加区块大小限制没有问题,这是在比特币现金网络(32 MB)中完成的.但是,由于Internet连接速度和事务验证磁盘/CPU资源不是无限的,因此我们不能将其增加到无限.

这篇关于区块链是否包含websocket服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 11:32