A multi-blockchain cross-chain transaction processing system and method
By monitoring and evaluating data from the main chain and side chains, and combining analysis of transaction traffic and online users, cross-chain transactions are dynamically adjusted, solving the problem of poor cross-chain transaction processing performance in existing technologies and achieving stable and efficient operation of cross-chain transactions across multiple blockchains.
Patent Information
- Application Number
- CN202210918929.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-02
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2042-08-02
AI Technical Summary
Existing multi-blockchain cross-chain transaction processing solutions fail to comprehensively assess the operational status of the main cross-chain and the cross-chain being crossed, resulting in poor control over cross-chain transaction processing.
By combining the blockchain combination module, blockchain processing module, transaction statistics module, transaction evaluation module, and cross-chain regulation module, the system can monitor and evaluate data on the main chain and side chains, and achieve cross-chain data interaction, including monitoring and evaluating CPU utilization, transaction traffic, and online users, and dynamically regulating cross-chain transactions.
It improves the stability and efficiency of cross-chain transaction processing across multiple blockchains, enables precise and efficient assessment and control of the main chain and sub-chain operation status, timely adjusts the impact of transactions on the main chain operation, eliminates data silos, and improves the overall effect of cross-chain transaction processing.
Smart Images

Figure CN115186034B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of blockchain transaction processing, in particular to a multi-blockchain cross-chain transaction processing system and method. BACKGROUND
[0002] Among the many problems faced by blockchain, the interoperability between blockchains greatly limits the application space of blockchain. Whether it is a public chain or a consortium chain, cross-chain technology is the key to realizing the value internet and is the bridge for blockchain to expand and connect outward.
[0003] The existing multi-blockchain cross-chain transaction processing scheme, when implemented, only performs cross-chain transaction processing based on the overall state of the main cross-chain state or transaction, without overall evaluation of the running state of the main cross-chain and the cross-chained chain, and without evaluation of the overall state of the transaction. Finally, the evaluation results of each aspect are not combined to eliminate data islands between independent data, resulting in poor overall effect of multi-blockchain cross-chain transaction processing regulation. SUMMARY
[0004] The purpose of the present application is to provide a multi-blockchain cross-chain transaction processing system and method to solve the technical problem that the existing scheme does not monitor and evaluate multi-blockchain cross-chain transactions in all directions, resulting in poor overall effect of multi-blockchain cross-chain transaction processing regulation.
[0005] The purpose of the present application can be achieved by the following technical solutions:
[0006] A multi-blockchain cross-chain transaction processing system, comprising a blockchain combination module, a blockchain processing module, a transaction statistics module, a transaction evaluation module, and a cross-chain regulation module.
[0007] The blockchain combination module includes a main chain and a plurality of side chains connected to the main chain.
[0008] The blockchain processing module monitors and preprocesses various data during the operation of the main chain and the plurality of side chains to obtain a main monitoring set and a secondary monitoring set.
[0009] The running state of the main chain and the plurality of side chains is evaluated according to the main monitoring set and the secondary monitoring set to obtain a main evaluation set and a secondary evaluation set.
[0010] The transaction statistics module is used to monitor and extract features of the transaction processing platform during a preset monitoring period to obtain a transaction processing set, which includes traffic processing data and online processing data.
[0011] The transaction evaluation module is used to calculate and analyze the transaction processing set to obtain a transaction analysis set containing a transaction coefficient, including:
[0012] Obtain the total value of the marked traffic C1, the total number of online users C2 and the total online duration C3 in the transaction processing set, extract the values of the three and calculate the transaction coefficient JY of the main chain in parallel;
[0013] When evaluating the overall state of the transaction according to the transaction coefficient JY, the transaction coefficient JY is matched and analyzed with the preset transaction evaluation threshold to obtain a transaction analysis set containing the exchange optimal signal, the exchange positive signal and the exchange abnormal signal;
[0014] The cross-chain regulation module is used to adaptively and dynamically implement cross-chain data interaction between the main chain and the side chain according to the main evaluation set and the side evaluation set and the transaction analysis set.
[0015] Preferably, the aspects of the main chain and the several side chains running are monitored and preprocessed, including:
[0016] Obtain the total number of CPU running times and the total CPU running duration of all nodes on the main chain on the same day and mark them as A1 and A2 respectively; obtain the CPU utilization of all nodes running on the main chain on the same day, set the CPU utilization greater than the standard CPU utilization as the target CPU utilization, and count the total number of times and the total duration of the target CPU utilization and mark them as A10 and A20 respectively;
[0017] Arrange and combine the total number of CPU running times and the total CPU running duration of all nodes on the main chain, the total number of times and the total duration of the target CPU utilization to obtain the main monitoring set.
[0018] Preferably, obtain the total number of CPU running times and the total CPU running duration of all nodes on each side chain on the same day and mark them as B1 and B2 respectively; obtain the CPU utilization of all nodes running on each side chain on the same day, set the CPU utilization not greater than the standard CPU utilization as the selected CPU utilization, and count the total number of times and the total duration of the selected CPU utilization and mark them as B10 and B20 respectively;
[0019] Arrange and combine the total number of CPU running times and the total CPU running duration of all nodes on each side chain, the total number of times and the total duration of the selected CPU utilization to obtain the side monitoring set.
[0020] Preferably, the running state of the main chain and the several side chains is evaluated according to the main monitoring set and the side monitoring set, including:
[0021] The total number of CPU running times A1 and the total CPU running time A2 of all nodes on the main chain in the main monitoring set and the total number of target CPU utilization A10 and the total running time A20 are obtained, and the values of the four are extracted and calculated by the formula ZZ=a1*A10 / A1+a2*A20 / A2 to obtain the main coefficient ZZ of the main chain; in the formula, a1 and a2 are different proportional coefficients and both take values in the range of (0, 10);
[0022] When the running state of the main chain as a whole is evaluated according to the main coefficient ZZ, the main coefficient ZZ is matched and analyzed with the preset main threshold ZZYmin and the main threshold ZZYmax, and a main evaluation set containing the main optimal signal, the main positive signal and the main different signal is obtained.
[0023] Preferably, the total number of CPU running times B1 and the total CPU running time B2 of all nodes on each sub-chain on the same day and the total number of selected CPU utilization B10 and the total running time B20 are obtained, and the values of the four are extracted and calculated by the formula FZ=(b1*B10 / B1+b2*B20 / B2) / JS to obtain the sub-coefficient FZ of the sub-chain; in the formula, b1 and b2 are different proportional coefficients and both take values in the range of (0, 5), and JS is the total number of all nodes on the sub-chain;
[0024] The sub-coefficients FZ are arranged in ascending order, and the sub-chain corresponding to the sub-coefficient FZ at the head of the sub-chain greater than the sub-threshold is set as the selected sub-chain, and the k sub-coefficients FZ corresponding to the sub-chains after the head are set as the alternative sub-chains, and k is a positive integer greater than 2; the sub-coefficients, the selected sub-chain and the alternative sub-chain constitute a sub-evaluation set.
[0025] Preferably, the transaction processing platform is monitored and counted and the features are extracted in the preset monitoring period, including:
[0026] The total traffic value, the total number of online users and the total online time generated in the monitoring period are counted respectively to obtain traffic data and online data;
[0027] The total traffic value, the total number of online users and the total online time in the traffic data and the online data are marked as C1, C2 and C3 respectively;
[0028] The data corresponding to the marked total traffic value, the total number of online users and the total online time are set as traffic processing data and online processing data respectively, and the traffic processing data and the online processing data constitute a transaction processing set.
[0029] Preferably, the values of the three are extracted and calculated by the formula JY=c1*C1 / C10+c2*C2 / C20+c3*C3 / C30 to obtain the transaction coefficient JY of the main chain;
[0030] In the formula, c1, c2, and c3 are different proportional coefficients and each has a value range of (0, 8), C10 is a preset standard total flow value, C20 is a preset standard total number of online users, and C30 is a preset standard total online time length.
[0031] Preferably, the transaction coefficient JY is matched and analyzed with a preset transaction evaluation threshold, if the transaction coefficient is less than the transaction evaluation threshold, a pass signal is generated, if the transaction coefficient is not less than the transaction evaluation threshold and the duration is not greater than v, a correct signal is generated, and if the transaction coefficient is not less than the transaction evaluation threshold and the duration is greater than v, a wrong signal is generated, and the transaction coefficient, the pass signal, the correct signal, and the wrong signal constitute a transaction analysis set.
[0032] Preferably, the cross-chain data interaction between the main chain and the side chain is dynamically implemented according to the main evaluation set and the side evaluation set and the transaction analysis set, including:
[0033] The main evaluation set and the transaction analysis set are simultaneously evaluated to determine whether cross-chain data interaction is needed, if the main evaluation set contains a main wrong signal, a first cross-chain instruction is generated, if the main evaluation set contains a main correct signal and the transaction analysis set contains a wrong signal, a second cross-chain instruction is generated, and the main chain and the selected side chain in the side evaluation set are controlled to perform cross-chain transaction according to the first cross-chain instruction and the second cross-chain instruction.
[0034] To solve the problem, the application also provides a multi-blockchain cross-chain transaction processing method, including:
[0035] The main chain and the side chains are monitored and preprocessed to obtain a main monitoring set and a side monitoring set;
[0036] The running states of the main chain and the side chains are evaluated according to the main monitoring set and the side monitoring set to obtain a main evaluation set containing a main pass signal, a main correct signal, and a main wrong signal, and a side evaluation set containing a plurality of side coefficients, a selected side chain, and a standby side chain;
[0037] The transaction processing platform is monitored and preprocessed to obtain a transaction processing set containing flow processing data and online processing data;
[0038] The transaction processing set is calculated and analyzed to obtain a transaction analysis set containing a transaction coefficient;
[0039] The cross-chain data interaction between the main chain and the side chain is dynamically implemented according to the main evaluation set and the side evaluation set and the transaction analysis set.
[0040] Compared with the prior art, the application has the following advantages:
[0041] In one aspect of the present application, the running data of all nodes on the main chain and all nodes on each sub-chain are monitored and preprocessed, so that the running state of the main chain and each sub-chain can be accurately and efficiently evaluated and regulated subsequently, and the main chain can maintain a stable and efficient running environment.
[0042] In another aspect of the present application, the overall state of the transaction is evaluated by combining the traffic, online users and online duration in the transaction process, and it is judged whether the overall state of the transaction will affect the running of the main chain, so as to timely implement the regulation of cross-chain transaction, and improve the diversity of multi-blockchain cross-chain transaction processing monitoring.
[0043] In other aspects of the present application, the main chain, the sub-chain and the transaction are independently monitored and analyzed, and the analysis results of each aspect are combined, the running state of the main chain is evaluated from different aspects, and the cross-chain transaction processing of the main chain and the sub-chain is adaptively implemented, which can effectively improve the effect of the main chain running and transaction processing. BRIEF DESCRIPTION OF DRAWINGS
[0044] The present application will be further described below with reference to the accompanying drawings.
[0045] Figure 1 A module block diagram of a multi-blockchain cross-chain transaction processing system of the present application.
[0046] Figure 2 A flowchart of a multi-blockchain cross-chain transaction processing method of the present application.
[0047] Figure 3 A structure diagram of a computer device for implementing an embodiment of the present application. DETAILED DESCRIPTION
[0048] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0049] As shown in Figure 1 The present application is a multi-blockchain cross-chain transaction processing system, which comprises a transaction processing platform, a blockchain combination module, a blockchain processing module, a transaction statistical module, a transaction evaluation module and a cross-chain regulation module.
[0050] The blockchain combination module comprises a main chain and a plurality of side chains connected with the main chain.
[0051] The side chain is used to refer to the blockchain parallel to the main blockchain, entries from the main blockchain can be connected to the side chain or be connected by the side chain; in this way, the side chain can operate independently of the main blockchain; in addition, the side chain is relative, the side chain is independent of the main chain, and the side chain and the main chain can be connected and communicated; the function of the side chain is to virtually improve the performance of the main chain horizontally and vertically. In the embodiment of the application, the main chain and a plurality of side chains connected with the main chain are arranged to realize multi-blockchain cross-chain transaction processing.
[0052] The blockchain processing module comprises a blockchain monitoring unit and a blockchain evaluation unit.
[0053] The blockchain monitoring unit is used to monitor and preprocess various data of the main chain and a plurality of side chains during operation to obtain a main monitoring set and a secondary monitoring set; the specific steps include:
[0054] The total number of CPU running times and the total length of CPU running times of all nodes on the main chain on the same day are obtained and marked as A1 and A2 respectively; the unit of the total length of CPU running times is hour, and the same applies below;
[0055] The CPU utilization of all nodes running on the main chain on the same day is obtained, the CPU utilization greater than the standard CPU utilization is set as the target CPU utilization, and the total number of times and the total length of running of the target CPU utilization are counted and marked as A10 and A20 respectively;
[0056] The total number of CPU running times and the total length of CPU running times of all nodes on the main chain, and the total number of times and the total length of running of the target CPU utilization are arranged and combined to obtain the main monitoring set;
[0057] The total number of CPU running times and the total length of CPU running times of all nodes on each secondary chain on the same day are obtained and marked as B1 and B2 respectively;
[0058] The CPU utilization of all nodes running on each secondary chain on the same day is obtained, the CPU utilization not greater than the standard CPU utilization is set as the selected CPU utilization, and the total number of times and the total length of running of the selected CPU utilization are counted and marked as B10 and B20 respectively;
[0059] The total number of CPU running times and the total length of CPU running times of all nodes on each secondary chain, and the total number of times and the total length of running of the selected CPU utilization are arranged and combined to obtain the secondary monitoring set.
[0060] In the embodiment of the application, the data of all nodes on the main chain and all nodes on each secondary chain during operation are monitored and preprocessed, so that the running state of the main chain and each secondary chain can be accurately and efficiently evaluated and regulated in the subsequent, so that the main chain can maintain a stable and efficient running environment.
[0061] The blockchain evaluation unit is used for evaluating the running states of the main chain and the plurality of side chains according to the main monitoring set and the auxiliary monitoring set, to obtain a main evaluation set and an auxiliary evaluation set; the specific steps include:
[0062] The total number of CPU running times A1 and the total length of CPU running A2 of all nodes on the main chain in the main monitoring set are obtained, as well as the total number of target CPU utilization A10 and the total length of running A20, the values of the four are extracted and the main shape coefficient ZZ of the main chain is obtained by formula ZZ=a1×A10 / A1+a2×A20 / A2;
[0063] In the formula, a1 and a2 are different proportional coefficients and the value range belongs to (0, 10), a1 can take the value of 1.592, and a2 can take the value of 0.721;
[0064] It should be noted that the main shape coefficient is a value for overall evaluation of the running state of the main chain; based on the main shape coefficient, the running state of the main chain can be monitored, so as to provide data support for cross-chain transaction processing between the main chain and the side chain.
[0065] When the main shape coefficient ZZ is used to evaluate the overall running state of the main chain, the main shape coefficient ZZ is matched and analyzed with the preset main shape threshold ZZYmin and the main shape threshold ZZYmax, ZZYmin<ZZYmax;
[0066] If ZZ<ZZYmin, it is determined that the overall running state of the main chain is excellent and a main excellent signal is generated;
[0067] If ZZYmin≤ZZ≤ZZYmax, it is determined that the overall running state of the main chain is normal and a main normal signal is generated;
[0068] If ZZ>ZZYmax, it is determined that the overall running state of the main chain is abnormal and a main abnormal signal is generated;
[0069] The main excellent signal, the main normal signal and the main abnormal signal constitute the main evaluation set;
[0070] In the embodiment of the application, the overall running state of the main chain is divided into three kinds based on the main shape threshold ZZYmin and the main shape threshold ZZYmax, i.e. excellent running state, normal running state and abnormal running state, which represent small overall running load of the main chain, normal overall running load of the main chain and large overall running load of the main chain, when the overall running load of the main chain is large, cross-chain transaction processing is needed.
[0071] Obtaining the total number of CPU running times B1 and the total CPU running time B2 of all nodes on each subchain on the day, and the total number of selected CPU utilization times B10 and the total running time B20, extracting the values of the four and calculating the sub-chain coefficient FZ of the sub-chain through the formula FZ=(b1*B10 / B1+b2*B20 / B2) / JS;
[0072] In the formula, b1 and b2 are different proportional coefficients and both take values in the range (0, 5), b1 can take a value of 2.347, b2 can take a value of 1.255, and JS is the total number of all nodes on the sub-chain;
[0073] It should be noted that the sub-chain coefficient is a value for overall evaluation of the running ability of each sub-chain; the smaller the sub-chain coefficient, the better the corresponding running ability, and the more suitable it is as an object for main chain cross-chain transaction processing; when the total number of all nodes on the sub-chain is the same, the smaller the total number of selected CPU utilization times and the total running time, the smaller the obtained sub-chain coefficient; when the total number of selected CPU utilization times and the total running time is smaller, the more the total number of all nodes on the sub-chain, the smaller the obtained sub-chain coefficient.
[0074] Arrange the sub-chain coefficients FZ in ascending order, and set the sub-chain corresponding to the sub-chain coefficient FZ at the top of the arrangement which is greater than the sub-chain threshold as the selected sub-chain, and set the sub-chains corresponding to the k sub-chain coefficients FZ after the top as the candidate sub-chains, k is a positive integer greater than 2; the sub-chain coefficients, the selected sub-chain and the candidate sub-chain constitute a sub-evaluation set.
[0075] In the embodiments of the application, the running ability of the sub-chain is evaluated and ranked based on the sub-chain coefficient, and the sub-chain with the optimal running ability is obtained, so that the main chain and the sub-chain can perform efficient cross-chain transaction processing; in addition, the matching of the sub-chain coefficient with the sub-chain threshold is used to determine whether the corresponding sub-chain meets the cross-chain requirement, when the sub-chain coefficient is not greater than the sub-chain threshold, it is determined that the corresponding sub-chain does not meet the cross-chain requirement.
[0076] The transaction statistical module is used for monitoring and counting the transaction of the transaction processing platform in a preset monitoring period, and extracting features to obtain a transaction processing set, the transaction processing set includes traffic processing data and online processing data, and the monitoring period can be 24 hours; including:
[0077] The total traffic value and the total number of online users and the total online time generated during the monitoring period are counted respectively to obtain traffic data and online data;
[0078] The total traffic value and the total number of online users and the total online time in the traffic data and the online data are marked as C1, C2 and C3 respectively;
[0079] The marked total traffic value, the total number of online users and the corresponding data of the total online time are respectively set as traffic processing data and online processing data, and the traffic processing data and the online processing data constitute a transaction processing set.
[0080] In the embodiment of the application, the transaction situation of the transaction processing platform is monitored and counted, and features are extracted, so that various data related to transactions can be calculated and evaluated simultaneously, and the running situation of the main chain is evaluated from the transaction aspect. Unlike the existing scheme which only monitors and analyzes the running situation of the main chain, the embodiment of the application evaluates the running situation of the main chain itself and the transaction situation of the objects running on the main chain as a whole, so that diversified cross-chain transaction processing analysis and evaluation can be realized.
[0081] It should be explained that there are at least two data processing including transaction processing on the main chain, and diversified data processing exists on the main chain. In order to improve the overall effect of cross-chain transaction processing, the transaction processing is monitored and evaluated.
[0082] The transaction evaluation module is used to calculate and analyze the transaction processing set to obtain a transaction analysis set containing a transaction coefficient. The specific steps include:
[0083] The total traffic value C1, the total number of online users C2 and the total online time C3 marked in the transaction processing set are obtained, and the values of the three are extracted and calculated simultaneously by the formula JY=c1xC1 / C10+c2xC2 / C20+c3xC3 / C30 to obtain the transaction coefficient JY of the main chain.
[0084] In the formula, c1, c2 and c3 are different proportional coefficients and the value range belongs to (0, 8), c1 can take the value of 3.625, c2 can take the value of 1.437, and c3 can take the value of 2.584. C10 is a preset standard total traffic value, C20 is a preset standard total number of online users, and C30 is a preset standard total online time.
[0085] It should be noted that the transaction coefficient is a value for evaluating the overall state of the transaction. The overall state of the transaction is evaluated by simultaneously calculating the traffic, online users and online time in the transaction process, to determine whether the overall state of the transaction will affect the running of the main chain, so as to timely implement the regulation and control of cross-chain transactions.
[0086] In addition, the above formulas are calculated by removing the dimension and taking the numerical value. The formula is obtained by collecting a large amount of data to simulate the closest real situation by software. The preset proportional coefficient and the related preset threshold in the formula are set by the person skilled in the art according to the actual situation or obtained by a large amount of data simulation.
[0087] When the overall state of the transaction is evaluated according to the transaction coefficient JY, the transaction coefficient JY is matched and analyzed with a preset transaction evaluation threshold value;
[0088] If the transaction coefficient is less than the transaction evaluation threshold value, it is determined that the overall load pressure of the transaction is small, and a hand-in signal is generated;
[0089] If the transaction coefficient is not less than the transaction evaluation threshold value and the duration is not greater than v, v is a positive integer and can be 20, the unit is second, it is determined that the overall load pressure of the transaction is normal and a hand-in signal is generated;
[0090] If the transaction coefficient is not less than the transaction evaluation threshold value and the duration is greater than v, it is determined that the overall load pressure of the transaction is large, and a hand-in signal is generated;
[0091] The transaction coefficient, the hand-in signal, the hand-in signal and the hand-in signal constitute a transaction analysis set.
[0092] In the embodiment of the application, when the transaction coefficient is analyzed and evaluated, the duration thereof is monitored, errors caused by data fluctuations can be eliminated, the stability of transaction processing monitoring and analysis can be improved, so that accurate and efficient regulation and control can be implemented.
[0093] The cross-chain regulation module is used to adaptively and dynamically implement cross-chain data interaction between the main chain and the secondary chain according to the main evaluation set and the secondary evaluation set and the transaction analysis set, and the specific steps include:
[0094] The main evaluation set and the transaction analysis set are evaluated together to determine whether cross-chain data interaction is needed, if the main evaluation set contains a main abnormal signal, a first cross-chain instruction is generated, if the main evaluation set contains a main normal signal and the transaction analysis set contains a hand-in signal, a second cross-chain instruction is generated;
[0095] According to the first cross-chain instruction and the second cross-chain instruction, the main chain and the selected secondary chain in the secondary evaluation set are controlled to perform cross-chain transaction.
[0096] In the embodiment of the application, independent monitoring and analysis are performed from the aspects of the main chain, the secondary chain and the transaction, and the analysis results of each aspect are integrated together, the running state of the main chain is evaluated from different aspects, and the cross-chain transaction processing of the main chain and the secondary chain is adaptively implemented, which can effectively improve the effect of the main chain running and transaction processing.
[0097] Embodiment two
[0098] As shown in Figure 2 A multi-blockchain cross-chain transaction processing method, the specific steps include:
[0099] The data of the main chain and the operation of the plurality of side chains is monitored and preprocessed to obtain a main monitoring set and a secondary monitoring set;
[0100] According to the running state of the main chain and the plurality of side chains being evaluated according to the main monitoring set and the auxiliary monitoring set, a main evaluation set containing a main optimal signal, a main positive signal and a main abnormal signal and an auxiliary evaluation set containing a plurality of auxiliary coefficients, a selected auxiliary chain and an alternative auxiliary chain are obtained;
[0101] In a preset monitoring period, the transaction of the transaction processing platform is monitored and counted, and feature extraction is performed, so as to obtain a transaction processing set containing traffic processing data and online processing data;
[0102] The transaction processing set is calculated and analyzed, so as to obtain a transaction analysis set containing transaction coefficients;
[0103] According to the main evaluation set and the auxiliary evaluation set and the transaction analysis set, the cross-chain data interaction between the main chain and the auxiliary chain is adaptively and dynamically implemented.
[0104] Embodiment three
[0105] As Figure 3 shown is a structural schematic diagram of a computer device for implementing a multi-blockchain cross-chain transaction processing system according to an embodiment of the present application.
[0106] The computer device can include a processor, a memory and a bus, and can further include a computer program stored in the memory and executable on the processor, such as a multi-blockchain cross-chain transaction processing program.
[0107] The memory includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (such as an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory can be an internal storage unit of the computer device, such as a mobile hard disk of the computer device. In other embodiments, the memory can also be an external storage device of the computer device, such as a plug-in mobile hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the memory can include both an internal storage unit and an external storage device of the computer device. The memory can be used not only to store application software and various data installed on the computer device, such as the code of a multi-blockchain cross-chain transaction processing program, but also to temporarily store data that has been output or will be output.
[0108] The processor in some embodiments can be composed of integrated circuits, for example, can be composed of a single packaged integrated circuit, or can be composed of multiple packaged integrated circuits of the same function or different functions, including one or more central processing units (CPU), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor is the control core of the computer device, and connects various components of the computer device through various interfaces and lines, and executes programs or modules stored in the memory (such as a multi-block chain cross-chain transaction processing program), and calls data stored in the memory, to perform various functions and process data of the computer device.
[0109] The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize the connection and communication between the memory and at least one processor, etc.
[0110] Figure 3 Only the computer device with components is shown, and those skilled in the art can understand that, Figure 3 The structure shown does not constitute a limitation on the computer device, and can include fewer or more components than shown, or combine certain components, or different component arrangements.
[0111] For example, although not shown, the computer device can also include a power supply (such as a battery) for powering various components. Preferably, the power supply can be connected to the at least one processor logic through a power management device, so as to realize functions such as charge management, discharge management, and power consumption management through the power management device. The power supply can also include one or more direct current or alternating current power supplies, recharging devices, power failure detection circuits, power converters or inverters, power state indicators, and any other components. The computer device can also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which are not described here.
[0112] The computer device can also include a network interface, which can optionally include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), and is usually used to establish a communication connection between the computer device and other computer devices.
[0113] The computer device can further include a user interface, which can be a display, an input unit such as a keyboard, and optionally a standard wired interface, a wireless interface. Optionally, in some embodiments, the display can be an LED display, a liquid crystal display, a touch liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, and the like. The display can also be appropriately referred to as a display screen or a display unit, for displaying information processed in the computer device and for displaying a visualized user interface.
[0114] It should be understood that the embodiments are for illustration only, and are not limited in scope by the structure described.
[0115] The multi-blockchain cross-chain transaction processing program stored in the memory of the computer device is a combination of a plurality of instructions.
[0116] The specific implementation method of the processor on the above instructions can refer to Figures 1 to 2 The description of the related steps in the corresponding embodiments will not be repeated here.
[0117] The modules / units integrated in the computer device, if realized in the form of software function units and sold or used as independent products, can be stored in a computer readable storage medium. The computer readable storage medium can be volatile or non-volatile. For example, the computer readable medium can include any entity or device capable of carrying computer program code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM).
[0118] The application further provides a computer readable storage medium, the readable storage medium stores a computer program, and the computer program is executed by a processor of a computer device.
[0119] In several embodiments provided by the present application, it should be understood that the disclosed method can be implemented in other ways. For example, the above-described application embodiments are merely illustrative. For example, the division of modules is only a logical function division. In actual implementation, another division manner can be used.
[0120] The modules described as separate components can or can not be physically separated, and the components shown as modules can or can not be physical units, i.e., they can be located in one place, or distributed on multiple network units. According to actual needs, some or all of the modules can be selected to achieve the purpose of the present embodiment.
[0121] In addition, each function module in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware, or in the form of hardware plus software function module.
[0122] It is obvious for those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and the present application can be realized in other specific forms without departing from the essential characteristics of the present application.
[0123] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and not to limit the present application. Although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application can be modified or replaced equivalently without departing from the spirit and scope of the technical solutions of the present application.
Claims
1. A multi-blockchain cross-chain transaction processing system, characterized in that, The blockchain combination module, the blockchain processing module, the transaction statistics module, the transaction evaluation module, and the cross-chain regulation module are included. The blockchain combination module includes a main chain and a plurality of side chains connected to the main chain. The blockchain processing module monitors and preprocesses various data of the main chain and the plurality of side chains during operation to obtain a main monitoring set and a side monitoring set. The operation states of the main chain and the plurality of side chains are evaluated based on the main monitoring set and the side monitoring set to obtain a main evaluation set and a side evaluation set. The total number of CPU operation times A1 and the total CPU operation time A2 of all nodes on the main chain, and the total number of target CPU utilization times A10 and the total CPU utilization time A20 are obtained in the main monitoring set, and the values of the four are extracted and calculated by the formula ZZ=a1×A10 / A1+a2×A20 / A2 to obtain the main shape coefficient ZZ of the main chain; in the formula, a1 and a2 are different proportional coefficients and both take values in the range of (0, 10). When the main shape coefficient ZZ is used to evaluate the operation state of the main chain as a whole, the main shape coefficient ZZ is matched and analyzed with the preset main shape threshold ZZYmin and the main shape threshold ZZYmax to obtain the main evaluation set containing the main optimal signal, the main positive signal and the main abnormal signal. The total number of CPU operation times B1 and the total CPU operation time B2 of all nodes on each side chain on the same day, and the total number of selected CPU utilization times B10 and the total CPU utilization time B20 are obtained, and the values of the four are extracted and calculated by the formula FZ=(b1×B10 / B1+b2×B20 / B2) / JS to obtain the side shape coefficient FZ of the side chain; in the formula, b1 and b2 are different proportional coefficients and both take values in the range of (0, 5), and JS is the total number of all nodes on the side chain. The plurality of side shape coefficients FZ are arranged in ascending order, and the side chain corresponding to the side shape coefficient FZ at the top of the side shape threshold is set as the selected side chain, and the side chains corresponding to the k side shape coefficients FZ after the top are set as the alternative side chains, and k is a positive integer greater than 2; the plurality of side shape coefficients, the selected side chain and the alternative side chain constitute the side evaluation set. The transaction statistics module is used to monitor and statistically process the transaction of the transaction processing platform in a preset monitoring period, and to extract features to obtain a transaction processing set, which includes traffic processing data and online processing data. The transaction evaluation module is used to calculate and analyze the transaction processing set to obtain a transaction analysis set containing a transaction coefficient, including: The total traffic value C1, the total number of online users C2 and the total online time C3 in the transaction processing set are obtained, and the values of the three are extracted and calculated to obtain the transaction coefficient JY of the main chain. The transaction coefficient JY is matched and analyzed with the preset transaction evaluation threshold, if the transaction coefficient is less than the transaction evaluation threshold, an optimal transaction signal is generated; if the transaction coefficient is not less than the transaction evaluation threshold and the duration is not greater than v, a positive transaction signal is generated; if the transaction coefficient is not less than the transaction evaluation threshold and the duration is greater than v, an abnormal transaction signal is generated; the transaction coefficient, the optimal transaction signal, the positive transaction signal and the abnormal transaction signal constitute the transaction analysis set. The cross-chain regulation module is used to adaptively and dynamically implement cross-chain data interaction between the main chain and the secondary chain based on the main evaluation set, the secondary evaluation set, and the transaction analysis set, including: The main evaluation set and the transaction analysis set are jointly evaluated to determine whether cross-chain data interaction is required. If the main evaluation set contains a primary negative signal, a first cross-chain instruction is generated. If the main evaluation set contains a primary positive signal and the transaction analysis set contains a negative signal, a second cross-chain instruction is generated. Cross-chain transactions are controlled between the main chain and the selected secondary chain in the secondary evaluation set according to the first and second cross-chain instructions.
2. The multi-chain blockchain cross-chain transaction processing system of claim 1, wherein, Monitoring, statistics, and preprocessing of various data points during the operation of the main chain and several side chains, including: Get the total number of CPU runs and the total CPU running time of all nodes on the main chain for the day and mark them as A1 and A2 respectively; get the CPU utilization of all nodes on the main chain for the day, set the CPU utilization that is greater than the standard CPU utilization as the target CPU utilization, count the total number of times the target CPU utilization occurs and the total running time, and mark them as A10 and A20 respectively. The main monitoring set is obtained by arranging and combining the total number of CPU runs and total CPU run time of all nodes marked on the main chain, the total number of occurrences of the target CPU utilization and the total run time.
3. A multi-blockchain cross-chain transaction processing system according to claim 2, characterized in that, Get the total number of CPU runs and the total CPU run time of all nodes on each subchain for the day and mark them as B1 and B2 respectively; get the CPU utilization of all nodes on each subchain for the day, set the CPU utilization that is not greater than the standard CPU utilization as the selected CPU utilization, count the total number of times the selected CPU utilization appears and the total run time, and mark them as B10 and B20 respectively. The sub-monitoring set is obtained by arranging and combining the total number of CPU runs and total CPU run time of all nodes marked on each sub-chain, the total number of times the selected CPU utilization appears, and the total run time.
4. The multi-chain blockchain cross-chain transaction processing system of claim 1, wherein, During the preset monitoring period, the transaction status of the transaction processing platform is monitored, statistically analyzed, and feature extracted, including: The total traffic volume, total number of online users, and total online time generated during the monitoring period were statistically analyzed to obtain traffic data and online data. Label the total traffic value, total number of online users, and total online time in the traffic data and online data as C1, C2, and C3, respectively; The total value of the marked traffic, the total number of online users, and the total online time are respectively set as traffic processing data and online processing data. The traffic processing data and online processing data constitute the transaction processing set.
5. The multi-chain blockchain cross-chain transaction processing system of claim 1, wherein, Extract the values of the three and calculate the transaction coefficient JY of the main chain using the formula JY=c1×C1 / C10+c2×C2 / C20+c3×C3 / C30. In the formula, c1, c2, and c3 are different proportional coefficients, all of which take values in the range (0, 8). C10 is the preset standard total traffic value, C20 is the preset standard total number of online users, and C30 is the preset standard total online time. 6.A method for multi-blockchain cross-chain transaction processing, applied to the multi-blockchain cross-chain transaction processing system of any one of claims 1-5, characterized in that, include: The main chain and several side chains are monitored, statistically analyzed, and preprocessed to obtain the main monitoring set and the secondary monitoring set. According to the main monitoring set and the secondary monitoring set, the running states of the main chain and the plurality of side chains are evaluated, a main evaluation set containing a main optimal signal, a main positive signal and a main different signal is obtained, and a secondary evaluation set containing a plurality of secondary state coefficients, a selected secondary chain and an alternative secondary chain is obtained; In a preset monitoring period, the transaction situation of the transaction processing platform is monitored and counted, and feature extraction is performed, to obtain a transaction processing set containing traffic processing data and online processing data; The transaction processing set is calculated and analyzed to obtain a transaction analysis set containing transaction coefficients; According to the main evaluation set and the secondary evaluation set and the transaction analysis set, the cross-chain data interaction between the main chain and the secondary chain is dynamically implemented in a self-adaptive manner.
Citation Information
Patent Citations
Method and device for improving performance of main chain by adopting side chains based on block chain, and medium
CN111935211A
Multi-access edge computing node with distributed ledger
US20220038289A1