CN112766948B - Block chain-based clearing method, device, equipment and computer storage medium - Google Patents

Block chain-based clearing method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN112766948B
CN112766948B CN202110037567.6A CN202110037567A CN112766948B CN 112766948 B CN112766948 B CN 112766948B CN 202110037567 A CN202110037567 A CN 202110037567A CN 112766948 B CN112766948 B CN 112766948B
Authority
CN
China
Prior art keywords
clearing
sub
order
node
efficiency
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202110037567.6A
Other languages
Chinese (zh)
Other versions
CN112766948A (en
Inventor
黄蓝天
卢道和
陈朝亮
黄叶飞
许林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WeBank Co Ltd
Original Assignee
WeBank Co Ltd
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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN202110037567.6A priority Critical patent/CN112766948B/en
Publication of CN112766948A publication Critical patent/CN112766948A/en
Application granted granted Critical
Publication of CN112766948B publication Critical patent/CN112766948B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06315Needs-based resource requirements planning or analysis
    • 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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Operations Research (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Game Theory and Decision Science (AREA)
  • Educational Administration (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the technical field of financial science (Fintech), which is also applicable to the field of blockchains, and discloses a clearing method based on blockchains, comprising the following steps: acquiring a clearing order of a clearing initiating node, and acquiring a sub-order splitting type of the clearing order and a demand efficiency value of each sub-order of the clearing order; acquiring a clearing efficiency value of each clearing node in the blockchain network and a priority of each clearing node; according to the demand efficiency value, the clearing efficiency value, the sub-order splitting type and the priority, determining target clearing nodes of all sub-orders, clearing the clearing orders through the target clearing nodes, and the clearing initiator is not required to expend a large amount of manpower and material resources to search a new clearing mechanism, so that the matching flexibility of the clearing mechanism is improved; and clearing nodes which meet the clearing requirement of the clearing initiating node as far as possible can be screened out, so that the accuracy of the matching of the clearing nodes is improved.

Description

Block chain-based clearing method, device, equipment and computer storage medium
Technical Field
The present invention relates to the field of financial technology (Fintech), and in particular, to a blockchain-based clearing method, apparatus, device, and computer storage medium.
Background
With the development of computer technology, more and more technologies (big data, blockchain, distributed, artificial intelligence, etc.) are applied in the financial field, and the traditional financial industry is gradually changing to financial technology (Fintech), but due to the requirements of security and universality of the financial industry, higher requirements are also put on the clearing technology based on blockchain.
In general, financial business data are required to be cleared, and the current financial business data clearing is in a fixed mode, namely, a clearing initiator (called a business mechanism) is often only in clearing cooperation with one or more fixed clearing mechanisms, when the clearing requirement of the clearing initiator changes, the clearing mechanism or the clearing mechanisms in fixed cooperation often cannot meet the new clearing requirement of the clearing initiator, the clearing initiator needs to spend a great deal of manpower and material resources to find the new clearing mechanism, and the manual processing has the characteristics of instability and high error rate.
Disclosure of Invention
The invention mainly aims to provide a block chain-based clearing method, a block chain-based clearing device, a block chain-based clearing equipment and a block chain-based clearing initiator computer storage medium, and aims to solve the technical problem of how to improve the matching accuracy of a clearing mechanism and a clearing initiator.
In order to achieve the above object, the present invention provides a blockchain-based clearing method, comprising the steps of:
acquiring a clearing order of a clearing initiating node, and acquiring a sub-order splitting type of the clearing order and a demand efficiency value of each sub-order of the clearing order;
acquiring a clearing efficiency value of each clearing node in the blockchain network and a priority of each clearing node;
and determining a target clearing node of each sub-order according to the demand efficiency value, the clearing efficiency value, the sub-order splitting type and the priority of each clearing node, and clearing the clearing order through the target clearing node.
Optionally, the step of obtaining the priority of each clearing node in the blockchain network includes:
acquiring clearing rate and abnormal frequency corresponding to each clearing node in the blockchain network;
and determining the priority of each clearing node according to the clearing rate and the abnormal frequency.
Optionally, the step of determining the target clearing node of each sub-order according to the demand efficiency value, the clearing efficiency value, the sub-order splitting type and the priority of each clearing node includes:
if the sub-order splitting type is an undetachable type, respectively calculating the difference value between the clearing efficiency value of each clearing node of the first priority and the demand efficiency value of each sub-order to be used as an efficiency difference value;
taking a sub order corresponding to the minimum efficiency difference value of each clearing node of the first priority as a first sub order, and taking a clearing node corresponding to the efficiency difference value as a first target clearing node, wherein the minimum efficiency difference value is greater than or equal to zero;
and if the sum of the demand efficiency values of the first sub orders is smaller than the sum of the demand efficiency values of all the sub orders, performing secondary target node matching on the second sub orders except the first sub orders to obtain corresponding second target clearing nodes until the target node matching on all the sub orders is completed.
Optionally, the step of determining the target clearing node of each sub-order according to the demand efficiency value, the clearing efficiency value, the sub-order splitting type and the priority of each clearing node includes:
If the sub-order splitting type is a splitting type, sorting the clearing efficiency values of the clearing nodes of the first priority according to the size, and sorting the demand efficiency values of the sub-orders according to the size;
comparing the maximum clearing efficiency value with the maximum demand efficiency value, if the maximum clearing efficiency value is smaller than the maximum demand efficiency value, splitting a third sub-order corresponding to the maximum demand efficiency value to obtain a first sub-order and a second sub-order, and determining a clearing node corresponding to the maximum clearing efficiency value as a third target clearing node of the first sub-order, wherein the demand efficiency value of the first sub-order is equal to the maximum clearing efficiency value, and the sum of the demand efficiency values of the first sub-order and the second sub-order is equal to the demand efficiency value of the third sub-order;
comparing the magnitude of the second largest clearing efficiency value with the magnitude of the second largest demand efficiency value, and if the second largest clearing efficiency value is greater than or equal to the second largest demand efficiency value, respectively calculating the difference between the clearing efficiency values of all clearing nodes except the third target clearing node in the first priority and the demand efficiency values of all sub orders except the third sub order as an efficiency difference;
And carrying out target node matching on the sub orders except the first sub order according to the magnitude of the efficiency difference value, and determining target clearing nodes of all the sub orders.
Optionally, the step of performing target node matching on the sub orders except the first sub order according to the magnitude of the efficiency difference value, and determining a target clearing node of each sub order includes:
taking a sub order corresponding to the minimum efficiency difference value of each clearing node of the first priority as a fourth sub order, and taking a clearing node corresponding to the efficiency difference value as a fourth target clearing node, wherein the minimum efficiency difference value is greater than or equal to zero;
and performing secondary target node matching on the fifth sub-order except the first sub-order and the fourth sub-order to obtain a corresponding fifth target clearing node until the target node matching on all the sub-orders is completed, wherein the fifth sub-order comprises the second sub-order.
Optionally, the step of obtaining the clearing efficiency value for each clearing node in the blockchain network includes:
acquiring historical clearing efficiency values of clearing nodes in the blockchain network;
determining a clearing efficiency peak value of a previous day, a clearing efficiency peak value average value of a previous N days, a clearing efficiency peak value of the same year and the same day and a clearing efficiency peak value of the same month and the same day on the ring ratio of each clearing node according to the historical clearing efficiency value;
And determining the clearing efficiency value of each clearing node according to the clearing efficiency peak value of the previous day, the clearing efficiency peak value average value of the previous N days, the clearing efficiency peak value of the same comparison last year and the clearing efficiency peak value of the same comparison last month.
Optionally, the step of clearing the clearing order of the clearing initiating node by the target clearing node includes:
receiving clearing data and a target communication address of the clearing initiating node, determining a first representative node according to a blockchain where the clearing initiating node is located, and determining a second representative node of the blockchain where the target clearing node of the clearing data is located according to the target communication address;
and transmitting the clearing data and the target communication address to the second representative node through the first representative node, so that the second representative node transmits the clearing data to the target clearing node in the target communication address after receiving the clearing data and the target communication address, and the target clearing node can clear the clearing data.
In addition, to achieve the above object, the present invention also provides a block chain based clearing apparatus, including:
The system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a clearing order of a clearing initiating node, and acquiring a sub-order splitting type of the clearing order and a demand efficiency value of each sub-order of the clearing order;
a second obtaining module, configured to obtain a clearing efficiency value of each clearing node in the blockchain network and a priority of each clearing node;
and the target determining module is used for determining target clearing nodes of all the sub orders according to the demand efficiency value, the clearing efficiency value, the sub order splitting type and the priority of all the clearing nodes, and clearing the clearing orders through the target clearing nodes.
In addition, to achieve the above object, the present invention also provides a block chain based clearing apparatus, including: a memory, a processor, and a blockchain-based clearing program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the blockchain-based clearing method as described above.
In addition, to achieve the above object, the present invention also provides a computer storage medium having stored thereon a blockchain-based clearing program which, when executed by a processor, implements the steps of the blockchain-based clearing method as described above.
The method comprises the steps of obtaining a clearing order of a clearing initiating node, and obtaining a sub-order splitting type of the clearing order and a demand efficiency value of each sub-order of the clearing order; acquiring a clearing efficiency value of each clearing node in the blockchain network and a priority of each clearing node; according to the demand efficiency value, the clearing efficiency value, the sub-order splitting type and the priority of each clearing node, determining a target clearing node of each sub-order, and clearing the clearing order through the target clearing node, so that a clearing initiator is not required to expend a large amount of manpower and material resources to find a new clearing mechanism, the matching flexibility of the clearing mechanism is improved, and the labor cost and the time cost are reduced; according to the clearing efficiency value and the priority of the clearing nodes and the sub-order splitting type and the demand efficiency value of the clearing orders, the target clearing nodes are automatically matched for the clearing orders, the clearing demands of the clearing orders on high timeliness requirements can be met, and on the basis of meeting the timeliness requirements, clearing nodes which are matched with clearing requirements of clearing initiating nodes as much as possible can be screened out through priority matching, and clearing nodes with low clearing cost and high clearing channel stability are matched for clearing initiators, so that the accuracy of clearing node matching can be improved.
Drawings
FIG. 1 is a schematic diagram of a block chain based clearing device architecture of a hardware operating environment in accordance with an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of a blockchain-based clearing method of the present invention;
FIG. 3 is a schematic diagram of a communication link according to a third embodiment of the blockchain-based clearing method of the present invention;
FIG. 4 is a schematic diagram of a block chain based clearing device according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a block chain-based clearing device in a hardware running environment according to an embodiment of the present invention.
The clearing device based on the blockchain in the embodiment of the invention can be a PC or a server device, and a Java virtual machine runs on the clearing device.
As shown in fig. 1, the blockchain-based clearing device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the blockchain-based clearing device structure shown in fig. 1 is not limiting of the device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a blockchain-based clearing program may be included in the memory 1005 as one type of computer storage medium.
In the blockchain-based clearing device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be used to invoke the blockchain-based clearing program stored in the memory 1005 and perform operations in the blockchain-based clearing method described below.
Based on the above hardware structure, the embodiment of the block chain based clearing method is provided.
Referring to fig. 2, fig. 2 is a flow chart of a first embodiment of a blockchain-based clearing method of the present invention, the method including:
step S10, acquiring a clearing order of a clearing initiating node, and acquiring a sub-order splitting type of the clearing order and a demand efficiency value of each sub-order of the clearing order;
The data transmission method is applied to the clearing equipment based on the blockchain, and the clearing equipment based on the blockchain can be a terminal, a robot or a PC.
In the prior art, financial business data are usually required to be cleared, and the current financial business data clearing is in a fixed mode, namely, a clearing initiator (called a business mechanism) is usually only required to carry out clearing cooperation with one or more fixed clearing mechanisms, when the clearing requirement of the clearing initiator changes, the clearing mechanism or the fixed cooperation clearing mechanisms are not required to meet the new clearing requirement of the clearing initiator, the clearing initiator needs to spend a great amount of manpower and material resources to search for the new clearing mechanism, the manual processing has the characteristics of instability and high error rate, and the matching mode of the clearing mechanism is not high in accuracy of matching between the manually matched clearing mechanism and the clearing initiator due to a great amount of manual participation, so that the clearing initiator is difficult to match to the optimal clearing mechanism.
Under the background, according to the clearing efficiency value and the priority of the clearing nodes and the sub-order splitting type and the demand efficiency value of the clearing orders, the clearing nodes are matched with the target clearing nodes for the clearing orders, a clearing initiator does not need to consume a large amount of manpower and material resources to search a new clearing mechanism, the matching flexibility of the clearing mechanism is improved, and the labor cost and the time cost are reduced; according to the clearing efficiency value and the priority of the clearing nodes and the sub-order splitting type and the demand efficiency value of the clearing orders, the target clearing nodes are matched for the clearing orders, the clearing requirement of the real-time clearing orders on high timeliness requirements can be met, and on the basis of meeting the timeliness requirements, clearing nodes which are matched with clearing requirements of clearing initiating nodes as much as possible can be screened out through priority matching, and clearing nodes with low clearing cost and high clearing channel stability are matched for clearing initiators, so that the accuracy of clearing node matching can be improved.
In this embodiment, when the clearing service is required, the clearing initiation node may initiate a clearing order to the clearing device based on the blockchain, where the order information of the clearing order includes a clearing type of the clearing order, and the clearing type includes a real-time clearing order, where the real-time clearing refers to that the merchant should pay to the merchant account immediately while the customer confirms payment. When the clearing equipment based on the block chain acquires the clearing order of the clearing initiation node, the clearing type of the clearing order can be determined according to the order information of the clearing order, and then a corresponding clearing mechanism matching method is adopted according to the clearing type. If the clearing type of the clearing order is a real-time clearing order, the steps are performed: the sub-order splitting type of the clearing order and the demand efficiency value of each sub-order of the clearing order are obtained, and the clearing efficiency value of each clearing node and the priority of each clearing node in the blockchain network are obtained, so that the target clearing node of each sub-order is determined according to the demand efficiency value, the clearing efficiency value, the sub-order splitting type and the priority of each clearing node. Where a clearing node refers to an organization capable of providing clearing services.
Of course, the clearing type may also include a final daily clearing, which means that on the next day when the customer confirms payment, the merchant should pay to the merchant account, and the timeliness requirement of the real-time clearing order is far higher than that of the final daily clearing order, so that the timeliness requirement of the final daily clearing order can be met by a scheme capable of meeting the timeliness requirement of the real-time clearing order, and the scheme can also be used for matching target clearing nodes of the final daily clearing order.
When matching a clearing node for a clearing order, a sub-order split type of the clearing order and a demand efficiency value for each sub-order need first be determined. The sub-order splitting type is an order inherent attribute set by a clearing initiating node for a clearing order according to actual needs, and comprises an undetachable type and a detachable type, wherein the undetachable type refers to that all clearing data of a certain sub-order of the clearing order must be cleared by one clearing node, and the clearing data in the sub-order cannot be split into a plurality of clearing nodes for clearing; the splittable type may be reversed, and the clearing data for one sub-order in the splittable type of clearing order may be settled by one or more clearing nodes.
The demand efficiency value of each sub-order may be set by the clearing initiation node according to the clearing requirement of the sub-order, or may be set by the blockchain-based clearing system according to the historical clearing efficiency value of the provider corresponding to each sub-order, which is not particularly limited in this embodiment. The efficiency value refers to the number of transactions (TPS, transactions Per Second) transmitted by the server per second, i.e., the number of transactions processed by the server per second.
Step S20, acquiring the clearing efficiency value of each clearing node and the priority of each clearing node in the blockchain network;
in this embodiment, the plurality of clearing initiation nodes and clearing nodes together form a blockchain network, and in addition to the sub-order splitting type of the clearing order and the required efficiency value of each sub-order of the clearing order, the clearing efficiency value of each clearing node in the blockchain network and the priority of each clearing node need to be acquired.
The priority of the clearing node is determined according to the performance of the clearing node, specifically according to the clearing rate and the abnormal frequency of the clearing node. When matching clearing nodes for clearing orders, the priority of the first priority is higher than the second priority, the higher the priority of the clearing nodes, the earlier the matching.
Further, the step of obtaining a clearing efficiency value for each clearing node in the blockchain network includes:
step a1, acquiring historical clearing efficiency values of clearing nodes in a blockchain network;
step a2, determining a clearing efficiency peak value of a previous day, a clearing efficiency peak value average value of a previous N days, a clearing efficiency peak value of the same year and the same day and a clearing efficiency peak value of the same month and the same month according to the historical clearing efficiency values;
and a step a3, determining the clearing efficiency value of each clearing node according to the clearing efficiency peak value of the previous day, the clearing efficiency peak value average value of the previous N days, the clearing efficiency peak value of the same year and the clearing efficiency peak value of the month and month of the ring ratio.
In this embodiment, the blockchain-based clearing system monitors and records daily real-time clearing efficiency values of each clearing node in the blockchain network to obtain historical clearing efficiency values of each clearing node. The historical clearing efficiency values can be used to determine the clearing efficiency peak value Ta of each clearing node relative to the previous day of the current day of the acquired clearing order, the clearing efficiency peak value average value Tb of the previous N days, the clearing efficiency peak value Tc of the same year and the clearing efficiency peak value Td of the same month and the same month. For example, when the current day is 1/6/2020, n=7, ta is a clearing efficiency peak value of 1/5/2020, tb is an average value of clearing efficiency peaks of each of the first 7/2020, 1/6/2020, tc is a clearing efficiency peak value of 1/6/2019, and Td is a clearing efficiency peak value of 12/6/2019.
After determining Ta, tb, tc, td, the clearing efficiency value T of the clearing node may be determined in conjunction with a preset processing efficiency value update formula. The preset processing efficiency value updating formula is as follows:
in this embodiment, by the above manner, the clearing efficiency value of the clearing node on the same day is comprehensively predicted according to the historical clearing efficiency values of different statistical dimensions of the clearing node, so that the accuracy of the prediction of the clearing efficiency value can be improved, and the accuracy of the matching of the clearing node is further improved.
Further, the step of obtaining the priority of each clearing node in the blockchain network specifically includes:
step b1, acquiring clearing rates and abnormal frequencies corresponding to all clearing nodes in a blockchain network;
and b2, determining the priority of each clearing node according to the clearing rate and the abnormal frequency.
In this embodiment, the clearing rate corresponding to the clearing node is an inherent attribute of the clearing node, and the clearing node may set itself and, after the setting is completed, link up the clearing rate. The abnormal frequency of the clearing node reflects the frequency of abnormal situations such as overtime, error reporting and the like of the clearing node in the history clearing process, the abnormal frequency value can be obtained by statistics of a clearing system based on a block chain, or can be obtained by self statistics and uplink of the clearing node, and the embodiment is not particularly limited.
After the clearing rate and the abnormal frequency corresponding to each clearing node are determined, determining the interval score of the clearing rate and the interval score of the abnormal frequency of each clearing node according to the corresponding relation between the preset clearing rate interval and the interval score of each interval and the corresponding relation between the preset abnormal frequency interval and the interval score of each interval; calculating priority scores according to preset rate weight coefficients and abnormal frequency weight coefficients; and then, the priorities are classified according to the priority scores, and the priorities are the same. It should be noted that, the clearing rate is inversely proportional to the priority, the abnormal frequency is inversely proportional to the priority, and the manager may set the corresponding relationship between the priority score and the clearing rate, the abnormal frequency and the priority according to the need, which is not limited in this embodiment.
In one embodiment, the higher the clearing rate, the higher the anomaly frequency, the higher the priority score, and the lower the priority; the lower the clearing rate, the lower the anomaly frequency, the lower the priority score, and the higher the priority.
In the embodiment, when the priority of each clearing node is determined according to the two aspects of the clearing rate and the abnormal frequency, the clearing cost is determined by the clearing rate, the stability of the clearing channel is determined by the abnormal frequency, the priority of the clearing node is determined according to the two aspects, and then the matching is performed according to the priority of the node, so that the matched target clearing node has the characteristics of low clearing cost and high stability of the clearing channel.
And step S30, determining target clearing nodes of all the sub orders according to the demand efficiency value, the clearing efficiency value, the sub order splitting type and the priority of all the clearing nodes, and clearing the clearing orders through the target clearing nodes.
In this embodiment, after the demand efficiency value, the sub-order splitting type, and the clearing efficiency value and the priority of the clearing node of the clearing order are obtained, the target clearing node of each sub-order may be determined from all the clearing nodes, and the corresponding sub-order is cleared by the target clearing node.
In the embodiment, a clearing order of a clearing initiating node is obtained, and a sub-order splitting type of the clearing order and a demand efficiency value of each sub-order of the clearing order are obtained; acquiring a clearing efficiency value of each clearing node in the blockchain network and a priority of each clearing node; according to the demand efficiency value, the clearing efficiency value, the sub-order splitting type and the priority of each clearing node, determining a target clearing node of each sub-order, and clearing the clearing order through the target clearing node, so that a clearing initiator is not required to expend a large amount of manpower and material resources to find a new clearing mechanism, the matching flexibility of the clearing mechanism is improved, and the labor cost and the time cost are reduced; in addition, according to the clearing efficiency value and the priority of the clearing node and the sub-order splitting type and the demand efficiency value of the clearing order, the clearing node is automatically matched with the target clearing node for the clearing order, so that the clearing requirement of the clearing order on the higher timeliness requirement can be met.
Further, based on the first embodiment of the block chain based clearing method of the present invention, a second embodiment of the block chain based clearing method of the present invention is presented.
In this embodiment, the step of determining the target clearing node of each sub-order according to the requirement efficiency value, the clearing efficiency value, the sub-order splitting type, and the priority of each clearing node in the step S30 includes:
step c1, if the sub-order splitting type is an undetachable type, respectively calculating the difference value between the clearing efficiency value of each clearing node of the first priority and the demand efficiency value of each sub-order as an efficiency difference value;
step c2, taking a sub-order corresponding to the minimum efficiency difference value of each clearing node of the first priority as a first sub-order, taking a clearing node corresponding to the efficiency difference value as a first target clearing node, wherein the minimum efficiency difference value is greater than or equal to zero;
and c3, if the sum of the demand efficiency values of the first sub orders is smaller than the sum of the demand efficiency values of all the sub orders, performing secondary target node matching on the second sub orders except the first sub orders to obtain corresponding second target clearing nodes until the target node matching on all the sub orders is completed.
The present embodiment is directed to the case where the sub-order splitting type of the clearing order is an undetachable type, where the undetachable type refers to that all clearing data of a certain sub-order of the clearing order must be settled by one clearing node, and the clearing data in the sub-order cannot be split into multiple clearing nodes for settlement.
First, the difference between the clearing efficiency value of each clearing node of the first priority and the demand efficiency value of each sub-order, namely the efficiency difference value Xij, is calculated. And determining the minimum efficiency difference value in the efficiency difference values of all clearing nodes in the first priority, wherein the total number of the minimum efficiency difference values is the same as the number of the clearing nodes in the first priority, and each minimum efficiency difference value needs to meet the condition of being greater than or equal to zero. And taking the sub-order corresponding to the minimum efficiency difference value as a first sub-order, and taking the clearing node corresponding to the minimum efficiency difference value as a first target clearing node.
And if the sum of the demand efficiency values of the first sub-orders is smaller than the sum of the demand efficiency values of all the sub-orders, and the sub-orders of the clearing order are not completely matched, performing secondary target node matching on the second sub-orders which are not matched to the target clearing node in the first priority node.
The secondary target node matching process comprises the steps of firstly determining whether the sum of clearing efficiency values of all first target clearing nodes is larger than the sum of demand efficiency values of all first sub orders, and if not, indicating that the first target clearing nodes have no spare resources for clearing other orders; if so, determining that the first target clearing node has spare resources for clearing other orders, determining a difference value between each first target clearing node and a corresponding first sub-order, if the difference value is greater than zero, comparing the difference value with a demand efficiency value of a second sub-order, if the difference value is greater than or equal to the demand efficiency value of the second sub-order, determining that the spare resources of the first target clearing node can meet the demand of the second sub-order, and matching the second sub-order with the first target clearing node preferentially, wherein the first target clearing node is also the second target clearing node of the second sub-order; of course, if the difference is smaller than the demand efficiency value of any second sub-order, it indicates that the spare resource of the first target clearing node cannot meet the demand of any second sub-order, and at this time, the corresponding target clearing node may be matched in a similar manner in the clearing nodes of the second priority until the target nodes of all the sub-orders are matched.
According to the method and the system, the clearing nodes with the first priority are subjected to order matching preferentially, so that the order can be guaranteed to be processed by the clearing nodes with the high priority, and the clearing initiator can obtain clearing service with high efficiency and high quality as much as possible.
Further, in the step S30, the step of determining the target clearing node of each sub-order according to the demand efficiency value, the clearing efficiency value, the sub-order splitting type and the priority of each clearing node includes:
step d1, if the sub-order splitting type is a splitting type, sorting the clearing efficiency values of the clearing nodes of the first priority according to the size, and sorting the demand efficiency values of the sub-orders according to the size;
step d2, comparing the maximum clearing efficiency value with the maximum demand efficiency value, if the maximum clearing efficiency value is smaller than the maximum demand efficiency value, splitting a third sub-order corresponding to the maximum demand efficiency value to obtain a first sub-order and a second sub-order, and determining a clearing node corresponding to the maximum clearing efficiency value as a third target clearing node of the first sub-order, wherein the demand efficiency value of the first sub-order is equal to the maximum clearing efficiency value, and the sum of the demand efficiency values of the first sub-order and the second sub-order is equal to the demand efficiency value of the third sub-order;
The present embodiment is directed to the case where the sub-order splitting type of the clearing order is a splittable type, and clearing data of one sub-order in the splittable type clearing order may be settled by one or more clearing nodes.
Firstly, sorting the clearing efficiency values of the clearing nodes of the first priority according to the sizes, sorting the demand efficiency values of all the sub orders according to the sizes, comparing the maximum clearing efficiency value with the maximum demand efficiency value, and if the maximum clearing efficiency value is smaller than the maximum demand efficiency value, indicating that even the clearing node with the maximum clearing efficiency value cannot independently and completely meet the sub order with the maximum demand efficiency value. Therefore, the sub-order corresponding to the maximum demand efficiency value, namely the third sub-order, needs to be split to obtain the first sub-order and the second sub-order, the demand efficiency value of the first sub-order is equal to the maximum clearing efficiency value, the sum of the demand efficiency values of the first sub-order and the second sub-order is equal to the demand efficiency value of the third sub-order, and the clearing node corresponding to the maximum clearing efficiency value is determined as the third target clearing node of the first sub-order, so that the unpacking quantity of the sub-order is reduced as much as possible, and the risks such as data leakage caused by unpacking can be reduced.
Step d3, comparing the second-largest clearing efficiency value with the second-largest demand efficiency value, and if the second-largest clearing efficiency value is greater than or equal to the second-largest demand efficiency value, respectively calculating the clearing efficiency values of all clearing nodes except the third target clearing node in the first priority and the difference value of the demand efficiency values of all sub orders except the third sub order as an efficiency difference value;
and d4, carrying out target node matching on the sub orders except the first sub order according to the magnitude of the efficiency difference value, and determining target clearing nodes of all the sub orders.
If the clearing efficiency value of the second largest order is smaller than the demand efficiency value of the second largest order, it is indicated that the clearing node corresponding to the clearing efficiency value of the second largest order cannot completely meet the sub-order of the second largest demand efficiency value, and therefore the sub-order needs to be split, the splitting manner is similar to that of the third sub-order, and the manner of matching the target clearing node with the sub-order obtained by splitting is similar to that of the third sub-order, which is not repeated here.
If the next-largest clearing efficiency value is greater than or equal to the next-largest demand efficiency value, it is stated that the clearing node corresponding to the next-largest clearing efficiency value can completely satisfy the sub-order with the next-largest demand efficiency value, so that splitting processing is not required for the sub-order, and in order to minimize abnormal situations such as clearing data loss caused by unpacking, all the sub-orders with the demand efficiency value less than or equal to the next-largest demand efficiency value are subjected to target node matching according to the above-mentioned non-splitting embodiment, that is, the clearing efficiency values of all clearing nodes except the third target clearing node in the first priority are respectively calculated, and the difference value of the demand efficiency values of all the sub-orders except the third sub-order is taken as the efficiency difference value.
According to the method and the system, the clearing nodes of the first priority are matched with the clearing orders in order, so that the orders can be guaranteed to be processed by the clearing nodes with the highest priority as much as possible, and the clearing initiator can obtain clearing service with high efficiency and high quality as much as possible.
Further, the step d4 includes:
step e1, taking a sub order corresponding to the minimum efficiency difference value of each clearing node of the first priority as a fourth sub order, taking a clearing node corresponding to the efficiency difference value as a fourth target clearing node, wherein the minimum efficiency difference value is greater than or equal to zero;
and e2, performing secondary target node matching on the fifth sub-order except the first sub-order and the fourth sub-order to obtain a corresponding fifth target clearing node, until the target node matching on all the sub-orders is completed, wherein the fifth sub-order comprises the second sub-order.
In this embodiment, a minimum efficiency difference value among the efficiency difference values of each clearing node except the third target clearing node in the first priority is determined, the total number of the minimum efficiency difference values is the same as the number of clearing nodes except the third target clearing node in the first priority, and each minimum efficiency difference value needs to satisfy a condition greater than or equal to zero. And taking the sub order corresponding to the minimum efficiency difference value as a fourth sub order, and taking the clearing node corresponding to the minimum efficiency difference value as a fourth target clearing node.
And then, carrying out secondary target node matching on the fifth sub-order except the first sub-order and the fourth sub-order to obtain a corresponding fifth target clearing node until the target node matching on all the sub-orders is completed.
The secondary target node matching process is that firstly, whether the sum of clearing efficiency values of the fourth target clearing nodes is larger than the sum of demand efficiency values of all fourth sub orders is determined, if not, the fourth target clearing nodes are free of spare resources to clear other orders is indicated; if so, determining that the fourth target clearing node has spare resources to clear other orders, determining a difference value between each fourth target clearing node and a fourth sub-order corresponding to the fourth target clearing node, if the difference value is greater than zero, comparing the difference value with a demand efficiency value of a fifth sub-order, if the difference value is greater than or equal to the demand efficiency value of the fifth sub-order, determining that the spare resources of the fourth target clearing node can meet the demand of the fifth sub-order, and matching the fifth sub-order with the fourth target clearing node preferentially, wherein the fourth target clearing node is also the fifth target clearing node of the fifth sub-order; of course, if the difference is smaller than the demand efficiency value of any fifth sub-order, it indicates that the spare resource of the fourth target clearing node cannot meet the demand of any fifth sub-order, and at this time, the corresponding target clearing node may be matched in a similar manner in the clearing node of the second priority until the target nodes of all the sub-orders are matched.
In this embodiment, when the next-largest clearing efficiency value is greater than or equal to the next-largest demand efficiency value, the node with the smallest efficiency difference is determined as the target node of the corresponding order, so as to reduce the unpacking number of the order as much as possible, and further reduce risks such as data leakage caused by unpacking.
Further, based on the foregoing embodiment of the blockchain-based clearing method of the present invention, a third embodiment of the blockchain-based clearing method of the present invention is presented.
In this embodiment, in the step S30, the step of clearing, by the target clearing node, the clearing order of the clearing initiating node includes:
step f1, receiving clearing data and a target communication address of the clearing initiating node, determining a first representative node according to a blockchain where the clearing initiating node is located, and determining a second representative node of the blockchain where the target clearing node of the clearing data is located according to the target communication address;
and f2, transmitting the clearing data and the target communication address to the second representative node through the first representative node, so that the second representative node transmits the clearing data to the target clearing node in the target communication address after receiving the clearing data and the target communication address, and the target clearing node can clear the clearing data.
In this embodiment, after a clearing order for a clearing initiation node is matched to a corresponding target clearing node, the clearing initiation node is informed of the target clearing node corresponding to the clearing order, when clearing data corresponding to the clearing order is sent to the target clearing node, the clearing initiation node sends a target communication address corresponding to the target clearing node and the clearing data to a clearing device based on a blockchain, when the clearing device based on the blockchain receives the target communication address and the clearing data, a first representative node of the blockchain is determined according to the blockchain where the clearing initiation node is located, and a second representative node of the blockchain where the target clearing node is located is determined according to the target communication address. And transmitting the clearing data and the target communication address to the second representative node through the first representative node, so that the second representative node transmits the clearing data to the target clearing node in the target communication address after receiving the clearing data and the target communication address, and the target clearing node can clear the clearing data.
Further, before step e1, the method further includes determining, by the blockchain-based clearing device, a corresponding representative node on each blockchain according to storage capability and operation performance of each blockchain node on each blockchain, where the representative nodes of each chain form an interconnection chain, and cross-chain communication between the chains is implemented by the representative nodes connected into the interconnection chain. For example, referring to FIG. 3, if merchant X node on chain 2 needs to communicate with clearing party A, then the communication link is that merchant X node-chain 2 represents node (i.e., interconnect chain node) -chain 3 represents node-clearing party A node; if the merchant X node on the chain 2 needs to communicate with the clearing party B, the communication link is that the merchant X node-the chain 2 represents the node-the chain 3 represents the node-the clearing party B node; if the merchant X node on the chain 2 needs to communicate with the clearing party C, the communication link is that the merchant X node-the chain 2 represents the node-the chain 1 represents the node-the clearing party C node.
In this embodiment, the clearing data is transmitted point-to-point through the representative node, so that efficient data transmission is realized, and meanwhile, isolation security of the data is ensured.
The present invention also provides a block chain based clearing apparatus, referring to fig. 4, comprising:
a first obtaining module 10, configured to obtain a clearing order of a clearing initiating node, and obtain a sub-order splitting type of the clearing order and a demand efficiency value of each sub-order of the clearing order;
a second obtaining module 30, configured to obtain a clearing efficiency value of each clearing node in the blockchain network and a priority of each clearing node;
the target determining module 40 is configured to determine a target clearing node of each sub-order according to the requirement efficiency value, the clearing efficiency value, the sub-order splitting type and the priority of each clearing node, and clear the clearing order through the target clearing node.
Optionally, the second obtaining module is further configured to:
acquiring clearing rate and abnormal frequency corresponding to each clearing node in the blockchain network;
and determining the priority of each clearing node according to the clearing rate and the abnormal frequency.
Optionally, the target determining module is further configured to:
if the sub-order splitting type is an undetachable type, respectively calculating the difference value between the clearing efficiency value of each clearing node of the first priority and the demand efficiency value of each sub-order to be used as an efficiency difference value;
taking a sub order corresponding to the minimum efficiency difference value of each clearing node of the first priority as a first sub order, and taking a clearing node corresponding to the efficiency difference value as a first target clearing node, wherein the minimum efficiency difference value is greater than or equal to zero;
and if the sum of the demand efficiency values of the first sub orders is smaller than the sum of the demand efficiency values of all the sub orders, performing secondary target node matching on the second sub orders except the first sub orders to obtain corresponding second target clearing nodes until the target node matching on all the sub orders is completed.
Optionally, the target determining module is further configured to:
if the sub-order splitting type is a splitting type, sorting the clearing efficiency values of the clearing nodes of the first priority according to the size, and sorting the demand efficiency values of the sub-orders according to the size;
comparing the maximum clearing efficiency value with the maximum demand efficiency value, if the maximum clearing efficiency value is smaller than the maximum demand efficiency value, splitting a third sub-order corresponding to the maximum demand efficiency value to obtain a first sub-order and a second sub-order, and determining a clearing node corresponding to the maximum clearing efficiency value as a third target clearing node of the first sub-order, wherein the demand efficiency value of the first sub-order is equal to the maximum clearing efficiency value, and the sum of the demand efficiency values of the first sub-order and the second sub-order is equal to the demand efficiency value of the third sub-order;
Comparing the magnitude of the second largest clearing efficiency value with the magnitude of the second largest demand efficiency value, and if the second largest clearing efficiency value is greater than or equal to the second largest demand efficiency value, respectively calculating the difference between the clearing efficiency values of all clearing nodes except the third target clearing node in the first priority and the demand efficiency values of all sub orders except the third sub order as an efficiency difference;
and carrying out target node matching on the sub orders except the first sub order according to the magnitude of the efficiency difference value, and determining target clearing nodes of all the sub orders.
Optionally, the target determining module is further configured to:
taking a sub order corresponding to the minimum efficiency difference value of each clearing node of the first priority as a fourth sub order, and taking a clearing node corresponding to the efficiency difference value as a fourth target clearing node, wherein the minimum efficiency difference value is greater than or equal to zero;
and performing secondary target node matching on the fifth sub-order except the first sub-order and the fourth sub-order to obtain a corresponding fifth target clearing node until the target node matching on all the sub-orders is completed, wherein the fifth sub-order comprises the second sub-order.
Optionally, the second obtaining module is further configured to:
acquiring historical clearing efficiency values of clearing nodes in the blockchain network;
determining a clearing efficiency peak value of a previous day, a clearing efficiency peak value average value of a previous N days, a clearing efficiency peak value of the same year and the same day and a clearing efficiency peak value of the same month and the same day on the ring ratio of each clearing node according to the historical clearing efficiency value;
and determining the clearing efficiency value of each clearing node according to the clearing efficiency peak value of the previous day, the clearing efficiency peak value average value of the previous N days, the clearing efficiency peak value of the same comparison last year and the clearing efficiency peak value of the same comparison last month.
Optionally, the target determining module is further configured to:
receiving clearing data and a target communication address of the clearing initiating node, determining a first representative node according to a blockchain where the clearing initiating node is located, and determining a second representative node of the blockchain where the target clearing node of the clearing data is located according to the target communication address;
and transmitting the clearing data and the target communication address to the second representative node through the first representative node, so that the second representative node transmits the clearing data to the target clearing node in the target communication address after receiving the clearing data and the target communication address, and the target clearing node can clear the clearing data.
The method performed by each program unit may refer to various embodiments of the blockchain-based clearing method of the present invention, and will not be described herein.
The invention also provides a block chain based clearing device, comprising: the memory, the processor, and the blockchain-based clearing program stored on the memory and executable on the processor, the method implemented when the blockchain-based clearing program is executed by the processor may refer to various embodiments of the blockchain-based clearing method of the present invention, and are not described in detail herein.
The invention also provides a computer storage medium.
The computer storage medium of the present invention has stored thereon a blockchain-based clearing program that, when executed by a processor, implements the steps of the blockchain-based clearing method described above.
The method implemented when the blockchain-based clearing program running on the processor is executed may refer to various embodiments of the blockchain-based clearing method of the present invention, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. A blockchain-based clearing method, characterized in that the blockchain-based clearing method comprises the steps of:
acquiring a clearing order of a clearing initiating node, and acquiring a sub-order splitting type of the clearing order and a demand efficiency value of each sub-order of the clearing order;
acquiring a clearing efficiency value of each clearing node in the blockchain network and a priority of each clearing node;
determining target clearing nodes of all the sub orders according to the demand efficiency value, the clearing efficiency value, the sub order splitting type and the priority of all the clearing nodes, and clearing the clearing orders through the target clearing nodes;
the step of determining the target clearing node of each sub-order according to the demand efficiency value, the clearing efficiency value, the sub-order splitting type and the priority of each clearing node comprises the following steps:
if the sub-order splitting type is an undetachable type, respectively calculating the difference value between the clearing efficiency value of each clearing node of the first priority and the demand efficiency value of each sub-order to be used as an efficiency difference value;
taking a sub order corresponding to the minimum efficiency difference value of each clearing node of the first priority as a first sub order, and taking a clearing node corresponding to the efficiency difference value as a first target clearing node, wherein the minimum efficiency difference value is greater than or equal to zero;
If the sum of the demand efficiency values of the first sub orders is smaller than the sum of the demand efficiency values of all the sub orders, performing secondary target node matching on the second sub orders except the first sub orders to obtain corresponding second target clearing nodes until the target node matching on all the sub orders is completed; or;
if the sub-order splitting type is a splitting type, sorting the clearing efficiency values of the clearing nodes of the first priority according to the size, and sorting the demand efficiency values of the sub-orders according to the size;
comparing the maximum clearing efficiency value with the maximum demand efficiency value, if the maximum clearing efficiency value is smaller than the maximum demand efficiency value, splitting a third sub-order corresponding to the maximum demand efficiency value to obtain a first sub-order and a second sub-order, and determining a clearing node corresponding to the maximum clearing efficiency value as a third target clearing node of the first sub-order, wherein the demand efficiency value of the first sub-order is equal to the maximum clearing efficiency value, and the sum of the demand efficiency values of the first sub-order and the second sub-order is equal to the demand efficiency value of the third sub-order;
Comparing the magnitude of the second largest clearing efficiency value with the magnitude of the second largest demand efficiency value, and if the second largest clearing efficiency value is greater than or equal to the second largest demand efficiency value, respectively calculating the difference between the clearing efficiency values of all clearing nodes except the third target clearing node in the first priority and the demand efficiency values of all sub orders except the third sub order as an efficiency difference;
and carrying out target node matching on the sub orders except the first sub order according to the magnitude of the efficiency difference value, and determining target clearing nodes of all the sub orders.
2. The blockchain-based clearing method of claim 1, wherein the step of obtaining the priority of each clearing node in the blockchain network includes:
acquiring clearing rate and abnormal frequency corresponding to each clearing node in the blockchain network;
and determining the priority of each clearing node according to the clearing rate and the abnormal frequency.
3. The blockchain-based clearing method of claim 1, wherein the step of targeting sub-orders other than the first sub-order according to the magnitude of the efficiency difference to determine a target clearing node for each sub-order comprises:
Taking a sub order corresponding to the minimum efficiency difference value of each clearing node of the first priority as a fourth sub order, and taking a clearing node corresponding to the efficiency difference value as a fourth target clearing node, wherein the minimum efficiency difference value is greater than or equal to zero;
and performing secondary target node matching on the fifth sub-order except the first sub-order and the fourth sub-order to obtain a corresponding fifth target clearing node until the target node matching on all the sub-orders is completed, wherein the fifth sub-order comprises the second sub-order.
4. The blockchain-based clearing method of claim 1, wherein the step of obtaining a clearing efficiency value for each clearing node in the blockchain network includes:
acquiring historical clearing efficiency values of clearing nodes in the blockchain network;
determining a clearing efficiency peak value of a previous day, a clearing efficiency peak value average value of a previous N days, a clearing efficiency peak value of the same year and the same day and a clearing efficiency peak value of the same month and the same day on the ring ratio of each clearing node according to the historical clearing efficiency value;
and determining the clearing efficiency value of each clearing node according to the clearing efficiency peak value of the previous day, the clearing efficiency peak value average value of the previous N days, the clearing efficiency peak value of the same comparison last year and the clearing efficiency peak value of the same comparison last month.
5. A blockchain-based clearing method according to any of claims 1 to 4, wherein the step of clearing the clearing order of the clearing initiating node by the target clearing node comprises:
receiving clearing data and a target communication address of the clearing initiating node, determining a first representative node according to a blockchain where the clearing initiating node is located, and determining a second representative node of the blockchain where the target clearing node of the clearing data is located according to the target communication address;
and transmitting the clearing data and the target communication address to the second representative node through the first representative node, so that the second representative node transmits the clearing data to the target clearing node in the target communication address after receiving the clearing data and the target communication address, and the target clearing node can clear the clearing data.
6. A blockchain-based clearing device, the blockchain-based clearing device comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a clearing order of a clearing initiating node, and acquiring a sub-order splitting type of the clearing order and a demand efficiency value of each sub-order of the clearing order;
A second obtaining module, configured to obtain a clearing efficiency value of each clearing node in the blockchain network and a priority of each clearing node;
the target determining module is used for determining target clearing nodes of all the sub orders according to the demand efficiency value, the clearing efficiency value, the sub order splitting type and the priority of all the clearing nodes, and clearing the clearing orders through the target clearing nodes;
the target determining module is further configured to, if the sub-order splitting type is an undetachable type, respectively calculate a difference value between a clearing efficiency value of each clearing node of the first priority and a demand efficiency value of each sub-order as an efficiency difference value;
taking a sub order corresponding to the minimum efficiency difference value of each clearing node of the first priority as a first sub order, and taking a clearing node corresponding to the efficiency difference value as a first target clearing node, wherein the minimum efficiency difference value is greater than or equal to zero;
if the sum of the demand efficiency values of the first sub orders is smaller than the sum of the demand efficiency values of all the sub orders, performing secondary target node matching on the second sub orders except the first sub orders to obtain corresponding second target clearing nodes until the target node matching on all the sub orders is completed; or;
If the sub-order splitting type is a splitting type, sorting the clearing efficiency values of the clearing nodes of the first priority according to the size, and sorting the demand efficiency values of the sub-orders according to the size;
comparing the maximum clearing efficiency value with the maximum demand efficiency value, if the maximum clearing efficiency value is smaller than the maximum demand efficiency value, splitting a third sub-order corresponding to the maximum demand efficiency value to obtain a first sub-order and a second sub-order, and determining a clearing node corresponding to the maximum clearing efficiency value as a third target clearing node of the first sub-order, wherein the demand efficiency value of the first sub-order is equal to the maximum clearing efficiency value, and the sum of the demand efficiency values of the first sub-order and the second sub-order is equal to the demand efficiency value of the third sub-order;
comparing the magnitude of the second largest clearing efficiency value with the magnitude of the second largest demand efficiency value, and if the second largest clearing efficiency value is greater than or equal to the second largest demand efficiency value, respectively calculating the difference between the clearing efficiency values of all clearing nodes except the third target clearing node in the first priority and the demand efficiency values of all sub orders except the third sub order as an efficiency difference;
And carrying out target node matching on the sub orders except the first sub order according to the magnitude of the efficiency difference value, and determining target clearing nodes of all the sub orders.
7. A blockchain-based clearing device, the blockchain-based clearing device comprising: memory, a processor, and a blockchain-based clearing program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the blockchain-based clearing method of any of claims 1 to 5.
8. A computer storage medium having stored thereon a blockchain-based clearing program which, when executed by a processor, implements the steps of the blockchain-based clearing method of any of claims 1 to 5.
CN202110037567.6A 2021-01-12 2021-01-12 Block chain-based clearing method, device, equipment and computer storage medium Active CN112766948B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110037567.6A CN112766948B (en) 2021-01-12 2021-01-12 Block chain-based clearing method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110037567.6A CN112766948B (en) 2021-01-12 2021-01-12 Block chain-based clearing method, device, equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN112766948A CN112766948A (en) 2021-05-07
CN112766948B true CN112766948B (en) 2024-03-26

Family

ID=75699861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110037567.6A Active CN112766948B (en) 2021-01-12 2021-01-12 Block chain-based clearing method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN112766948B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107240002A (en) * 2017-06-06 2017-10-10 北京汇通金财信息科技有限公司 A kind of electricity transaction method, device and micro-grid system
CN109493018A (en) * 2018-11-06 2019-03-19 徐宁 A kind of C2C transaction and system for settling account and method based on block chain
CN109767289A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Order smart allocation method, apparatus, computer equipment and storage medium
CN109948989A (en) * 2019-03-28 2019-06-28 深圳前海微众银行股份有限公司 Order status update method, device, equipment and storage medium based on block chain
CN110009470A (en) * 2019-03-29 2019-07-12 中国银联股份有限公司 A kind of settlement method and device
CN110417622A (en) * 2019-07-30 2019-11-05 秒针信息技术有限公司 Settle accounts system, the method and device of abnormal flow
CN110503559A (en) * 2019-08-29 2019-11-26 深圳前海微众银行股份有限公司 Liquidation method, device, equipment and computer storage medium based on block chain
CN111724229A (en) * 2020-05-13 2020-09-29 时时同云科技(成都)有限责任公司 Object recommendation method and device, and object display method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170124649A1 (en) * 2015-10-29 2017-05-04 Stephen R. Schonberg Techniques for real-time order prioritization and matching

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107240002A (en) * 2017-06-06 2017-10-10 北京汇通金财信息科技有限公司 A kind of electricity transaction method, device and micro-grid system
CN109493018A (en) * 2018-11-06 2019-03-19 徐宁 A kind of C2C transaction and system for settling account and method based on block chain
CN109767289A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Order smart allocation method, apparatus, computer equipment and storage medium
CN109948989A (en) * 2019-03-28 2019-06-28 深圳前海微众银行股份有限公司 Order status update method, device, equipment and storage medium based on block chain
CN110009470A (en) * 2019-03-29 2019-07-12 中国银联股份有限公司 A kind of settlement method and device
CN110417622A (en) * 2019-07-30 2019-11-05 秒针信息技术有限公司 Settle accounts system, the method and device of abnormal flow
CN110503559A (en) * 2019-08-29 2019-11-26 深圳前海微众银行股份有限公司 Liquidation method, device, equipment and computer storage medium based on block chain
CN111724229A (en) * 2020-05-13 2020-09-29 时时同云科技(成都)有限责任公司 Object recommendation method and device, and object display method and device

Also Published As

Publication number Publication date
CN112766948A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
EP3495951B1 (en) Hybrid cloud migration delay risk prediction engine
US6216117B1 (en) Automated network sizing and pricing system for satellite network
US20160217383A1 (en) Method and apparatus for forecasting characteristic information change
CN113869801B (en) Maturity state evaluation method and device for enterprise digital middleboxes
US11334758B2 (en) Method and apparatus of data processing using multiple types of non-linear combination processing
US7725900B2 (en) Method of assigning objects to processing units
CN106454437A (en) Streaming media service rate prediction method and device
CN110322167B (en) Information processing method and device, storage medium and electronic equipment
CN113472659B (en) Method and device for determining forwarding path and SDN controller
CN110730101A (en) Resource allocation method, terminal, device and readable storage medium
CN112766948B (en) Block chain-based clearing method, device, equipment and computer storage medium
CN110717666A (en) Market competitiveness evaluation method for enterprise products
CN111724185A (en) User maintenance method and device
US20050154748A1 (en) Analytical task execution
CN111459961A (en) Method, device and equipment for updating service data and storage medium
CN110276691A (en) A kind of data processing method and device based on big data platform
US20240005240A1 (en) Method and device for providing compressed gig service
CN112232963B (en) Block chain-based clearing method, device, equipment and computer storage medium
CN114170027A (en) Processing method and device for public accumulation fund payment account, electronic equipment and storage medium
CN110263044B (en) Data storage method, device, equipment and computer readable storage medium
US11276017B2 (en) Method and system for estimating efforts for software managed services production support engagements
CN113177843A (en) Cross-bank loan service processing method and device based on block chain
US20210304220A1 (en) Complex sourcing system
CN111669761A (en) 5G traffic prediction method based on 4G present network signal intensity contribution degree
CN111367680A (en) Job task allocation method, device, server, system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant