区块链节点通过它们的连接、交互组成网络,该网络通过共识机制将新区块添加到链上,本文将解释如何有效地运营自己的区块链节点。
The blocks chain nodes, which form an interactive network through their connections, add new blocks to the chain through a consensus mechanism, and this paper will explain how effectively they operate their own nodes.
在深入讲解如何运行节点之前,我们有必要了解一下什么是区块链节点。通常在计算机网络中节点可以是计算机或任何涉及在计算机网络内接收和发送数据的设备,因此在区块链网络中每个账本参与者都是一个节点。
Before we go into more detail about how to run nodes, we need to know what is a block chain node. Usually, the node in a computer network can be a computer or any device involved in receiving and sending data within a computer network, so every account book participant in a block chain network is a node.
基于P2P(点对点)网络的原理,公有链技术本质上是去中心化跟开源的,在大多数网络中,公有链没有专用服务器,不是一个授权机构,依赖于用户之间的共识。节点通常通过共享状态信息、对其协议的治理进行投票以及验证传入交易的新块来在网络内进行通信。
Based on the principles of the P2P (point-to-point) network, public-chain technology is essentially decentralized and open-sourced, and in most networks, the public-chain does not have a dedicated server, is not an authorized agency, and relies on consensus among users. Nodes usually communicate within the network by sharing status information, voting on the governance of their protocols, and validating new blocks to be transferred to the transaction.
来自不同地理位置的多样化和分散的节点有助于建立一个更强大的共识机制。如果有足够多的节点维护他们的区块链账本副本并继续区块生产,那么网络可以无限期地运行下去。
Diversified and dispersed nodes from different geographical locations help to create a stronger consensus mechanism. If there are enough nodes to maintain copies of their block chain books and continue production of blocks, the network can continue indefinitely.
也正因此,由于每一个用户对于整个网络的安全性和完整性都至关重要,成为某个加密项目社区的一员不仅是件令人兴奋的事,也是一种责任。
It is therefore not only exciting but also a responsibility to be a member of an encrypt project community, as every user is vital to the security and integrity of the entire network.
通常来说,节点分两种主要类型:一种是存储完整账本的全节点(full node),这种节点通过验证数据来保证区块链上数据的安全性和正确性;另一种是轻节点 (lightweight node),即每个参与的用户。每一个轻节点都需要连接到一个全节点,以便同步网络的当前状态并能够参与运行。
Typically, nodes are divided into two main types: one is the full node (full node) where a complete account is stored, which ensures the security and correctness of the data in the block chain by validating the data; the other is the light node (lightweight node), i.e., each user involved. Each light node needs to be connected to a full node in order to synchronize the current state of the network and be able to participate in its operation.
首先,要部署区块链节点,新节点运营商必须要达到硬件和软件要求门槛,例如兼容的操作系统、足够的可用磁盘空间、RAM 内存和网速。接着,运营商需根据他们所期望的参与程度下载所需的核心软件。
First, to deploy block chain nodes, new node operators must meet hardware and software requirements thresholds, such as compatible operating systems, sufficient usable disk space, RAM memory and grid speed. Then operators must download the required core software according to their desired level of participation.
针对所有区块链,你都可以在运行节点上配置所需的设备、内存要求和处理能力。市场上有门槛较低的链,但也有其他一些链因为网络设计导致节点运行困难而昂贵。当然,昂贵的节点运行要求运营商的大量财务投入,可以在成本上筛掉一些试图投机的恶意节点。
For all block chains, you can set up the equipment, memory requirements, and processing capabilities needed to run the nodes. There are lower-threshold chains in the market, but there are other nodes that are expensive because network design makes nodes difficult to run.
例如,比特币的网络允许用户运行全节点或轻节点。对于比特币全节点来说,必须下载存储区块链历史记录并保存在本地文件中,在撰写本文时,其硬盘内存需超过 380 GB。
For example, the Bitcoin network allows users to run full nodes or light nodes. For the Bitcoin node, the history of the chain of blocks must be downloaded and stored in local files. At the time of writing, the hard disk must contain more than 380 GB.
【如图】区块链节点通过它们的连接、交互和在全节点的情况下共同组成网络
Networking of blocks chain nodes through their connections, interactions and full nodes
再拿以太坊举个例子,根据复杂程度不一,可运行的节点为:全节点、轻节点和存档节点。
By way of example, the following operational nodes, depending on their complexity: full nodes, light nodes and archived nodes.
全节点更具独立性,对自己的数字资产拥有更完整的主权,不像轻节点那样需要依赖其他节点访问区块链。全节点可以连接到区块链的主网络,也可以在测试网或其他安全环境上运行,以测试和开发新软件。
The whole node is more independent, has more complete sovereignty over its digital assets, and does not depend on other nodes for access to block chains, as is the case with light nodes. The whole node can be connected to the main network of block chains, or can operate on test networks or other security environments to test and develop new software.
轻节点对没有强大硬件或带宽能力的用户很友好,因为不需要下载以太坊的完整历史、钱包余额或智能合约代码。可以在手机或其他更小、功能更弱的设备上运行,但它们可以通过检验区块头的状态根,从而验证数据的有效性。
Light dots are friendly to users who do not have a strong hardware or bandwidth capability, because they do not need to download the complete history, wallet balance, or smart contract code in Taiku. They can run on mobile phones or other smaller, less functional devices, but they can verify the validity of the data by checking the status roots of blocks.
【如图】全节点对网络负有更大的责任,需要更复杂的硬件和软件,但他们的努力在金钱方面得到了更直接的回报。
The full node [as illustrated] has greater responsibility for the network and requires more sophisticated hardware and software, but their efforts have been more directly rewarded in monetary terms.
就运营商资源而言,以太坊存档节点可能是运行难度最高的节点之一。它们需要更多的硬件设备来运行,也需要使用大容量的 RAM 和磁盘空间。即便使用先进的设备,新的以太坊存档节点同步也需要花费数周时间,如果使用速度较慢的 HDD 硬盘同步存档节点,则该节点将无法实现完全同步,因为新块生成的速度将超过这类计算机同步的速度。另外,如果客户端的节点版本出现任何错误,则该节点需要重新同步。无形的时间消耗,增加了整个运营成本。
As far as operator resources are concerned, it may be one of the most difficult nodes to run. They require more hardware equipment to run, as well as large-volume RAM and disk space. Even with advanced equipment, the new node synchronization takes weeks. If a slower HDD hard disk synchronizes node, the node will not be fully synchronized, because the new block will be generated faster than the speed of such a computer sync. In addition, if there is any error in the version of the client's node, the node will need to be synchronized. Intangible time consumption increases the overall operating cost.
当然,为了防止节点脱机,运行节点时应该进行定期检测,可以向兼容节点发送请求或从区块链请求数据。不然的话,如果遇到节点崩溃的情况需要手动重启设备,这很可能会之前通过验证或挖掘新块产生的收入都将丢失。
Of course, in order to prevent nodes from offline, nodes should be run for regular testing, so that requests can be sent to compatible nodes or data requested from block chains. Otherwise, if nodes crashes require manual reboot devices, it is likely that the revenue generated previously through the validation or excavation of new blocks will be lost.
节点运营商通常会有带宽限制与硬件性能方面的问题。很多节点运营商会向互联网提供商获取无流量限制的服务,值得注意是要警惕网络被其他不明原因占用的情况。在早期的比特币网络中,病毒签名曾被上传到区块链,导致 Windows 用户的病毒软件检测到病毒后仍遇到了问题。虽然用户的设备并没有受到感染,但他们运营节点的整体性能受到了损害。
Node operators usually have problems with bandwidth restrictions and hardware performance. Many node operators obtain traffic-free services from Internet providers, and it is worth noting that the network is being occupied for other unknown reasons.
为了解决技术以及操作门槛跟效率问题,许多区块链节点运营服务公司(BaaS)应运而生。节点运营商部署必要的资本和资源来连接其基础设施,并维护其与所需区块链相关的功能。
The node operators deploy the capital and resources necessary to connect their infrastructure and maintain their functions associated with the desired block chain.
【如图】区块链服务提供商托管运行企业和其他实体的节点,为节点运营者提供诸多好处,降低了节点运营者的时间成本或专业知识要求。
The hosting of nodes by block chain service providers from operating enterprises and other entities provides a number of benefits to node operators and reduces node operators'time costs or expertise requirements.
根据每个客户的需求,区块链服务提供商可以达成对已集成公链的完全访问,只要运营者满足最低要求,包括在所需网络上的最低投资。服务提供商则会承担节点操作相关的繁琐内容,让客户可以专注于他们本身的专业领域而不用在操作上耗费精力。
Depending on the needs of each customer, a block chain service provider can achieve full access to the integrated public chain, provided that the operator meets the minimum requirements, including minimum investment in the required network. The service provider will assume the cumbersome content associated with node operations, allowing customers to focus on their own areas of specialization without undue effort.
目前市场上比较流行的区块链服务提供商有Blockdaemon、Infura、GetBlock、Alchemy、QuickNode、Figment等等。
The most popular block chain service providers in the current market are BlockDaemon, Infoura, GetBlock, Alchemy, QuickNode, Figment, etc.
启动和维护节点有助于区块链的去中心化。在某些网络上,运行一个节点可以为运营商提供回报,因为该节点会因验证新交易和参与产生新区块的投票过程而获得报酬。
The start-up and maintenance of nodes helps to decentralize the block chain. In some networks, running a node can provide a return to the operator because it will be rewarded for validating new transactions and participating in the voting process leading to the creation of new blocks.
但同时,区块链节点运营也会消耗大量时间和资源,在投入和产出比上,对矿工或验证者来说是有利可图的。全节点的报酬丰厚,因为它们验证区块并存储整个区块链账本,因此验证节点可以产生可预期的收入。
At the same time, however, the operation of block chain nodes also consumes a significant amount of time and resources and is profitable for miners or certificationists in terms of input and output. The full node is well paid because they verify blocks and store entire block chain books, so that the validation node can generate expected revenue.
尽管运行轻节点不会产生加密回报,但它仍然有助于增强用户和其他节点之间的信任、安全和隐私。拥有自己的节点意味着您无需信任第三方网络的状态或提交给网络进行验证的交易的真实性。
Having your own nodes means that you do not have to trust the status of the third-party network or the authenticity of the transaction submitted to the network for verification.
为了更好地说明这一点,假设您是一家仅接受实物黄金作为服务付款交易站的所有者,现在您想验证黄金是否是真实的并且确认具体的数量,您是会将其发送给检查员网络,还是安排在内部进行所有验证?换句话说,运行你自己的节点符合加密世界无处不在的精神:去信任;要验证。
In order to better explain this, assuming that you are the owner of a service-paying trading station where only physical gold is accepted, now you want to verify whether the gold is real and to confirm the exact amount, will you send it to the network of inspectors or arrange for all internal verifications? In other words, running your own nodes is in keeping with the ubiquitous spirit of the encrypted world: to trust; to verify.
以上就是什么是区块链节点?如何运营区块链节点?的详细内容,更多关于区块链节点详细介绍的资料请关注脚本之家其它相关文章!
What is the block chain node? How do you operate the block chain node?
注册有任何问题请添加 微信:MVIP619 拉你进入群
打开微信扫一扫
添加客服
进入交流群
发表评论