WO2020019344A1 - 基于区块链系统的节点管理方法、装置和存储介质 - Google Patents

基于区块链系统的节点管理方法、装置和存储介质 Download PDF

Info

Publication number
WO2020019344A1
WO2020019344A1 PCT/CN2018/097651 CN2018097651W WO2020019344A1 WO 2020019344 A1 WO2020019344 A1 WO 2020019344A1 CN 2018097651 W CN2018097651 W CN 2018097651W WO 2020019344 A1 WO2020019344 A1 WO 2020019344A1
Authority
WO
WIPO (PCT)
Prior art keywords
management
node
server node
management server
transaction
Prior art date
Application number
PCT/CN2018/097651
Other languages
English (en)
French (fr)
Inventor
袁振南
刘鹏
Original Assignee
袁振南
区链通网络有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 袁振南, 区链通网络有限公司 filed Critical 袁振南
Priority to PCT/CN2018/097651 priority Critical patent/WO2020019344A1/zh
Priority to CN201880002402.1A priority patent/CN109496406A/zh
Publication of WO2020019344A1 publication Critical patent/WO2020019344A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/042Network management architectures or arrangements comprising distributed management centres cooperatively managing the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Definitions

  • the present invention relates to the field of computer technology, and in particular, the present invention relates to a node management method, device, and storage medium based on a blockchain system.
  • server nodes In the current blockchain system, the purpose of server nodes for work and services is to obtain mining rewards, which causes part of the computing power to be wasted on meaningless hash operations. Based on the profit-promoting property, server nodes will try their best to obtain more rewards. When a more cost-effective way is found than mining, server nodes will tend to use them as a means to gain higher benefits. It is possible to detect and deal with these malicious acts through technical means, but it does not solve the underlying problem.
  • an embodiment of the present invention provides a node management method based on a blockchain system.
  • the blockchain system includes:
  • the management ring includes a number of management server nodes that logically form a ring structure.
  • the management server nodes are used to package the received transaction information into blocks in the form of mining and record them in the blockchain to provide non-transaction type services , And manage one or more business server nodes in the worker ring;
  • the worker ring includes a number of business server nodes that logically form a ring structure.
  • the business server nodes are used to generate transaction information with terminal transactions and send them to the management ring, and perform non-transaction type services allocated by the management server node to which they belong;
  • the node management method includes:
  • a management server node providing a non-transaction type service and each business server node performing the non-transaction type service allocated by the management server node are allocated a set amount of service charges.
  • allocating a set number of service charges to a management server node providing non-transaction type services and each business server node performing non-transaction type services allocated by the management server node includes:
  • a predetermined proportion of service fees are allocated to management server nodes that provide non-transaction types, and the remaining service fees are allocated to each business server node that performs non-transaction type services allocated by the management server nodes.
  • the allocating the remaining service charges to each business server node that performs non-transaction type services allocated by the management server node includes:
  • the remaining service fee is allocated to each business server node.
  • the allocating the remaining service charges to each business server node that performs non-transaction type services allocated by the management server node includes:
  • the remaining service fees are allocated to each business server node.
  • several service server nodes in the worker ring are divided into several shards, and the management server manages one or more shards; each shard is sent to the management server to which it belongs at a fixed time interval.
  • each shard includes Service server nodes, where N is the number of service server nodes in the worker ring.
  • the management server node delivers messages to each business server node it manages in a loosely coupled manner.
  • the blockchain system further includes an origin for characterizing the beginning of the blockchain.
  • an embodiment of the present invention further provides a node management device based on a blockchain system.
  • the blockchain system includes:
  • the management ring includes a number of management server nodes that logically form a ring structure.
  • the management server nodes are used to package the received transaction information into blocks in the form of mining and record them in the blockchain to provide non-transaction type services.
  • the worker ring includes a number of business server nodes that logically form a ring structure.
  • the business server nodes are used to generate transaction information with terminal transactions and send them to the management ring, and perform non-transaction type services allocated by the management server node to which they belong;
  • the node management device includes:
  • a first allocation module configured to allocate a preset number of mining rewards to a management server node that has successfully mined, and a transaction fee corresponding to all transaction information recorded in the packaged block;
  • a second allocation module is configured to allocate a set amount of service charges to a management server node that provides a non-transaction type service and each business server node that executes the non-transaction type service allocated by the management server node.
  • an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the blockchain-based system-based Node management method.
  • the mining reward belongs to the management server node that successfully mines, but compared to the management server node without the mining qualification in the prior art, it does not receive benefits.
  • the management server nodes profit from cheating.
  • This solution allocates service fees to the management server nodes that are not qualified for mining in this round and each business server node that executes the non-transaction type services allocated by the management server. Taking into account the server nodes at all levels, ensuring that each server node has a profit opportunity at any time, reducing the waste of computing power to a certain extent, thereby preventing passive node work or cheating behavior of server nodes without mining qualifications.
  • FIG. 1 is a schematic diagram of a hardware environment composed of a terminal and a blockchain system according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a blockchain system according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a node management method based on a blockchain system according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a node management device based on a blockchain system according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • server nodes that successfully mine will receive mining rewards and issue them to node accounts in the form of tokens.
  • the successful mining of Ethereum's blockchain nodes can get 5 new Ethereum rewards.
  • the successful reward of mining is not an endogenous rule of the blockchain, but a sociological means of economic incentive.
  • currently Bitcoin mining success will receive 12.5 Bitcoin rewards, but the total amount of Bitcoin will reach the upper limit of 21 million after 2140, after which miners will not be able to obtain mining rewards, and the source of income for miners will only be transactions cost.
  • server nodes do not need and cannot mine, and naturally cannot receive mining rewards.
  • the mining revenue belongs to the server node that has successfully accounted, that is, the server node that has successfully mining.
  • the transaction fees are also all paid to the server nodes that successfully mine. That is, all transaction costs (i.e. transactions recorded in a block) generated in a certain period are distributed to the server nodes that successfully package the blocks along with the mining rewards. That is to say, in addition to the mining rewards, the server nodes that have been successfully mined also receive all the transaction fees for the same period, while the remaining server nodes cannot receive the transaction fee reward.
  • the embodiment of the present invention takes the AME blockchain system as an example, and uses strong incentives to urge all parties to provide better services to prevent cheating and profitable behavior.
  • the specific embodiments of the present invention will be described in detail below with reference to the drawings.
  • the node management method based on the blockchain system provided by the embodiment of the present invention can be applied to a hardware environment composed of a terminal 11 and a blockchain system 12 as shown in FIG. 1. As shown in FIG. 1, the terminal 11 and the blockchain system 12 are connected through a network.
  • the node management method based on the blockchain system provided by the embodiment of the present invention can be executed in a server included in the blockchain system.
  • the terminal 11 sends a transaction application or a non-transaction type service application to the blockchain system 12.
  • the server included in the blockchain system 12 is used to respond to a transaction application or a non-transaction type service application sent by the terminal 11 to the transaction application or Non-transaction type service applications are processed, and the generated transaction information is packaged into blocks and recorded in the blockchain.
  • AME (Amoeba) technology platform is a secure, self-managed decentralized distributed infrastructure and application platform based on blockchain technology.
  • the blockchain technology is the basic component of the AME technology platform. It uses the "2.1 circle” network topology design to manage the node servers participating in the blockchain system, separating management logic and business logic, thereby achieving Flexible and scalable decentralized P2P (Peer to Peer) system solution.
  • FIG. 2 it is a schematic diagram of a blockchain system according to an embodiment.
  • the blockchain system includes:
  • the management ring includes a number of management server nodes that logically form a ring structure.
  • the management server nodes are used to package the received transaction information into blocks in the form of mining and record them in the blockchain to provide non-transaction type services.
  • the worker ring includes a number of business server nodes that logically form a ring structure.
  • the business server nodes are used to generate transaction information with terminal transactions and send them to the management ring, and perform non-transaction type services allocated by the management server node to which they belong.
  • a block can be understood as a blank piece of paper with a size limit.
  • a block is a file stored on a computer.
  • a block is divided into two parts, which are a "block header” and a "block body".
  • the block header is used to record some descriptive information, and the block body is used to record the "transaction" list.
  • the block header includes six fields, which are the version number, the hash value of the previous block, the Merkel root, the preset difficulty value, the timestamp, and the random number to find.
  • the mining process is to perform a series of conversions, joins, and hash operations on the above six fields, and as the random numbers that are sought one by one continue to be found, finally a random number is successfully found to meet the conditions: after the hash operation Value is smaller than the hash value of the preset difficulty value, then mining is successful.
  • a blockchain program is run on the management ring (Ring 0), which is used to receive all transaction information in the blockchain system and package and record it into the blockchain.
  • the non-mining-qualified management server node in the management ring can also provide non-transaction type services.
  • Non-transaction type services refer to services not related to transactions, such as querying data and so on.
  • the management ring also provides high-performance storage services for storing service information provided within the entire blockchain system.
  • the management server nodes in the management ring only run management logic and do not distinguish specific services (services are distinguished by numbers), thereby improving the scalability of the entire blockchain system.
  • the worker ring (Ring 1) is composed of a large number of servers, which are good resource providers and data forwarders in the network. They are allocated in an address space and mapped to different Unity (ie business server nodes) in the worker ring. Multiple Unitys in the worker ring logically form a ring structure.
  • each Unity in the worker ring is composed of 6-32 servers, and each Unity server is both a shard server, an index server, and a resource server.
  • the sharding server stores the sharding query table, which can query the address of the index server closest to the resource; the indexing server stores the query table in the group, and can retrieve the address of the resource server; the resource server provides resources such as calculation and storage.
  • the worker ring can generate transaction information.
  • the management server node in the management ring responds to the terminal's transaction application and allocates the transaction application to each business server node it manages to process and generate transaction information.
  • the business server node in the worker ring is also used to perform non-transaction type services assigned by the management server node.
  • several service server nodes in the worker ring are divided into several shards, and the management server manages one or more shards; each shard is sent to the management server to which it belongs at a fixed time interval.
  • the management server node on the management ring corresponds to one or more shards on the management worker ring, and stores all index information on the shard.
  • Each shard on the worker ring synchronizes the shard information upward (to the management ring) at a fixed time interval.
  • each shard includes Service server nodes, where N is the number of service server nodes in the worker ring.
  • N is the number of service server nodes in the worker ring.
  • the outer ring worker ring of the system is composed of 256 "Unity" named S1, S2, ..., S256. It can be divided into 16 fragments GROUP1, GROUP2, ..., GROUP16, and each fragment has 16 Unity.
  • the management server node delivers messages to each business server node it manages in a loosely coupled manner.
  • the dependency between the worker ring and the management ring is reduced.
  • the blockchain system further includes an origin for characterizing the beginning of the blockchain.
  • the origin, worker ring, and management ring constitute a complete blockchain system.
  • the topology of the blockchain system is also called the 2.1-ring topology.
  • the revenue expectation of the management server node in the management ring is far greater than the revenue expectation of the business server node in the worker ring, so that the business server node in the worker ring can enter the management ring to obtain higher returns.
  • the original committee explained as follows.
  • the so-called distribution of benefits between nodes refers to how the transaction costs between the management server nodes in the management ring and the business server nodes in the worker ring are allocated during a packaging cycle. It is assumed that both transaction fees and mining rewards are issued in the form of tokens (ABC, AME Blockchain Coin). Assuming that mining can successfully obtain M ABCs, all transaction costs in a packaging cycle are T ABCs, the management ring has N 1 nodes, and the worker ring has N 2 nodes. The transaction costs are evenly distributed to the management ring and the worker ring. Then:
  • Em (M + T / 2) / N 1 ;
  • Em 2M / N 1 ;
  • the upper limit of N 1 is 100, and N 1 ⁇ N 2 , so there is Em >> Ew, that is, the revenue expectation of the management server node in the management ring is much larger than the revenue expectation of the business server node in the worker ring. Therefore, for profit-seeking purposes, the business server node in the worker ring must hope to enter the management ring in order to obtain higher returns.
  • node management method The specific implementation of the node management method is described in detail below in conjunction with the above-mentioned blockchain system. It should be understood that the node management method provided by the embodiment of the present invention is not limited to the topology structure of the above-mentioned blockchain system.
  • a node management method based on a blockchain system includes steps:
  • the management server node in the management ring can respond to the terminal's transaction application and assign a corresponding business server node to the terminal.
  • the management server node assumes the role of manager and is not responsible for specific business, and the business server node is responsible for processing Specific business. After the transaction is successfully created, the transaction information will be broadcast to the network. Within a packaging cycle, each management server node qualified for mining performs mining.
  • the blockchain system will issue a certain amount of token rewards to successful mining server nodes.
  • This setting is mainly based on the following considerations: First, each management server node with mining qualification in the management ring competes for mining and package transactions. Information, paid computing power, and contributed to the blockchain system, it is necessary to give certain rewards; secondly, the combined effect of mining costs and mining rewards will increase the evil cost of server nodes and use server nodes to profit , Restricting server nodes from doing evil; finally, mining of the AME blockchain system only exists in the management ring, and business server nodes in the worker ring and temporary worker ring are not eligible to participate in mining.
  • the AME blockchain system can provide a channel between the worker ring and the management ring.
  • server nodes in the worker ring provide better services, they have the opportunity to compete into the management ring. If the management server nodes in the management ring fail in the competition, It may be demoted into the worker ring. In order to profit, server nodes tend to provide better resources and services in order to enter or continue to exist in the management ring and obtain mining rewards.
  • transaction fees are another source of revenue for server nodes.
  • a transaction fee needs to be paid, and this fee is allocated to the server node providing the service.
  • the purpose of setting transaction fees is to prevent the terminal from abusing the resources of the underlying blockchain, and at the same time, the work of the blockchain nodes can be affirmed and quantified.
  • the transaction fees corresponding to all transaction information in the packaged block are allocated to the management server node.
  • Non-transaction type services are services not related to transactions, such as querying data and so on.
  • server nodes including management server nodes and business server nodes
  • non-transaction behaviors for terminals, that is, services that do not require broadcasting. This part of the service fee is an affirmation of the labor value of the server nodes that provide non-transaction type services.
  • each management server node in the management ring has a profit opportunity at any time, ensures the work enthusiasm of all management server nodes in the management ring, and prevents passive server idle or cheating behaviors of management server nodes without mining qualifications. Since the business server nodes are used to process specific services, the service fee needs to be allocated to each business server node that provides non-transaction type services in order to increase the work enthusiasm of each business server node.
  • allocating a set number of service charges to a management server node providing non-transaction type services and each business server node performing non-transaction type services allocated by the management server node includes:
  • a predetermined proportion of service fees are allocated to management server nodes that provide non-transaction types, and the remaining service fees are allocated to each business server node that performs non-transaction type services allocated by the management server nodes.
  • the service fee is divided into two major parts, one part is allocated to a management server node that provides non-transaction type services, and the other part is allocated by each business server node that is managed.
  • the preset ratio is optionally set to a relatively small value.
  • the allocating the remaining service charges to each business server node that performs non-transaction type services allocated by the management server node includes:
  • the remaining service fee is allocated to each business server node.
  • the remaining service costs are shared equally among the various service server nodes that provide non-transaction type services, so as to ensure that the service charges obtained by each service server node are the same.
  • the allocating the remaining service charges to each business server node that performs non-transaction type services allocated by the management server node includes:
  • the remaining service fees are allocated to each business server node.
  • the remaining transaction costs are allocated according to the contribution of each service server, so as to achieve a more fair distribution scheme and improve the work enthusiasm of the service server node.
  • An embodiment of the present invention also provides another node management method.
  • all service server nodes in a worker ring and all management server nodes in a management ring jointly obtain a transaction fee for the current round.
  • This node management method allocates transaction costs to all management server nodes on the management ring and all business server nodes in the worker ring. In a certain period, all management server nodes on the management ring have participated in the processing and management of transactions, and they should obtain transaction fees based on their contribution. Therefore, this method actually guarantees the management server nodes in all management rings. Regardless of whether or not the management server node participates in mining, this can effectively improve the work enthusiasm of each management server node in the management ring and effectively stimulate all the management server nodes on the management ring to work hard.
  • Each business server node in the worker ring is responsible for specific business logic, performs the work allocated by the management ring, and obtains revenue by providing services and resources (including computing power, bandwidth, and storage).
  • the transaction fee is divided into two major parts, one part is for each management server node in the management ring, and the remaining part is for each business server node in the worker ring.
  • the transaction costs allocated to the management ring are much larger than the transaction costs allocated to the worker ring, that is, the preset ratio is large.
  • the preset ratio is 80%
  • the above allocation method is to allocate 80% of the transaction costs to the management ring, and the remaining 20% of the transaction costs to the worker ring.
  • the management server nodes with mining qualifications in this round and the management server nodes without mining qualifications in this round jointly obtain a preset percentage of transaction costs, including:
  • the server node and the management server node that is not qualified for mining this round share the transaction fees of a preset ratio.
  • This method divides the preset proportion of transaction costs according to the number of management servers in the management ring, so whether the management server node is successfully mined, or whether the management server node is qualified for mining in this round, it can be obtained Part of the transaction costs, and get the same amount of transaction costs.
  • the present invention does not limit how the preset proportion of transaction costs are allocated among the management server nodes.
  • the preset proportion of transaction costs may also be allocated according to the contribution of each management server.
  • the business server nodes managed by the respective management server nodes with mining qualifications in the current round and the business server nodes managed by the management server nodes without mining qualifications in this round jointly obtain the remaining transaction fees, including :
  • the business server nodes managed by each management server node qualified for mining in this round and the business server nodes managed by each management server node not qualified for mining in this round split the remaining transaction costs equally.
  • a preset proportion of transaction costs is evenly divided according to the number of business servers in the worker ring. Each business server node in the worker ring can get a part of the transaction costs, and the amount of transaction costs is the same.
  • the present invention also provides a node management device based on a blockchain system.
  • a node management device based on a blockchain system.
  • a node management device based on a blockchain system the blockchain system includes:
  • the management ring includes a number of management server nodes that logically form a ring structure.
  • the management server nodes are used to package the received transaction information into blocks in the form of mining and record them in the blockchain to provide non-transaction type services.
  • the worker ring includes a number of business server nodes that logically form a ring structure.
  • the business server nodes are used to generate transaction information with terminal transactions and send them to the management ring, and perform non-transaction type services allocated by the management server node to which they belong;
  • the node management device includes:
  • a first allocation module 41 configured to allocate a preset number of mining rewards to a management server node that has successfully mined, and a transaction fee corresponding to all transaction information recorded in the packaged block;
  • the device provided in the above embodiment takes into account the blockchain nodes at all levels, reduces the waste of computing power to a certain extent, gives non-mining nodes a chance to make a profit, and avoids the problem of individual nodes' evil.
  • the second allocation module 42 allocates a preset proportion of service fees to a management server node that provides a non-transaction type, and allocates the remaining services to each business server node that executes the non-transaction type service allocated by the management server node. cost.
  • the second allocation module 42 allocates the remaining service fee to each business server node according to the number of each business server node that performs the non-transaction type service allocated by the management server node.
  • the second allocation module 42 allocates the remaining service fee to each business server node according to the contribution amount of each business server node that executes the non-transaction type service allocated by the management server node.
  • several service server nodes in the worker ring are divided into several shards, and the management server manages one or more shards; each shard is sent to the management server to which it belongs at a fixed time interval.
  • each shard includes Service server nodes, where N is the number of service server nodes in the worker ring.
  • the management server node delivers messages to each business server node it manages in a loosely coupled manner.
  • Each server node (including a management server node and a business server node) in FIG. 2 is equivalent to a server.
  • FIG. 5 it is a schematic structural diagram of a server according to an embodiment of the present invention, including a processor 52 and a storage device 53.
  • the storage device 53 may be used to store an application program 51 and various functional modules.
  • the processor 52 runs the application program 51 stored in the storage device 53 so as to execute various functional applications and data processing of the device.
  • the storage device 53 may be an internal memory or an external memory, or include both an internal memory and an external memory.
  • the internal memory may include a read-only memory, a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory.
  • External storage may include hard disks, floppy disks, ZIP disks, U disks, magnetic tapes, and so on.
  • the storage device disclosed in the present invention includes, but is not limited to, these types of storage devices.
  • the storage device 53 disclosed in the present invention is only an example and not a limitation.
  • the processor 52 is a control center of the server, and uses various interfaces and lines to connect various parts of the entire computer. By running or executing software programs and / or modules stored in the storage device 53, and calling data stored in the storage device, Perform various functions and process data. If the server is a server in the worker ring, the processor 52 receives the transaction application or other service application forwarded by the management ring, and processes the transaction application and other service applications. It also needs to synchronize the generated transaction information to the management ring. . If the server is a server with mining qualifications in the management ring, the processor 52 packages the transaction information into blocks and records them in the blockchain. If the server is a server without a mining qualification in the management ring, the processor 52 sends a non-transaction type service application to the worker ring for processing.
  • steps in the flowchart of the drawings are sequentially displayed in accordance with the directions of the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited, and they can be performed in other orders. Moreover, at least a part of the steps in the flowchart of the drawing may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily performed at the same time, but may be performed at different times. The execution order is also It is not necessarily performed sequentially, but may be performed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
  • the functional units in the embodiments of the present invention may be integrated into one processing module, or each of the units may exist separately physically, or two or more units may be integrated into one module.
  • the above integrated modules may be implemented in the form of hardware or software functional modules.

Abstract

本发明提供一种基于区块链系统的节点管理方法、装置和存储介质,以解决现有方式存在的服务器节点易通过作弊获利的技术问题。所述的方法包括步骤:向挖矿成功的管理服务器节点分配预设数目的挖矿奖励,以及打包的区块内记录的所有交易信息对应的交易费用;向提供非交易类型服务的管理服务器节点以及执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配设定数量的服务费用。本发明实施例能够敦促参与的各方服务器节点提供更好的服务,防止作弊获利的行为出现。

Description

基于区块链系统的节点管理方法、装置和存储介质 技术领域
本发明涉及计算机技术领域,具体而言,本发明涉及一种基于区块链系统的节点管理方法、装置和存储介质。
背景技术
在目前的区块链系统中,服务器节点进行工作和服务的目的在于获取挖矿奖励,导致部分算力被浪费在无意义的哈希运算上。基于趋利的属性,服务器节点会想尽办法获取更多奖励,当找到一个比挖矿更具有性价比的方式时,服务器节点便会倾向于用作弊的手段获取更高的利益。从技术手段检测并处理这些作恶行为是可行的,但是并不解决根本问题。
发明内容
本发明针对现有方式存在的服务器节点易通过作弊获利的缺点,提出一种基于区块链系统的节点管理方法、装置和存储介质,以利用强激励的刺激,敦促参与的各方服务器节点提供更好的服务,防止作弊获利的行为出现。
本发明的实施例根据第一个方面,提供了一种基于区块链系统的节点管理方法,所述区块链系统包括:
管理环,包括在逻辑上构成环状结构的若干管理服务器节点,所述管理服务器节点用于以挖矿形式将接收的交易信息打包成区块并记录到区块链中,提供非交易类型服务,以及对工人环中一个或者多个业务服务器节点进行管理;
工人环,包括在逻辑上构成环状结构的若干业务服务器节点,所述业务服务器节点用于与终端交易产生交易信息并发送给管理环,以及执行所属管理服务器节点分配的非交易类型服务;
所述节点管理方法包括:
向挖矿成功的管理服务器节点分配预设数目的挖矿奖励,以及打包的区块内记录的所有交易信息对应的交易费用;
向提供非交易类型服务的管理服务器节点以及执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配设定数量的服务费用。
在一个实施例中,所述向提供非交易类型服务的管理服务器节点以及执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配设定数量的服务费用,包括:
向提供非交易类型的管理服务器节点分配预设比例的服务费用,向执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配剩余的服务费用。
在一个实施例中,所述向执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配剩余的服务费用,包括:
按照执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点的数量,向所述各个业务服务器节点分配剩余的服务费用。
在一个实施例中,所述向执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配剩余的服务费用,包括:
按照执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点的贡献量大小,向所述各个业务服务器节点分配剩余的服务费用。
在一个实施例中,所述工人环中的若干业务服务器节点被划分为若干分片,所述管理服务器对一个或者多个分片进行管理;每个分片以固定时间间隔向所属的管理服务器节点同步所在分片信息,其中,所述分片信息包括交易信息。
在一个实施例中,每个分片包括
Figure PCTCN2018097651-appb-000001
个业务服务器节点,其中,N为所述工人环中业务服务器节点的数量。
在一个实施例中,所述管理服务器节点通过松耦合的方式向其管理的各个业务服务器节点传递消息。
在一个实施例中,所述区块链系统还包括用于表征区块链开始的原点。
本发明的实施例根据第二个方面,还提供了一种基于区块链系统的节点管理装置,所述区块链系统包括:
管理环,包括在逻辑上构成环状结构的若干管理服务器节点,所述管理服务器节点用于以挖矿形式将接收的交易信息打包成区块并记录到区块链中,提供非交易类型服务,以及对工人环中一个或者多个业务服务器节点进行管理;
工人环,包括在逻辑上构成环状结构的若干业务服务器节点,所述业务服务器节点用于与终端交易产生交易信息并发送给管理环,以及执行所属管理服务器节点分配的非交易类型服务;
所述节点管理装置包括:
第一分配模块,用于向挖矿成功的管理服务器节点分配预设数目的挖矿奖励,以及打包的区块内记录的所有交易信息对应的交易费用;
第二分配模块,用于向提供非交易类型服务的管理服务器节点以及执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配设定数量的服务费用。
本发明的实施例根据第三个方面,还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述任意一项所述的基于区块链系统的节点管理方法。
上述的基于区块链系统的节点管理方法、装置和存储介质,挖矿奖励属于挖矿成功的管理服务器节点,但是相较于现有技术中由于无挖矿资格的管理服务器节点得不到利益而导致的管理服务器节点通过作弊获利行为的出现,本方案通过分配服务费用给本轮无挖矿资格的管理服务器节点以及执行所述管理服务器分配的非交易类型服务的各个业务服务器节点的方式,兼顾了各层次的服务器节点,保证了各个服务器节点在任何时刻都有收益机会,一定程度上减少了算力的浪费,从而预防了无挖矿资格的服务器节点消极怠工或者作弊行为。
本发明附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本发明的实践了解到。
附图说明
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:
图1为本发明一个实施例的由终端和区块链系统所构成的硬件环境示意图;
图2为本发明一个实施例的区块链系统的结构示意图;
图3为本发明一个实施例的基于区块链系统的节点管理方法的流程示意图;
图4为本发明一个实施例的基于区块链系统的节点管理装置的结构示意图;
图5为本发明一个实施例的服务器的结构示意图。
具体实施方式
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。
有必要先对本发明的研究背景进行如下的先导性说明。
通常来讲,在以往的区块链项目中,挖矿成功的服务器节点会获得挖 矿奖励,并以代币的形式发放至节点账户中。比如,以太坊的区块链节点挖矿成功可以获得5个新以太币的奖励。但是,挖矿成功获得奖励并不是区块链的内生规则,而是一种经济激励的社会学手段。例如,目前比特币挖矿成功会获得12.5个比特币的奖励,但是比特币总量在2140年之后将达到上限2100万,在此之后矿工将无法获得挖矿奖励,矿工的收益来源将只有交易费用。再比如,瑞波协议(Ripple)中,服务器节点不需要、也不能挖矿,自然无法获得挖矿奖励。
如上所述,挖矿收益归属记账成功的服务器节点,也即是挖矿成功的服务器节点。另外,交易费用也全部发放给挖矿成功的服务器节点。即某一时期产生的所有交易费用(即一个区块内记录的交易),伴随挖矿的奖励一起,发放给打包成功出区块的服务器节点。也就是说,挖矿成功的服务器节点除了拿到挖矿奖励之外,还拿到了同时期全部的交易费用,而其余的服务器节点均无法获得交易费用奖励。
对于参与了竞争挖矿的服务器节点来说,没有竞争到区块,得不到交易费用奖励是有心理预期的。但是,这种奖励方式使得无挖矿资格的节点在本周期内,根本没有获得交易费用奖励的希望。既然没有得到交易费用的可能性,就容易导致无挖矿资格的节点消极怠工或者作弊行为,影响服务器节点的工作积极性。
本发明实施例以AME区块链系统为例,利用强激励的刺激,敦促参与各方提供更好的服务,防止作弊获利的行为出现。下面结合附图对本发明的具体实施方式进行详细介绍。
本发明实施例提供的基于区块链系统的节点管理方法可以应用于如图1所示的由终端11和区块链系统12所构成的硬件环境中。如图1所示,终端11和区块链系统12通过网络进行连接,本发明实施例提供的基于区块链系统的节点管理方法可以在区块链系统所包含的服务器中执行。终端11向区块链系统12发送交易申请或者非交易类型的服务申请,区块链系统12中包含的服务器用于响应终端11发送的交易申请或者非交易类型的服务申请,对该交易申请或者非交易类型的服务申请进行处理,并将产生的交易信息打包成区块并记录在区块链中。
AME(Amoeba,阿米巴)技术平台是一个基于区块链技术的、安全的、自管理的去中心分布式基础设施和应用平台。其中,区块链技术是AME技术平台的基础组成部分,它采用“2.1圈”的网络拓扑结构设计,对参与区块链系统的节点服务器进行管理,将管理逻辑和业务逻辑分开,从而实现了灵活的可扩展去中心P2P(Peer to Peer,对等网络)系统方案。
如图2所示,为一实施例的区块链系统的示意图。所述区块链系统包括:
管理环,包括在逻辑上构成环状结构的若干管理服务器节点,所述管理服务器节点用于以挖矿形式将接收的交易信息打包成区块并记录到区块链中,提供非交易类型服务,以及对工人环中一个或者多个业务服务器节点进行管理;
工人环,包括在逻辑上构成环状结构的若干业务服务器节点,所述业务服务器节点用于与终端交易产生交易信息并发送给管理环,以及执行所属管理服务器节点分配的非交易类型服务。
区块可以理解为一张空白纸,有大小限制。一个区块就是存在电脑上的一个文件。一个区块分为两部分,分别是“区块头”和“区块体”,其中区块头用来记录一些说明信息,而区块体是用来记录“交易”的列表。区块头包括六个字段,分别是版本号、前一区块的哈希值、梅克尔根、预设的难度值、时间戳、要寻找的随机数。挖矿过程就是对以上这六个字段进行一系列的转换、连接和哈希运算,并随着不断一个一个试要寻找的随机数,最后成功找到一个随机数满足条件:经过哈希运算后的值,比预设难度值的哈希值小,那么挖矿成功。
管理环(Ring 0)上运行区块链程序,用于接收区块链系统中的所有交易信息并进行打包记录到区块链中。管理环中的无挖矿资格的管理服务器节点还可以提供非交易类型服务,非交易类型服务指的是与交易无关的服务,例如查询数据等等。进一步的,管理环上还提供高性能的存储服务,用于保存整个区块链系统内提供的服务信息。原则上,管理环中管理服务器节点只运行管理逻辑,不区分具体业务(业务以编号作为区分),从而提高整个区块链系统的可扩展性。
工人环(Ring 1)是由数量众多的服务器构成,这些服务器是网络中良好的资源提供者和数据转发者。它们被分配在一个地址空间内,映射到工人环不同的Unity(也即业务服务器节点)上。工人环的多个Unity在逻辑上构成了一个环状结构。一般情况下,工人环的每个Unity是由6--32台服务器组成,每台Unity服务器既是分片服务器,也是索引服务器,也是资源服务器。分片服务器保存分片查询表,可以查询到距离资源最近的索引服务器地址;索引服务器存储组内查询表,可以检索到资源服务器的地址;资源服务器提供计算,存储等资源。另外,工人环可以产生交易信息,具体的,管理环中的管理服务器节点响应终端的交易申请,将该交易申请分配给其管理的各个业务服务器节点进行处理,产生交易信息。工人环中的业务服务器节点还用于执行管理服务器节点分配的非交易类型服务。
在一个实施例中,所述工人环中的若干业务服务器节点被划分为若干分片,所述管理服务器对一个或者多个分片进行管理;每个分片以固定时间间隔向所属的管理服务器节点同步所在分片信息,其中,所述分片信息包括交易信息等。管理环上管理服务器节点对应管理工人环上的一个或多个分片(group),保存该分片上的所有索引信息。工人环上的每个分片以固定时间间隔向上(向管理环)同步所在分片信息。
在一个实施例中,每个分片包括
Figure PCTCN2018097651-appb-000002
个业务服务器节点,其中,N为所述工人环中业务服务器节点的数量。例如,系统外圈工人环由256个“Unity”组成,命名为S1、S2、……、S256。可分为16个分片GROUP1、GROUP2、……、GROUP16,每个分片有16个Unity。
在一个实施例中,所述管理服务器节点通过松耦合的方式向其管理的各个业务服务器节点传递消息。采用松耦合的方式,减低了工人环和管理环之间的依赖。
在一个实施例中,所述区块链系统还包括用于表征区块链开始的原点。原点、工人环和管理环构成了完整的区块链系统,该区块链系统的拓扑结构也被称之为2.1圈拓扑结构。
结合上述区块链系统,首先对管理环中管理服务器节点的收益期望远 远大于工人环中业务服务器节点的收益期望,从而可以促使工人环中业务服务器节点进入管理环以获取更高的收益的原委进行如下说明。
所谓节点间的利益分配,指的是在一个打包周期内,管理环中管理服务器节点和工人环中业务服务器节点之间的交易费用如何分配。假设交易费用和挖矿奖励的均是以代币(ABC,AME Blockchain Coin)的形式进行发放。假设挖矿成功可获得M个ABC,一个打包周期内所有的交易费用为T个ABC,管理环有N 1个节点,工人环有N 2个节点,交易费用平均分配到管理环和工人环,那么:
管理环中管理服务器节点的收益期望Em=(M+T/2)/N 1
工人环中业务服务器节点的收益期望Ew=T/2N 2
令T=2M,即挖矿奖励是同时期打包进区块交易总费用的1/2,则上述公式变形为:
管理环中管理服务器节点的收益期望Em=2M/N 1
工人环中业务服务器节点的收益期望Ew=M/N 2
其中,N 1的上限为100,且N 1<<N 2,因此有Em>>Ew,即管理环中管理服务器节点的收益期望远远大于工人环中业务服务器节点的收益期望。因此,出于逐利的目的,工人环中业务服务器节点一定希望进入管理环,以获取更高的收益。
下面结合上述的区块链系统,对节点管理方法的具体实施方式进行详细介绍。应当理解的是,本发明实施例所提供的节点管理方法并不限制于上述区块链系统的拓扑结构。
如图3所示,在一个实施例中,一种基于区块链系统的节点管理方法,包括步骤:
S31、向挖矿成功的管理服务器节点分配预设数目的挖矿奖励,以及打包的区块内记录的所有交易信息对应的交易费用。
在区块链中,管理环中管理服务器节点可以响应终端的交易申请,并给终端分配相应的业务服务器节点,管理服务器节点承担了管理者的角色,并不负责具体业务,业务服务器节点负责处理具体业务。交易被成功创建后,交易信息就会被广播到网络中。在一个打包周期内,具有挖矿资格的 各个管理服务器节点进行挖矿。
区块链系统会对挖矿成功的管理服务器节点发放一定量的代币奖励,这个设定主要是基于如下考虑:首先,管理环中具有挖矿资格的各个管理服务器节点竞争挖矿,打包交易信息,付出了算力,为区块链系统做出了贡献,需要给予一定的奖励;其次,挖矿成本和挖矿奖励的共同作用,会提升服务器节点作恶成本,利用服务器节点逐利的行为,限制服务器节点作恶;最后,AME区块链系统的挖矿只存在于管理环内,工人环和临时工环内的业务服务器节点是没有资格参与挖矿的。AME区块链系统可以提供工人环和管理环之间的通道,工人环中业务服务器节点如果提供了更好的服务,有机会竞争进入管理环,管理环中管理服务器节点如果在竞争中失败,则有可能被降级进入工人环。服务器节点为了逐利,倾向于提供更好的资源和服务,以便进入或者持续存在于管理环,获得挖矿奖励。
除了挖矿奖励,交易费用是服务器节点的另一个收益来源。当终端发起一笔交易时,需要支付一笔交易费用,这笔费用被分配给为其提供服务的服务器节点。设置交易费用的目的是防止终端滥用底层区块链的资源,同时也可以肯定和量化区块链节点的工作。当一个管理服务器节点挖矿成功时,除了为其分配挖矿奖励,还将打包区块内所有交易信息所对应的交易费用分配给该管理服务器节点。
S32、向提供非交易类型服务的管理服务器节点以及执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配设定数量的服务费用。
非交易类型的服务是与交易无关的服务,例如查询数据等等。考虑到除了交易这种全网广播的服务行为,服务器节点(包括管理服务器节点和业务服务器节点)还可以为终端提供非交易行为,即无需广播的服务。这部分服务费用是对提供非交易类型服务的服务器节点劳动价值的肯定,即使管理环中管理服务器节点在本轮打包过程中没有资格挖矿,但是依然可以通过工作获取一定的收益,这就保证了管理环中各个管理服务器节点在任何时刻都有收益机会,保证了管理环所有管理服务器节点的工作积极性,预防无挖矿资格的管理服务器节点消极怠工或者作弊行为。由于处理具体 业务的是业务服务器节点,因此,还需要将服务费用分配给提供非交易类型服务的各个业务服务器节点,以提高各个业务服务器节点的工作积极性。
在一个实施例中,所述向提供非交易类型服务的管理服务器节点以及执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配设定数量的服务费用,包括:
向提供非交易类型的管理服务器节点分配预设比例的服务费用,向执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配剩余的服务费用。
本实施例中,将服务费用分为两个大部分,一部分分配给提供非交易类型服务的管理服务器节点,另一部分由管理的各个业务服务器节点分配。考虑到具体处理业务的是业务服务器节点,因此,可选的,预设比例设置为一个比较小的数值。
在一个实施例中,所述向执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配剩余的服务费用,包括:
按照执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点的数量,向所述各个业务服务器节点分配剩余的服务费用。
本实施例通过将剩余的服务费用平分给提供非交易类型服务的各个业务服务器节点,确保各个业务服务器节点得到的服务费用是一样的。
在一个实施例中,所述向执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配剩余的服务费用,包括:
按照执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点的贡献量大小,向所述各个业务服务器节点分配剩余的服务费用。
本实施例将剩余的交易费用按照各个业务服务器的贡献量进行分配,从而实现更为公平的分配方案,提高业务服务器节点的工作积极性。
本发明实施例还提供另一种节点管理方法,在该节点管理方法中,工人环中的所有业务服务器节点和管理环中所有管理服务器节点共同获取本轮的交易费用。
该种节点管理方法是将交易费用分配给管理环上的所有管理服务器节点以及工人环中所有业务服务器节点。在某一时期内,管理环上所有管 理服务器节点都参与了交易的处理和管理,理应根据自己的贡献量获取交易费用,因此该种方式实际上对所有的管理环中的管理服务器节点进行保底的奖励刺激,而不管该管理服务器节点是否参与了挖矿,这样做能够有效的提升管理环中各个管理服务器节点的工作积极性,有效的刺激管理环上所有的管理服务器节点都努力工作。工人环中的各个业务服务器节点负责具体的业务逻辑,执行由管理环分配的工作,通过提供服务和资源(包括算力、带宽和存储等)获取收益。如前文所述,工人环中的业务服务器节点是不参与挖矿的,因此为了保证工人环中业务服务器节点的工作积极性,交易费用不仅需要分配给管理环中的各个管理服务器节点,还需要分配给工人环中的各个业务服务器节点。
可选的,本轮具有挖矿资格的各个管理服务器节点和本轮无挖矿资格的管理服务器节点共同获取预设比例的交易费用;本轮具有挖矿资格的各个管理服务器节点各自管理的业务服务器节点和本轮无挖矿资格的管理服务器节点各自管理的业务服务器节点共同获取剩余的交易费用。
上述实施例中,将交易费用分成两个大部分,一部分给管理环中的各个管理服务器节点,剩下一部分给工人环中的各个业务服务器节点。一般情况下,分配给管理环的交易费用要远大于分配给工人环的交易费用,也即是预设比例较大。可选的,预设比例为80%,则上述分配方式为将80%的交易费用分配给管理环,剩余20%的交易费用分配给工人环。
在一个实施例中,所述本轮具有挖矿资格的各个管理服务器节点和本轮无挖矿资格的管理服务器节点共同获取预设比例的交易费用,包括:本轮具有挖矿资格的各个管理服务器节点和本轮无挖矿资格的管理服务器节点平分预设比例的交易费用。该种方式将预设比例的交易费用按照管理环中的管理服务器的数量进行平分,那么无论管理服务器节点是否挖矿成功,也无论管理服务器节点在本轮中是否有挖矿资格,均可以得到一部分交易费用,并且得到的交易费用数量一样。
应当理解的是,本发明并不对预设比例的交易费用如何在各个管理服务器节点中分配进行限定,例如,还可以将预设比例的交易费用按照各个管理服务器的贡献量进行分配。
在一个实施例中,所述本轮具有挖矿资格的各个管理服务器节点各自管理的业务服务器节点和本轮无挖矿资格的管理服务器节点各自管理的业务服务器节点共同获取剩余的交易费用,包括:本轮具有挖矿资格的各个管理服务器节点各自管理的业务服务器节点和本轮无挖矿资格的管理服务器节点各自管理的业务服务器节点平分剩余的交易费用。该种方式将预设比例的交易费用按照工人环中的业务服务器的数量进行平分,工人环中的各个业务服务器节点均可以得到一部分交易费用,并且得到的交易费用数量一样。
应当理解的是,本发明并不对剩余的交易费用如何在各个业务服务器节点中分配进行限定,例如,还可以将剩余的交易费用按照各个业务服务器的贡献量进行分配。
基于同一发明构思,本发明还提供一种基于区块链系统的节点管理装置,下面结合附图对本发明装置的具体实施方式进行详细描述。
如图4所示,在一个实施例中,一种基于区块链系统的节点管理装置,所述区块链系统包括:
管理环,包括在逻辑上构成环状结构的若干管理服务器节点,所述管理服务器节点用于以挖矿形式将接收的交易信息打包成区块并记录到区块链中,提供非交易类型服务,以及对工人环中一个或者多个业务服务器节点进行管理;
工人环,包括在逻辑上构成环状结构的若干业务服务器节点,所述业务服务器节点用于与终端交易产生交易信息并发送给管理环,以及执行所属管理服务器节点分配的非交易类型服务;
所述节点管理装置包括:
第一分配模块41,用于向挖矿成功的管理服务器节点分配预设数目的挖矿奖励,以及打包的区块内记录的所有交易信息对应的交易费用;
第二分配模块42,用于向提供非交易类型服务的管理服务器节点以及执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配设定数量的服务费用。
上述实施例提供的装置兼顾了各层次的区块链节点,一定程度上减少了算力的浪费,给予了非挖矿节点盈利的机会,避免了个别节点的作恶问题。
在一个实施例中,第二分配模块42向提供非交易类型的管理服务器节点分配预设比例的服务费用,向执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配剩余的服务费用。
在一个实施例中,第二分配模块42按照执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点的数量,向所述各个业务服务器节点分配剩余的服务费用。
在一个实施例中,第二分配模块42按照执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点的贡献量大小,向所述各个业务服务器节点分配剩余的服务费用。
在一个实施例中,所述工人环中的若干业务服务器节点被划分为若干分片,所述管理服务器对一个或者多个分片进行管理;每个分片以固定时间间隔向所属的管理服务器节点同步所在分片信息,其中,所述分片信息包括交易信息。
在一个实施例中,每个分片包括
Figure PCTCN2018097651-appb-000003
个业务服务器节点,其中,N为所述工人环中业务服务器节点的数量。
在一个实施例中,所述管理服务器节点通过松耦合的方式向其管理的各个业务服务器节点传递消息。
在一个实施例中,所述区块链系统还包括用于表征区块链开始的原点。
上述基于区块链系统的节点管理装置的其它技术特征与上述基于区块链系统的节点管理方法的技术特征相同,在此不予赘述。
本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述任意一项所述的服务器集群系统的节点管理方法。其中,所述存储介质包括但不限于任何类型的盘(包括软盘、硬盘、光盘、CD-ROM、和磁光盘)、ROM(Read-Only Memory,只读存储器)、RAM(Random Access Memory,随即存储器)、EPROM(Erasable  Programmable Read-Only Memory,可擦写可编程只读存储器)、EEPROM(Electrically Erasable Programmable Read-Only Memory,电可擦可编程只读存储器)、闪存、磁性卡片或光线卡片。也就是,存储介质包括由设备(例如,计算机)以能够读的形式存储或传输信息的任何介质。可以是只读存储器,磁盘或光盘等。
图2中的每一个服务器节点(包括管理服务器节点和业务服务器节点)相当于一个服务器。如图5所示,为本发明一实施例提供的服务器的结构示意图,包括处理器52、存储装置53等器件。本领域技术人员可以理解,图5示出的结构器件并不构成对所有服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件。存储装置53可用于存储应用程序51以及各功能模块,处理器52运行存储在存储装置53的应用程序51,从而执行设备的各种功能应用以及数据处理。存储装置53可以是内存储器或外存储器,或者包括内存储器和外存储器两者。内存储器可以包括只读存储器、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦写可编程ROM(EEPROM)、快闪存储器、或者随机存储器。外存储器可以包括硬盘、软盘、ZIP盘、U盘、磁带等。本发明所公开的存储装置包括但不限于这些类型的存储装置。本发明所公开的存储装置53只作为例子而非作为限定。
处理器52是服务器的控制中心,利用各种接口和线路连接整个电脑的各个部分,通过运行或执行存储在存储装置53内的软件程序和/或模块,以及调用存储在存储装置内的数据,执行各种功能和处理数据。如果服务器为工人环中的服务器,则该处理器52接收管理环转发的交易申请或者其他服务申请,并对该交易申请和其它服务申请进行处理,还需要将产生的交易信息等同步至管理环。如果服务器为管理环中具有挖矿资格的服务器,则该处理器52对交易信息打包成区块并记录在区块链中。如果服务器为管理环中无挖矿资格的服务器,则该处理器52将非交易类型的服务申请下发给工人环进行处理。
应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次 显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
应该理解的是,在本发明各实施例中的各功能单元可集成在一个处理模块中,也可以各个单元单独物理存在,也可以两个或两个以上单元集成于一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
以上所述仅是本发明的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。

Claims (10)

  1. 一种基于区块链系统的节点管理方法,其特征在于,所述区块链系统包括:
    管理环,包括在逻辑上构成环状结构的若干管理服务器节点,所述管理服务器节点用于以挖矿形式将接收的交易信息打包成区块并记录到区块链中,提供非交易类型服务,以及对工人环中一个或者多个业务服务器节点进行管理;
    工人环,包括在逻辑上构成环状结构的若干业务服务器节点,所述业务服务器节点用于与终端交易产生交易信息并发送给管理环,以及执行所属管理服务器节点分配的非交易类型服务;
    所述节点管理方法包括:
    向挖矿成功的管理服务器节点分配预设数目的挖矿奖励,以及打包的区块内记录的所有交易信息对应的交易费用;
    向提供非交易类型服务的管理服务器节点以及执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配设定数量的服务费用。
  2. 根据权利要求1所述的基于区块链系统的节点管理方法,其特征在于,所述向提供非交易类型服务的管理服务器节点以及执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配设定数量的服务费用,包括:
    向提供非交易类型的管理服务器节点分配预设比例的服务费用,向执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配剩余的服务费用。
  3. 根据权利要求2所述的基于区块链系统的节点管理方法,其特征在于,所述向执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配剩余的服务费用,包括:
    按照执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点的数量,向所述各个业务服务器节点分配剩余的服务费用。
  4. 根据权利要求2所述的基于区块链系统的节点管理方法,其特征在于,所述向执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配剩余的服务费用,包括:
    按照执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点的贡献量大小,向所述各个业务服务器节点分配剩余的服务费用。
  5. 根据权利要求1所述的基于区块链系统的节点管理方法,其特征在于,所述工人环中的若干业务服务器节点被划分为若干分片,所述管理服务器对一个或者多个分片进行管理;每个分片以固定时间间隔向所属的管理服务器节点同步所在分片信息,其中,所述分片信息包括交易信息。
  6. 根据权利要求5所述的基于区块链系统的节点管理方法,其特征在于,每个分片包括
    Figure PCTCN2018097651-appb-100001
    个业务服务器节点,其中,N为所述工人环中业务服务器节点的数量。
  7. 根据权利要求1所述的基于区块链系统的节点管理方法,其特征在于,所述管理服务器节点通过松耦合的方式向其管理的各个业务服务器节点传递消息。
  8. 根据权利要求1至7任意一项所述的基于区块链系统的节点管理方法,其特征在于,所述区块链系统还包括用于表征区块链开始的原点。
  9. 一种基于区块链系统的节点管理装置,其特征在于,所述区块链系统包括:
    管理环,包括在逻辑上构成环状结构的若干管理服务器节点,所述管理服务器节点用于以挖矿形式将接收的交易信息打包成区块并记录到区块链中,提供非交易类型服务,以及对工人环中一个或者多个业务服务器节点进行管理;
    工人环,包括在逻辑上构成环状结构的若干业务服务器节点,所述业务服务器节点用于与终端交易产生交易信息并发送给管理环,以及执行所属管理服务器节点分配的非交易类型服务;
    所述节点管理装置包括:
    第一分配模块,用于向挖矿成功的管理服务器节点分配预设数目的挖矿奖励,以及打包的区块内记录的所有交易信息对应的交易费用;
    第二分配模块,用于向提供非交易类型服务的管理服务器节点以及执行所述管理服务器节点分配的非交易类型服务的各个业务服务器节点分配设定数量的服务费用。
  10. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1至8中任意一项所述的基于区块链系统的节点管理方法。
PCT/CN2018/097651 2018-07-27 2018-07-27 基于区块链系统的节点管理方法、装置和存储介质 WO2020019344A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/097651 WO2020019344A1 (zh) 2018-07-27 2018-07-27 基于区块链系统的节点管理方法、装置和存储介质
CN201880002402.1A CN109496406A (zh) 2018-07-27 2018-07-27 基于区块链系统的节点管理方法、装置和存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/097651 WO2020019344A1 (zh) 2018-07-27 2018-07-27 基于区块链系统的节点管理方法、装置和存储介质

Publications (1)

Publication Number Publication Date
WO2020019344A1 true WO2020019344A1 (zh) 2020-01-30

Family

ID=65713874

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/097651 WO2020019344A1 (zh) 2018-07-27 2018-07-27 基于区块链系统的节点管理方法、装置和存储介质

Country Status (2)

Country Link
CN (1) CN109496406A (zh)
WO (1) WO2020019344A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110049109B (zh) * 2019-03-26 2022-04-01 湖南天河国云科技有限公司 区块链共享存储的核算方法、系统和计算机可读存储介质
CN109995596A (zh) * 2019-04-11 2019-07-09 李莉莉 一种联盟区块链可视化业务隔离方法
CN110308962B (zh) * 2019-07-04 2022-08-23 明链科技(深圳)有限公司 管理区块链网络的方法、电子设备及介质
CN110503431A (zh) * 2019-08-07 2019-11-26 广州子牛区块链技术有限公司 一种基于区块链技术的个人节点式分红池系统
CN110866046B (zh) * 2019-10-28 2021-04-27 北京大学 一种可扩展的分布式查询方法及装置
CN111784519A (zh) * 2020-07-07 2020-10-16 中国联合网络通信集团有限公司 基于区块链的挖矿奖励方法、系统、计算机设备及介质
CN112561510A (zh) * 2020-12-21 2021-03-26 北京红枣科技有限公司 缴费系统、方法、装置、设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106530083A (zh) * 2016-10-27 2017-03-22 上海亿账通区块链科技有限公司 基于区块链的多链管理方法及系统
CN106682984A (zh) * 2016-10-27 2017-05-17 上海亿账通区块链科技有限公司 基于区块链的交易事务处理方法及系统
CN107180350A (zh) * 2017-03-31 2017-09-19 唐晓领 一种基于区块链的多方共享交易元数据的方法、装置及系统
CN108241926A (zh) * 2017-08-25 2018-07-03 杭州复杂美科技有限公司 授权共识算法的区块链方案

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8229859B2 (en) * 2007-04-19 2012-07-24 Gideon Samid Bit currency: transactional trust tools
CN101677328A (zh) * 2008-09-19 2010-03-24 中兴通讯股份有限公司 一种基于内容分片的多媒体分发系统和方法
US9417977B2 (en) * 2008-12-31 2016-08-16 Sap Se Distributed transactional recovery system and method
WO2016029119A1 (en) * 2014-08-21 2016-02-25 myVBO, LLC Systems and methods for managing alternative currency transactions and optimizing financial rewards
CN106452785B (zh) * 2016-09-29 2019-05-17 财付通支付科技有限公司 区块链网络、分支节点及区块链网络应用方法
CN107896157B (zh) * 2017-08-31 2020-11-03 深圳壹账通智能科技有限公司 黑名单数据交换方法及应用服务器
CN108200203B (zh) * 2018-02-06 2020-11-06 北京奇虎科技有限公司 基于双层网络的区块链系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106530083A (zh) * 2016-10-27 2017-03-22 上海亿账通区块链科技有限公司 基于区块链的多链管理方法及系统
CN106682984A (zh) * 2016-10-27 2017-05-17 上海亿账通区块链科技有限公司 基于区块链的交易事务处理方法及系统
CN107180350A (zh) * 2017-03-31 2017-09-19 唐晓领 一种基于区块链的多方共享交易元数据的方法、装置及系统
CN108241926A (zh) * 2017-08-25 2018-07-03 杭州复杂美科技有限公司 授权共识算法的区块链方案

Also Published As

Publication number Publication date
CN109496406A (zh) 2019-03-19

Similar Documents

Publication Publication Date Title
WO2020019344A1 (zh) 基于区块链系统的节点管理方法、装置和存储介质
KR102611812B1 (ko) 블록체인에 기반한 데이터 처리 방법, 장치, 기기, 저장매체 및 프로그램
JP7114629B2 (ja) ブロックチェーントランザクションの並列検証のためのシステム及び方法
WO2018076759A1 (zh) 基于区块链的多链管理方法、系统、电子装置及存储介质
CN109829718B (zh) 一种基于存储应用场景的区块链多层级构架及其运行方法
CN108805627B (zh) 媒体资源分配方法、装置、系统、介质及设备
CN111061769B (zh) 一种区块链系统的共识方法及相关设备
CN106936899B (zh) 分布式统计分析系统的配置方法及分布式统计分析系统
CN109547527A (zh) 区块链中基于信誉机制的分区快速共识方法
CN109522362A (zh) 基于区块链数据的非完全数据同步方法、系统及设备
US20230283473A1 (en) Computer-implemented systems and methods relating to a binary blockchain comprising a pair of coupled blockchains
WO2023045620A1 (zh) 一种交易数据处理方法、装置、计算机设备以及存储介质
CN105554142B (zh) 消息推送的方法、装置及系统
CN111163148B (zh) 一种区块链系统的共识状态的同步方法及相关设备
US20230009961A1 (en) Graphic-blockchain-orientated sharding storage apparatus and method thereof
CN109510713A (zh) 一种基于区块链的流量共享激励方法
CN113067707B (zh) 基于区块链的数据处理方法、装置、设备及可读存储介质
US20230370285A1 (en) Block-chain-based data processing method, computer device, computer-readable storage medium
WO2022267715A1 (zh) 一种预言机节点筛选方法、装置、存储介质及电子装置
US11354629B1 (en) Controlling initiation of a blockchain election using a burn quota
WO2023022652A2 (zh) 开发方法、控制方法及计算设备
CN110351362A (zh) 数据验证方法、设备及计算机可读存储介质
CN110489227A (zh) 一种资源分配方法、装置、计算机设备和存储介质
CN111932239B (zh) 业务处理方法、装置、节点设备及存储介质
CN113342838A (zh) 基于区块链的数据处理方法、装置、设备及可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18927480

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18927480

Country of ref document: EP

Kind code of ref document: A1