WO2022048361A1 - Blockchain-based data processing method and apparatus, and storage medium - Google Patents

Blockchain-based data processing method and apparatus, and storage medium Download PDF

Info

Publication number
WO2022048361A1
WO2022048361A1 PCT/CN2021/109433 CN2021109433W WO2022048361A1 WO 2022048361 A1 WO2022048361 A1 WO 2022048361A1 CN 2021109433 W CN2021109433 W CN 2021109433W WO 2022048361 A1 WO2022048361 A1 WO 2022048361A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
node device
preset
evaluation value
node
Prior art date
Application number
PCT/CN2021/109433
Other languages
French (fr)
Chinese (zh)
Inventor
张伟
Original Assignee
深圳壹账通智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2022048361A1 publication Critical patent/WO2022048361A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0796Safety measures, i.e. ensuring safe condition in the event of error, e.g. for controlling element
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2236Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application relates to the technical field of blockchain, and in particular to a method, device and storage medium for data processing based on blockchain.
  • the blockchain is essentially a continuously growing distributed database maintained by multiple parties, also known as a distributed shared ledger.
  • the inventor realized that its core lies in a distributed cryptographic ledger whose timing cannot be tampered with. and distributed consensus mechanism to establish a trust relationship between each other, programming and operating data through smart contracts composed of automated scripts, and finally realizing the evolution from information interconnection to value interconnection.
  • the problem of how to ensure the data consistency of cross-chain operations needs to be solved urgently.
  • the embodiments of the present application provide a blockchain-based data processing method, device, and storage medium, which can ensure data consistency in cross-chain operations.
  • an embodiment of the present application provides a blockchain-based data processing method, which is applied to a first node device in a blockchain system, where the blockchain system includes the first node device and a plurality of first node devices.
  • the method includes:
  • a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution of each second node device through the preset compensation mechanism condition;
  • an embodiment of the present application provides a blockchain-based data processing device, which is applied to a first node device in a blockchain system, where the blockchain system includes the first node device and a plurality of first node devices.
  • the device includes:
  • a sending unit configured to send a pre-debug operation instruction to each second node device in the plurality of second node devices, and instruct each second node device to perform a pre-debug operation corresponding to the pre-debug operation instruction , to lock the resource corresponding to the pre-debugging operation, and return a success response message that the pre-debugging operation is successfully executed to the first node device;
  • a compensation unit configured to add a preset compensation mechanism to the interface converter of the first node device when the first node device is in a down state, so as to obtain each second node device through the preset compensation mechanism Execution of pre-commissioning operations;
  • the executing unit is configured to execute the next stage operation when the execution status of the pre-debugging operation shows that each second node device in the plurality of second node devices successfully executes the pre-debugging operation.
  • embodiments of the present application provide an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be processed by the above-mentioned processing implements the following methods:
  • a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution of each second node device through the preset compensation mechanism condition;
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to execute the following method:
  • a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution of each second node device through the preset compensation mechanism condition;
  • transaction compensation is implemented through the interface converter, which solves the problem of locked resources, and does not need to add other services, so that the network architecture is concise, resources are saved, the complexity of the architecture is reduced, and the cross-chain operation can be ensured. Data consistency.
  • FIG. 1 is a schematic flowchart of a blockchain-based data processing method provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of another blockchain-based data processing method provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a first node device provided by an embodiment of the present application.
  • 4A is a block diagram of functional units of a blockchain-based data processing device provided by an embodiment of the present application.
  • FIG. 4B is a block diagram of functional units of another blockchain-based data processing apparatus provided by an embodiment of the present application.
  • This application may relate to the field of artificial intelligence technology, for example, relevant data may be acquired and processed based on artificial intelligence technology.
  • This application can be applied to data processing scenarios based on blockchain, for example, it can be specifically applied to the data processing scenarios of medical data in digital medicine, such as medical images, or can be specifically applied to the data processing scenarios of transaction data in financial technology. ,etc.
  • the data involved in this application, such as medical data and transaction data, can be stored in the blockchain.
  • the electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, desktop computers, vehicle-mounted devices, wearable devices Devices (smart watches, smart bracelets, wireless headsets, AR/VR devices, smart glasses), computing devices or other processing devices connected to wireless modems, and various forms of user equipment (UE), mobile Station (mobile station, MS), terminal device (terminal device) and so on.
  • UE user equipment
  • MS mobile Station
  • terminal device terminal device
  • FIG. 1 is a schematic flowchart of a blockchain-based data processing method provided by an embodiment of the present application. As shown in the figure, applied to a first node device in a blockchain system, the block The chain system includes the first node device and a plurality of second node devices, and the blockchain-based data processing method includes:
  • the first node device may be a coordinator
  • the second node device may be a participant
  • both the first node device and the second node device are a user in the blockchain.
  • the embodiments of this application are applied to the blockchain
  • the first node device in the chain system, the blockchain system may include the first node device and a plurality of second node devices.
  • the first node device may send a precommit (precommit) operation instruction to each of the plurality of second node devices, and the plurality of second node devices may be other than the first node device in the blockchain system part or all of the node devices, instruct each second node device to perform a pre-debug operation corresponding to the pre-debug operation instruction based on the pre-debug operation instruction, so as to lock the resources corresponding to the pre-debug operation and execute the pre-debug operation.
  • a success response message of successful operation is returned to the first node device, so that each second node device can be debugged.
  • the first node device and the second node device may be in the same chain or different chains, and when they are in different chains, cross-chain data consistency can be guaranteed.
  • the relevant resource may be a resource corresponding to the pre-commissioning operation instruction, for example, may be a bill for a preset time period or a preset location.
  • the preset time period can be set by the user or the system defaults, for example, from 14:25 on September 16, 2018 to 18:16 on July 27, 2020
  • the preset location can be set by the user or the system defaults, for example , Shenzhen Kexing Science Park.
  • the second node device when it performs the precommit operation, it can use git to submit the code, and use the git hook called precommit to automatically execute the corresponding script detection code when the git commit command is called. If there is an error in the detection, the commit code is blocked. , it will not be able to push, ensuring that the error code is only local, and the problem will not be submitted to the remote warehouse.
  • the first node device can also call the interface converter adapter transaction query interface through the web page, and the adapter then calls the peer's unfinished transaction query interface to check the execution of the first stage of the unfinished transaction.
  • the first node device may correspond to an interface converter adapter, which may be an independent hardware interface device, allowing the hardware or electronic interface to be connected with other hardware or electronic interfaces, and may also be an information interface.
  • the adapter may be one of the following: a power adapter, a tripod base adapter, a USB and serial port adapter, etc., which are not limited here.
  • a preset compensation mechanism may be added to the interface converter of the first node device, so as to obtain each second node through the preset compensation mechanism.
  • the above-mentioned preset compensation mechanism may be a transaction compensation mechanism, which may be set by the user or the system defaults.
  • the first node device may add some mechanisms to the adapter to complete the compensation mechanism of the transaction. Since the adapter has the certificates of all organizations, it can send transaction requests to the peers of each organization.
  • the preset compensation mechanism can perform compensation according to certain conditions, for example, according to the level, according to the difficulty of the task, etc.
  • the mapping relationship between the attribute information of the node device and the compensation parameter can be preset, based on the mapping. The relationship can determine compensation parameters corresponding to different second node devices, compensate the second node devices based on the compensation parameters, and acquire the pre-commissioning operation execution status of each second node device.
  • a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution status of each second node device through the preset compensation mechanism, which may include the following: step:
  • a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution status of each second node device through the preset compensation mechanism.
  • the attribute information may be at least one of the following: level, task difficulty, priority, processing efficiency, network speed, etc., which are not limited herein.
  • the first node device may determine that the first node device has received the N success response messages, where N is a natural number, and may also determine that the first node device has not received M success response messages based on the N success response messages.
  • the attribute information of M second node devices can be obtained, and M pieces of attribute information can be obtained. Specifically, M pieces of attribute information can be obtained respectively through the adapter.
  • the attribute information of each node device in the second node device is obtained, and M pieces of attribute information are obtained, and further, the mapping relationship between the attribute information and the compensation parameters can be stored in the adapter in advance, and then, according to the mapping relationship, the corresponding M pieces of attribute information are determined.
  • Compensation parameters determining a preset compensation mechanism of the interface converter based on the compensation parameters corresponding to the M pieces of attribute information, for example, respectively compensating the corresponding second node device based on the compensation parameters corresponding to the M pieces of attribute information, through the first node device
  • a preset compensation mechanism is added to the interface converter of the device, so as to obtain the execution status of the pre-commissioning operation of each second node device through the preset compensation mechanism. In this way, when the first node device is down, it is possible to smoothly understand the completion of each second node device. The case for pre-debugging operations.
  • determining the N successful response messages that have been received by the first node device is implemented as follows:
  • the interface converter When the probability that the first node device is in the down state is greater than a preset threshold, push a target message to the interface converter, where the target message includes the N pieces of the first node device that have been received. Successful response message.
  • the preset threshold may be set by the user or the system defaults.
  • the adapter can know the successful response message it has received.
  • acquiring the probability that the first node device occurs in the down state may include the following steps:
  • A3. Perform an average calculation according to the plurality of CPU load values to obtain a first average CPU load value
  • A4. Determine the target CPU load level corresponding to the first average CPU load value
  • A6 Perform mean square error calculation according to the plurality of CPU load values to obtain a first mean square error
  • the target weight pair determines the target weight pair corresponding to the target CPU load level, where the target weight pair includes the target first weight and the target second weight value, the first weight of the target is the first weight corresponding to the first evaluation value, and the second target weight is the second weight corresponding to the second evaluation value;
  • A9 Perform a weighted operation according to the first evaluation value of the target, the second evaluation value of the target, the first weight of the target and the second weight of the target to obtain the final evaluation value;
  • A10 Determine the probability of the downtime state corresponding to the final evaluation value according to the mapping relationship between the preset evaluation value and the downtime probability.
  • the above-mentioned preset time period may be set by the user or the system defaults.
  • the first node device may pre-store the mapping relationship between the preset CPU load level and the first evaluation value, the mapping relationship between the preset mean square error and the second evaluation value, and the preset CPU load level and weight.
  • the weight pair may include a first weight of the first evaluation value and a second weight of the second evaluation value, and the sum of the first weight and the first and second weights may be 1.
  • the higher the CPU load level the larger the first weight is, the lower the CPU load level is, and the smaller the first weight is.
  • the first node device may obtain a CPU load curve of the first node device within a preset time period, and sample the CPU load curve to obtain multiple CPU load values.
  • the specific sampling method may be every preset time period. Sampling at intervals or random sampling is not limited here, and the preset time interval can be set by the user or the system defaults.
  • the first node device may perform an average calculation according to multiple CPU load values to obtain a first average CPU load value, and the first node device may also pre-store a mapping relationship between the CPU load value and the CPU load level, and further, The target CPU load level corresponding to the first average CPU load value can be determined according to the mapping relationship, and the target first evaluation value corresponding to the target CPU load level can be determined according to the above-mentioned mapping relationship between the preset CPU load level and the first evaluation value.
  • the mean square error is calculated according to multiple CPU load values, and the first mean square error is obtained.
  • the mean square error reflects the fluctuation of CPU load to a certain extent. Of course, the smaller the mean square error, the better the CPU stability. The larger the mean square error, the worse the CPU stability.
  • the first node device may determine the target second evaluation value corresponding to the first mean square error according to the above-mentioned mapping relationship between the preset mean square error and the second evaluation value.
  • the first node device may determine a target weight pair corresponding to the target CPU load according to the above-mentioned preset mapping relationship between the CPU load and the weight pair, where the target weight pair includes the target first weight and the target first weight.
  • the target weight pair includes the target first weight and the target first weight.
  • Two weights, the first weight of the target is the first weight corresponding to the first evaluation value, and the second target weight is the second weight corresponding to the second evaluation value.
  • the second evaluation value, the first weight of the target and the second weight of the target are weighted to obtain the final evaluation value, that is, the specific formula is as follows:
  • mapping relationship between the preset evaluation value and the downtime probability can also be pre-stored in the adapter, and the downtime state corresponding to the final evaluation value can be determined according to the mapping relationship between the preset evaluation value and the downtime probability. The probability.
  • the CPU load value reflects the connection stability.
  • the larger the CPU load value the more stable the CPU is.
  • the mean square error reflects the CPU stability. The smaller the mean square error, the more stable the CPU is.
  • the weight corresponding to the CPU load value and the weight corresponding to the mean square error can be dynamically adjusted, so that the probability of occurrence of the down state can be accurately evaluated.
  • the first node device may show that each second node device in the plurality of second node devices has successfully performed the pre-commissioning operation in the pre-debugging operation execution status, and then the next-stage operation may be performed, and the next-stage operation may be It is a commit operation or a rollback operation.
  • the rollback mechanism operation of the interface converter is invoked through a preset page .
  • the preset page may be a preset web page, and the preset web page may be preset or system default.
  • the first node device may display that at least one second node device among the plurality of second node devices fails to perform the pre-debugging operation when the pre-debugging operation is performed, and then the rollback mechanism of the interface converter is invoked through a preset page Operation rollback.
  • step 103 performing the next stage operation, may be implemented as follows:
  • the interface converter is invoked through a preset page to perform preset operations.
  • the interfaces can be provided by the peers of the underlying blockchain.
  • the interfaces include query interfaces for all unfinished transactions, for example, the commit interface in the second stage of the adapter transaction, and the rollback interface in the second stage.
  • the commit operation of the adapter can be called through the web page to execute the commit operation, or the rollback interface of the adapter can also be called through the web page to execute the rollback operation.
  • the embodiment of the present application may include the following steps:
  • the coordinator sends a precommit operation to the participant, and the participant executes the precommit operation, locks the relevant resources, and returns a successful response to the coordinator.
  • Phase 2 operations cannot be sent. At this point, the resources on the participant cannot be released due to locking. affect subsequent operations.
  • the second stage operation of the adapter can be called through the web page, that is, the commit or rollback operation can be performed.
  • the specific implementation situation needs to be determined with the specific business scenario. If the first stage of a participant is not successfully executed, the rollback operation of the second stage of the adapter is called through the web page.
  • the coordinator can receive the response message returned by each executor.
  • Step 101 is performed when the target vein image is successfully matched with the preset vein template.
  • the preset vein template and the preset evaluation value may be stored in the first node device in advance, and the preset evaluation value may be set by the user or the system defaults.
  • the evaluation value can be obtained by processing the target vein image based on artificial intelligence technology.
  • the first node device may acquire the target vein image, and use at least one image quality evaluation index to evaluate the target vein image to obtain the target image quality evaluation value, and the image quality evaluation index may be at least one of the following: information entropy, Mean square error, sharpness, average gradient, etc., are not limited here.
  • the first node device may match the target vein image with the preset vein template when the target image quality evaluation value is greater than the preset evaluation value, and when the target vein image and the preset vein template are successfully matched, perform step 101, In this way, the vein identification efficiency can be improved.
  • determining the target image quality evaluation value of the target vein image may include the following steps:
  • the first node device can use a multi-scale decomposition algorithm to perform multi-scale feature decomposition on the target vein image to obtain low-frequency feature components and high-frequency feature components
  • the multi-scale decomposition algorithm can be at least one of the following: pyramid transformation algorithm, wavelet Transformation, contourlet transformation, shearlet transformation, etc., are not limited here.
  • the low-frequency feature component can be divided into multiple regions, and the area of each region is the same or different.
  • the low-frequency feature components reflect the main features of the image, and the high-frequency feature components reflect the details of the image.
  • the first node device can determine the information entropy corresponding to each of the multiple areas, obtain multiple information entropies, and determine the average information entropy and the target mean square error according to the multiple information entropies, and the information entropy reflects the image to a certain extent.
  • the amount of information, the mean square error can reflect the stability of the image information.
  • the mapping relationship between the preset mean square error and the adjustment coefficient may be pre-stored in the first node device, and further, the target adjustment coefficient corresponding to the target mean square error may be determined according to the mapping relationship.
  • the value range of the adjustment coefficient It can be -0.15 to 0.15.
  • a preset mapping relationship between information entropy and evaluation value may be pre-stored in the first node device, and further, a first evaluation value corresponding to the target information entropy may be determined according to the preset mapping relationship between information entropy and evaluation value .
  • the first node device may acquire target shooting parameters corresponding to the target vein image, and the target shooting parameters may be at least one of the following: ISO, exposure duration, white balance parameters, focusing parameters, etc., which are not limited herein.
  • the first node device may also pre-store the mapping relationship between the preset shooting parameters and the low-frequency weights, and further, the target low-frequency weights corresponding to the target shooting parameters may be determined according to the mapping relationship between the preset shooting parameters and the low-frequency weights.
  • the target high frequency weight is determined according to the target low frequency weight
  • the target low frequency weight + the target high frequency weight 1.
  • the first node device may also store a preset mapping relationship between the distribution density of feature points and the evaluation value in advance, and further, according to the preset mapping relationship between the distribution density of feature points and the evaluation value, determine the distribution of target feature points.
  • the second evaluation value corresponding to the density, and finally, according to the first evaluation value, the second evaluation value, the target low-frequency weight and the target high-frequency weight, a weighted operation is performed to obtain the target image quality evaluation value of the target vein image, specifically as follows:
  • Target image quality evaluation value first evaluation value * target low frequency weight + second evaluation value * target high frequency weight
  • the image quality evaluation can be performed based on the two dimensions of the low-frequency component and the high-frequency component of the vein image, and an evaluation parameter suitable for the shooting environment, that is, the target image quality evaluation value, can be accurately obtained.
  • the blockchain-based data processing method described in the embodiments of this application is applied to the first node device in the blockchain system, and the blockchain system includes the first node device and a plurality of second node devices , sending a pre-debugging operation instruction to each second node device in the plurality of second node devices, and instructing each second node device to perform a pre-debugging operation corresponding to the pre-debugging operation instruction, so as to The resource is locked, and a successful response message indicating that the pre-debugging operation is successfully performed is returned to the first node device.
  • a preset compensation mechanism is added to the interface converter of the first node device.
  • FIG. 2 is a schematic flowchart of a blockchain-based data processing method provided by an embodiment of the present application. The method is applied to a first node device in a blockchain system.
  • the blockchain system includes For the first node device and multiple second node devices, as shown in the figure, this blockchain-based data processing method includes:
  • the blockchain-based data processing method described in the embodiments of this application realizes transaction compensation through the interface converter, solves the problem of locked resources, and does not need to add other services, which makes the network architecture concise and saves money resources, reduce the complexity of the architecture, and ensure the data consistency of cross-chain operations.
  • FIG. 3 is a schematic structural diagram of a first node device provided by an embodiment of the present application, where the first node device includes a processor and a memory.
  • the first node device may further include a communication interface.
  • the first node device includes a processor, a memory, a communication interface, and one or more programs, the one or more programs are stored in the memory, and are configured to be executed by the processor, applying
  • the blockchain system includes the first node device and a plurality of second node devices.
  • the above program includes instructions for executing the following steps:
  • a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution of each second node device through the preset compensation mechanism condition;
  • the blockchain system includes the first node device and multiple second node devices, and sends the data to each second node device in the multiple second node devices.
  • Pre-debug operation instruction and instruct each second node device to perform pre-debug operation corresponding to the pre-debug operation instruction, so as to lock the resources corresponding to the pre-debug operation, and return a success response message that the pre-debug operation is successful
  • a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution of each second node device through the preset compensation mechanism If the pre-debugging operation execution status shows that each second node device in the plurality of second node devices successfully performs the pre-debugging operation, the next stage operation is performed.
  • the above program also includes instructions for performing the following steps:
  • the rollback mechanism operation of the interface converter is invoked through a preset page .
  • the above program includes instructions for performing the following steps:
  • the interface converter is invoked through a preset page to perform preset operations.
  • the above program includes: Instructions to perform the following steps:
  • N is a natural number
  • a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution status of each second node device through the preset compensation mechanism.
  • the above program includes instructions for performing the following steps:
  • the interface converter When the probability that the first node device is in the down state is greater than a preset threshold, push a target message to the interface converter, where the target message includes the N pieces of the first node device that have been received. Successful response message.
  • the above program also includes instructions for performing the following steps:
  • the step of sending a pre-commissioning operation instruction to each of the plurality of second node devices is performed.
  • the above program includes instructions for performing the following steps:
  • the target low-frequency weights corresponding to the target shooting parameters are determined, and the target high-frequency weights are determined according to the target low-frequency weights;
  • the second evaluation value corresponding to the distribution density of the target feature point is determined
  • a weighted operation is performed according to the first evaluation value, the second evaluation value, the target low-frequency weight and the target high-frequency weight, so as to obtain a target image quality evaluation value of the target vein image.
  • the first node device includes corresponding hardware structures and/or software modules for performing each function.
  • the present application can be implemented in hardware or in the form of a combination of hardware and computer software, in combination with the units and algorithm steps of each example described in the embodiments provided herein. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
  • the first node device may be divided into functional units according to the foregoing method examples.
  • each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units. It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division, and other division methods may be used in actual implementation.
  • FIG. 4A is a block diagram of functional units of the blockchain-based data processing apparatus 400 involved in the embodiment of the present application.
  • the blockchain-based data processing device 400 is applied to a first node device in a blockchain system, where the blockchain system includes the first node device and a plurality of second node devices, and the device 400 includes :
  • the sending unit 401 is configured to send a pre-debug operation instruction to each second node device in the plurality of second node devices, and instruct each second node device to execute the pre-debug corresponding to the pre-debug operation instruction operation, to lock the resource corresponding to the pre-debugging operation, and return a success response message that the pre-debugging operation is successfully executed to the first node device;
  • the compensation unit 402 is configured to add a preset compensation mechanism to the interface converter of the first node device when the first node device is in a down state, so as to obtain each second node through the preset compensation mechanism The implementation of pre-commissioning operations of the equipment;
  • the executing unit 403 is configured to execute the next stage operation when the execution status of the pre-debugging operation shows that each second node device in the plurality of second node devices successfully executes the pre-debugging operation.
  • the blockchain-based data processing device described in the embodiments of this application is applied to the first node device in the blockchain system, and the blockchain system includes the first node device and a plurality of second node devices , sending a pre-debugging operation instruction to each second node device in the plurality of second node devices, and instructing each second node device to perform a pre-debugging operation corresponding to the pre-debugging operation instruction, so as to The resource is locked, and a successful response message indicating that the pre-debugging operation is successfully performed is returned to the first node device.
  • a preset compensation mechanism is added to the interface converter of the first node device.
  • the apparatus 400 is further configured to implement the following functions:
  • the execution unit 403 is configured to call the pre-debugging operation through a preset page when it is displayed that at least one second node device in the plurality of second node devices fails to perform the pre-debugging operation successfully.
  • the interface converter's rollback mechanism operates.
  • the executing unit 403 is specifically configured to:
  • the interface converter is invoked through a preset page to perform preset operations.
  • the compensation Unit 402 is specifically used for:
  • N is a natural number
  • a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution status of each second node device through the preset compensation mechanism.
  • the compensation unit is specifically configured to:
  • the interface converter When the probability that the first node device is in the down state is greater than a preset threshold, push a target message to the interface converter, where the target message includes the N pieces of the first node device that have been received. Successful response message.
  • FIG. 4B is another modified structure of the blockchain-based data processing apparatus shown in FIG. 4A , which, compared with FIG. 4A , may further include an acquisition unit 404 , a determination unit 405 and The matching unit 406 is as follows:
  • the obtaining unit 404 is used to obtain the target vein image
  • the determining unit 405 is configured to determine the target image quality evaluation value of the target vein image
  • the matching unit 406 is configured to match the target vein image with the preset vein template when the target image quality evaluation value is greater than a preset threshold;
  • the sending unit 401 executes the step of sending a pre-commissioning operation instruction to each of the plurality of second node devices .
  • the determining unit 405 is specifically configured to:
  • the target low-frequency weights corresponding to the target shooting parameters are determined, and the target high-frequency weights are determined according to the target low-frequency weights;
  • the second evaluation value corresponding to the distribution density of the target feature point is determined
  • a weighted operation is performed according to the first evaluation value, the second evaluation value, the target low-frequency weight and the target high-frequency weight, so as to obtain a target image quality evaluation value of the target vein image.
  • Embodiments of the present application further provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to execute part or all of the steps of any method described in the above method embodiments , the above computer includes a first node device.
  • the storage medium involved in this application may be a computer-readable storage medium.
  • the storage medium involved in the present application such as a computer-readable storage medium, may be non-volatile or volatile.
  • Embodiments of the present application further provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute any one of the method embodiments described above. some or all of the steps of the method.
  • the computer program product may be a software installation package, and the above-mentioned computer includes a first node device.
  • the computer program product may be a software installation package.
  • the disclosed apparatus may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the above-mentioned units is only a logical function division.
  • multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.
  • the units described above as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the above-mentioned integrated units if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable memory.
  • the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or all or part of the technical solution, and the computer software product is stored in a memory.
  • a computer device which may be a personal computer, a server, or a network device, etc.
  • the aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The present application relates to the technical field of blockchains, and in particular to a blockchain-based data processing method and apparatus, and a storage medium. The method comprises: sending a pre-commit operation instruction to each second node device among a plurality of second node devices, instructing each second node device to execute a pre-commit operation that corresponds to the pre-commit operation instruction, so as to lock a resource corresponding to the pre-commit operation, and returning, to a first node device, a success response message which indicates that the pre-commit operation is successfully executed; when the first node device is in a crash state, adding a preset compensation mechanism to an interface adapter of the first node device, so as to acquire, by means of the preset compensation mechanism, a pre-commit operation execution situation of each second node device; and when the pre-commit operation execution situation shows that each of the plurality of second node devices has successfully executed the pre-commit operation, executing a next-stage operation. By using the embodiments of the present application, the efficiency of blockchain-based data processing can be improved.

Description

基于区块链的数据处理方法、装置及存储介质Blockchain-based data processing method, device and storage medium
本申请要求于2020年9月3日提交中国专利局、申请号为202010913948.1,发明名称为“基于区块链的数据处理方法、装置及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202010913948.1 and the invention titled "Blockchain-based data processing method, device and storage medium" submitted to the China Patent Office on September 3, 2020, the entire content of which is approved by Reference is incorporated in this application.
技术领域technical field
本申请涉及区块链技术领域,具体涉及一种基于区块链的数据处理方法、装置及存储介质。The present application relates to the technical field of blockchain, and in particular to a method, device and storage medium for data processing based on blockchain.
背景技术Background technique
区块链,实质上是由多方参与共同维护的一个持续增长的分布式数据库,也称为分布式共享账本,发明人意识到,其核心在于通过分布式是网络、时序不可篡改的密码学账本及分布式共识机制建立彼此之间的信任关系,通过自动化脚本组成的智能合约来编程和操作数据,最终实现由信息互联向价值互联的进化。目前来看,如何保证跨链操作的数据一致性的问题亟待解决。The blockchain is essentially a continuously growing distributed database maintained by multiple parties, also known as a distributed shared ledger. The inventor realized that its core lies in a distributed cryptographic ledger whose timing cannot be tampered with. and distributed consensus mechanism to establish a trust relationship between each other, programming and operating data through smart contracts composed of automated scripts, and finally realizing the evolution from information interconnection to value interconnection. At present, the problem of how to ensure the data consistency of cross-chain operations needs to be solved urgently.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种基于区块链的数据处理方法、装置及存储介质,能够保证跨链操作的数据一致性。The embodiments of the present application provide a blockchain-based data processing method, device, and storage medium, which can ensure data consistency in cross-chain operations.
第一方面,本申请实施例提供一种基于区块链的数据处理方法,应用于区块链系统中的第一节点设备,所述区块链系统包括所述第一节点设备和多个第二节点设备,所述方法包括:In a first aspect, an embodiment of the present application provides a blockchain-based data processing method, which is applied to a first node device in a blockchain system, where the blockchain system includes the first node device and a plurality of first node devices. For a two-node device, the method includes:
向所述多个第二节点设备中的每一第二节点设备发送预调试操作指令,并指示该每一第二节点设备执行与所述预调试操作指令对应的预调试操作,以对所述预调试操作对应的资源进行加锁,并将执行所述预调试操作成功的成功响应消息返回给所述第一节点设备;Send a pre-debug operation instruction to each second node device in the plurality of second node devices, and instruct each second node device to perform a pre-debug operation corresponding to the pre-debug operation instruction, so as to perform a pre-debug operation on the Locking the resource corresponding to the pre-commissioning operation, and returning a success response message indicating that the pre-commissioning operation is successful to the first node device;
在所述第一节点设备处于宕机状态时,通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况;When the first node device is in a down state, a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution of each second node device through the preset compensation mechanism condition;
在所述预调试操作执行情况显示所述多个第二节点设备中的每一第二节点设备均成功执行所述预调试操作,则执行下一阶段操作。When the execution status of the pre-commissioning operation shows that each second node device in the plurality of second node devices successfully performs the pre-commissioning operation, the next stage of operation is performed.
第二方面,本申请实施例提供一种基于区块链的数据处理装置,应用于区块链系统中的第一节点设备,所述区块链系统包括所述第一节点设备和多个第二节点设备,所述装置包括:In a second aspect, an embodiment of the present application provides a blockchain-based data processing device, which is applied to a first node device in a blockchain system, where the blockchain system includes the first node device and a plurality of first node devices. Two-node device, the device includes:
发送单元,用于向所述多个第二节点设备中的每一第二节点设备发送预调试操作指令,并指示该每一第二节点设备执行与所述预调试操作指令对应的预调试操作,以对所述预调试操作对应的资源进行加锁,并将执行所述预调试操作成功的成功响应消息返回给所述第一节点设备;a sending unit, configured to send a pre-debug operation instruction to each second node device in the plurality of second node devices, and instruct each second node device to perform a pre-debug operation corresponding to the pre-debug operation instruction , to lock the resource corresponding to the pre-debugging operation, and return a success response message that the pre-debugging operation is successfully executed to the first node device;
补偿单元,用于在所述第一节点设备处于宕机状态时,通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况;a compensation unit, configured to add a preset compensation mechanism to the interface converter of the first node device when the first node device is in a down state, so as to obtain each second node device through the preset compensation mechanism Execution of pre-commissioning operations;
执行单元,用于在所述预调试操作执行情况显示所述多个第二节点设备中的每一第二节点设备均成功执行所述预调试操作,则执行下一阶段操作。The executing unit is configured to execute the next stage operation when the execution status of the pre-debugging operation shows that each second node device in the plurality of second node devices successfully executes the pre-debugging operation.
第三方面,本申请实施例提供一种电子设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,以实现以下方法:In a third aspect, embodiments of the present application provide an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be processed by the above-mentioned processing implements the following methods:
向多个第二节点设备中的每一第二节点设备发送预调试操作指令,并指示该每一第二节点设备执行与所述预调试操作指令对应的预调试操作,以对所述预调试操作对应的资源进行加锁,并将执行所述预调试操作成功的成功响应消息返回给第一节点设备;Sending a pre-debug operation instruction to each second node device in the plurality of second node devices, and instructing each second node device to perform a pre-debug operation corresponding to the pre-debug operation instruction, so as to perform a pre-debug operation on the pre-debug Locking the resource corresponding to the operation, and returning a success response message indicating that the pre-debugging operation is successful to the first node device;
在所述第一节点设备处于宕机状态时,通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况;When the first node device is in a down state, a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution of each second node device through the preset compensation mechanism condition;
在所述预调试操作执行情况显示所述多个第二节点设备中的每一第二节点设备均成功执行所述预调试操作,则执行下一阶段操作。When the execution status of the pre-commissioning operation shows that each second node device in the plurality of second node devices successfully performs the pre-commissioning operation, the next stage of operation is performed.
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行以下方法:In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to execute the following method:
向多个第二节点设备中的每一第二节点设备发送预调试操作指令,并指示该每一第二节点设备执行与所述预调试操作指令对应的预调试操作,以对所述预调试操作对应的资源进行加锁,并将执行所述预调试操作成功的成功响应消息返回给第一节点设备;Sending a pre-debug operation instruction to each second node device in the plurality of second node devices, and instructing each second node device to perform a pre-debug operation corresponding to the pre-debug operation instruction, so as to perform a pre-debug operation on the pre-debug Locking the resource corresponding to the operation, and returning a success response message indicating that the pre-debugging operation is successful to the first node device;
在所述第一节点设备处于宕机状态时,通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况;When the first node device is in a down state, a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution of each second node device through the preset compensation mechanism condition;
在所述预调试操作执行情况显示所述多个第二节点设备中的每一第二节点设备均成功执行所述预调试操作,则执行下一阶段操作。When the execution status of the pre-commissioning operation shows that each second node device in the plurality of second node devices successfully performs the pre-commissioning operation, the next stage of operation is performed.
实施本申请实施例,通过接口转换器实现事务补偿,解决了资源被锁定的问题,且不用再添加其他服务,使得网络架构简洁,节约资源,降低架构的复杂度,还能够保证跨链操作的数据一致性。By implementing the embodiments of the present application, transaction compensation is implemented through the interface converter, which solves the problem of locked resources, and does not need to add other services, so that the network architecture is concise, resources are saved, the complexity of the architecture is reduced, and the cross-chain operation can be ensured. Data consistency.
附图说明Description of drawings
图1是本申请实施例提供的一种基于区块链的数据处理方法的流程示意图;1 is a schematic flowchart of a blockchain-based data processing method provided by an embodiment of the present application;
图2是本申请实施例提供的另一种基于区块链的数据处理方法的流程示意图;2 is a schematic flowchart of another blockchain-based data processing method provided by an embodiment of the present application;
图3是本申请实施例提供的一种第一节点设备的结构示意图;FIG. 3 is a schematic structural diagram of a first node device provided by an embodiment of the present application;
图4A是本申请实施例提供的一种基于区块链的数据处理装置的功能单元组成框图;4A is a block diagram of functional units of a blockchain-based data processing device provided by an embodiment of the present application;
图4B是本申请实施例提供的另一种基于区块链的数据处理装置的功能单元组成框图。FIG. 4B is a block diagram of functional units of another blockchain-based data processing apparatus provided by an embodiment of the present application.
具体实施方式detailed description
本申请可涉及人工智能技术领域,比如可以基于人工智能技术对相关的数据进行获取和处理。本申请可应用于基于区块链的数据处理场景,例如,可具体应用于数字医疗中的医疗数据如医疗图像的数据处理场景,又如可具体应用于金融科技中的交易数据的数据处理场景,等等。本申请涉及的数据如医疗数据和交易数据可存储于区块链中。This application may relate to the field of artificial intelligence technology, for example, relevant data may be acquired and processed based on artificial intelligence technology. This application can be applied to data processing scenarios based on blockchain, for example, it can be specifically applied to the data processing scenarios of medical data in digital medicine, such as medical images, or can be specifically applied to the data processing scenarios of transaction data in financial technology. ,etc. The data involved in this application, such as medical data and transaction data, can be stored in the blockchain.
本申请实施例中,无论第一节点、第二节点设备均为电子设备,本申请实施例所涉及到的电子设备可以包括各种具有无线通信功能的手持设备、台式机、车载设备、可穿戴设备(智能手表、智能手环、无线耳机、增强现实/虚拟现实设备、智能眼镜)、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(user equipment,UE),移动台(mobile station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为电子设备,在区块链中每一节点均可以称之为节点设备。In the embodiments of the present application, regardless of whether the first node or the second node devices are electronic devices, the electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, desktop computers, vehicle-mounted devices, wearable devices Devices (smart watches, smart bracelets, wireless headsets, AR/VR devices, smart glasses), computing devices or other processing devices connected to wireless modems, and various forms of user equipment (UE), mobile Station (mobile station, MS), terminal device (terminal device) and so on. For the convenience of description, the devices mentioned above are collectively referred to as electronic devices, and each node in the blockchain can be referred to as a node device.
下面对本申请实施例进行详细介绍。The embodiments of the present application will be described in detail below.
请参阅图1,图1是本申请实施例提供的一种基于区块链的数据处理方法的流程示意图,如图所示,应用于区块链系统中的第一节点设备,所述区块链系统包括所述第一节点设备和多个第二节点设备,本基于区块链的数据处理方法包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a blockchain-based data processing method provided by an embodiment of the present application. As shown in the figure, applied to a first node device in a blockchain system, the block The chain system includes the first node device and a plurality of second node devices, and the blockchain-based data processing method includes:
101、向所述多个第二节点设备中的每一第二节点设备发送预调试操作指令,并指示该每一第二节点设备执行与所述预调试操作指令对应的预调试操作,以对所述预调试操作对应的资源进行加锁,并将执行所述预调试操作成功的成功响应消息返回给所述第一节点设备。101. Send a pre-debug operation instruction to each second node device in the plurality of second node devices, and instruct each second node device to perform a pre-debug operation corresponding to the pre-debug operation instruction, so as to The resource corresponding to the pre-commissioning operation is locked, and a success response message indicating that the pre-commissioning operation is performed successfully is returned to the first node device.
具体实现中,第一节点设备可以为协调者,第二节点设备可以为参与者,第一节点设备、第二节点设备均为区块链中的一个用户,本申请实施例,应用于区块链系统中的第一 节点设备,区块链系统可以包括该第一节点设备和多个第二节点设备。第一节点设备可以向多个第二节点设备中的每一第二节点设备发送预调试(precommit)操作指令,多个第二节点设备可以为区块链系统中的除了第一节点设备之外的部分或者全部节点设备,基于该预调试操作指令指示该每一第二节点设备执行与预调试操作指令对应的预调试操作,以对预调试操作对应的资源进行加锁,并将执行预调试操作成功的成功响应消息返回给第一节点设备,如此,可以对每一第二节点设备进行调试。第一节点设备、第二节点设备可以处于同一个链或者不同的链,在其处于不同的链时,能够保证跨链数据一致性。In specific implementation, the first node device may be a coordinator, the second node device may be a participant, and both the first node device and the second node device are a user in the blockchain. The embodiments of this application are applied to the blockchain The first node device in the chain system, the blockchain system may include the first node device and a plurality of second node devices. The first node device may send a precommit (precommit) operation instruction to each of the plurality of second node devices, and the plurality of second node devices may be other than the first node device in the blockchain system part or all of the node devices, instruct each second node device to perform a pre-debug operation corresponding to the pre-debug operation instruction based on the pre-debug operation instruction, so as to lock the resources corresponding to the pre-debug operation and execute the pre-debug operation. A success response message of successful operation is returned to the first node device, so that each second node device can be debugged. The first node device and the second node device may be in the same chain or different chains, and when they are in different chains, cross-chain data consistency can be guaranteed.
其中,本申请实施例中,相关资源可以为预调试操作指令对应的资源,例如,可以为预设时间段或者预设地点的账单。预设时间段可以由用户自行设置或者系统默认,例如,2018年9月16日14点25分-2020年7月27日18时16分,预设地点可以由用户自行设置或者系统默认,例如,深圳科兴科学园。Wherein, in this embodiment of the present application, the relevant resource may be a resource corresponding to the pre-commissioning operation instruction, for example, may be a bill for a preset time period or a preset location. The preset time period can be set by the user or the system defaults, for example, from 14:25 on September 16, 2018 to 18:16 on July 27, 2020, the preset location can be set by the user or the system defaults, for example , Shenzhen Kexing Science Park.
具体实现中,第二节点设备在执行precommit操作时,可以使用git进行代码提交,使用叫precommit的git钩子,在调用git commit命令时自动执行相应的脚本检测代码,若检测出错,则阻止commit代码,也就无法push,保证了出错代码只在本地,则不会把问题提交到远程仓库。In the specific implementation, when the second node device performs the precommit operation, it can use git to submit the code, and use the git hook called precommit to automatically execute the corresponding script detection code when the git commit command is called. If there is an error in the detection, the commit code is blocked. , it will not be able to push, ensuring that the error code is only local, and the problem will not be submitted to the remote warehouse.
可选地,具体实现中,第一节点设备还可以通过web页面调用接口转换器adapter事务查询接口,adapter再调用peer的未完成事务的查询接口,查看未完成事务的第一阶段的执行情况。Optionally, in the specific implementation, the first node device can also call the interface converter adapter transaction query interface through the web page, and the adapter then calls the peer's unfinished transaction query interface to check the execution of the first stage of the unfinished transaction.
102、在所述第一节点设备处于宕机状态时,通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况。102. When the first node device is in a down state, add a preset compensation mechanism to the interface converter of the first node device, so as to obtain the pre-compensation of each second node device through the preset compensation mechanism Operation execution.
其中,宕机,指操作系统无法从一个严重系统错误中恢复过来,或系统硬件层面出问题,以致系统长时间无响应,而不得不重新启动计算机的现象。第一节点设备可以对应一个接口转换器adapter,其可以是一个独立的硬件接口设备,允许硬件或电子接口与其它硬件或电子接口相连,也可以是信息接口。比如adapter可以为以下一种:电源适配器、三角架基座转接部件、USB与串口的转接设备等,在此不作限定。具体实现中,第一节点设备检测到在该第一节点设备处于宕机状态时,则可以通过第一节点设备的接口转换器上添加预设补偿机制,以通过预设补偿机制获取各个第二节点设备的预调试操作执行情况,上述预设补偿机制可以为事务补偿机制,可以由用户自行设置或者系统默认。Among them, downtime refers to the phenomenon that the operating system cannot recover from a serious system error, or there is a problem at the system hardware level, so that the system does not respond for a long time, and the computer has to be restarted. The first node device may correspond to an interface converter adapter, which may be an independent hardware interface device, allowing the hardware or electronic interface to be connected with other hardware or electronic interfaces, and may also be an information interface. For example, the adapter may be one of the following: a power adapter, a tripod base adapter, a USB and serial port adapter, etc., which are not limited here. In a specific implementation, when the first node device detects that the first node device is in a down state, a preset compensation mechanism may be added to the interface converter of the first node device, so as to obtain each second node through the preset compensation mechanism. Regarding the execution of the pre-commissioning operation of the node device, the above-mentioned preset compensation mechanism may be a transaction compensation mechanism, which may be set by the user or the system defaults.
具体实现中,第一节点设备可以在adapter上添加一些机制完成事务的补偿机制。由于adapter拥有了所有组织的证书,所以,可以向每个组织的peer发送交易请求。In a specific implementation, the first node device may add some mechanisms to the adapter to complete the compensation mechanism of the transaction. Since the adapter has the certificates of all organizations, it can send transaction requests to the peers of each organization.
可选地,预设补偿机制可以按照一定条件进行补偿,例如,按照等级、按照任务难度等等,具体实现中,可以预先设置节点设备的属性信息与补偿参数之间的映射关系,基于该映射关系可以确定不同的第二节点设备对应的补偿参数,基于该补偿参数对第二节点设备进行补偿,并获取各个第二节点设备的预调试操作执行情况。Optionally, the preset compensation mechanism can perform compensation according to certain conditions, for example, according to the level, according to the difficulty of the task, etc. In the specific implementation, the mapping relationship between the attribute information of the node device and the compensation parameter can be preset, based on the mapping. The relationship can determine compensation parameters corresponding to different second node devices, compensate the second node devices based on the compensation parameters, and acquire the pre-commissioning operation execution status of each second node device.
可选地,上述步骤102,通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况,可以包括如下步骤:Optionally, in the above step 102, a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution status of each second node device through the preset compensation mechanism, which may include the following: step:
21、确定所述第一节点设备已接收到的N个所述成功响应消息,所述N为自然数;21. Determine the N successful response messages that have been received by the first node device, where N is a natural number;
22、依据所述N个所述成功响应消息,确定所述第一节点设备未接收到所述成功响应消息的M个第二节点设备,所述M为正整数;22. Determine, according to the N successful response messages, M second node devices that have not received the successful response message by the first node device, where M is a positive integer;
23、获取所述M个第二节点设备的属性信息,得到M个属性信息;23. Obtain attribute information of the M second node devices, and obtain M attribute information;
24、依据所述M个属性信息确定所述接口转换器的预设补偿机制;24. Determine a preset compensation mechanism of the interface converter according to the M pieces of attribute information;
25、通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况。25. A preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution status of each second node device through the preset compensation mechanism.
具体实现中,属性信息可以为以下至少一种:等级、任务难度、优先级、处理效率、网络速率等等,在此不作限定。第一节点设备可以确定该第一节点设备已接收到的N个所述成功响应消息,N为自然数,还可以依据N个成功响应消息,确定第一节点设备未接收到成功响应消息的M个第二节点设备,M为正整数,N+M=第二节点设备的数量,进一步地,可以获取M个第二节点设备的属性信息,得到M个属性信息,具体可以通过adapter分别获取M个第二节点设备中每一节点设备的属性信息,得到M个属性信息,进而,adapter中可以预先存储属性信息与补偿参数之间的映射关系,进而,依据该映射关系确定M个属性信息对应的补偿参数,基于该M个属性信息对应的补偿参数确定接口转换器的预设补偿机制,例如,基于M个属性信息对应的补偿参数分别对相应的第二节点设备进行补偿,通过第一节点设备的接口转换器上添加预设补偿机制,以通过预设补偿机制获取各个第二节点设备的预调试操作执行情况,如此,可以在第一节点设备宕机时,顺利了解各个第二节点设备完成预调试操作的情况。In specific implementation, the attribute information may be at least one of the following: level, task difficulty, priority, processing efficiency, network speed, etc., which are not limited herein. The first node device may determine that the first node device has received the N success response messages, where N is a natural number, and may also determine that the first node device has not received M success response messages based on the N success response messages. The second node device, M is a positive integer, and N+M=the number of the second node device. Further, the attribute information of M second node devices can be obtained, and M pieces of attribute information can be obtained. Specifically, M pieces of attribute information can be obtained respectively through the adapter. The attribute information of each node device in the second node device is obtained, and M pieces of attribute information are obtained, and further, the mapping relationship between the attribute information and the compensation parameters can be stored in the adapter in advance, and then, according to the mapping relationship, the corresponding M pieces of attribute information are determined. Compensation parameters, determining a preset compensation mechanism of the interface converter based on the compensation parameters corresponding to the M pieces of attribute information, for example, respectively compensating the corresponding second node device based on the compensation parameters corresponding to the M pieces of attribute information, through the first node device A preset compensation mechanism is added to the interface converter of the device, so as to obtain the execution status of the pre-commissioning operation of each second node device through the preset compensation mechanism. In this way, when the first node device is down, it is possible to smoothly understand the completion of each second node device. The case for pre-debugging operations.
可选地,上述步骤21,确定所述第一节点设备已接收到的N个所述成功响应消息,按照如下方式实施:Optionally, in the above step 21, determining the N successful response messages that have been received by the first node device is implemented as follows:
在所述第一节点设备出现所述宕机状态的概率大于预设阈值时,向所述接口转换器推送目标消息,所述目标消息包括所述第一节点设备已接收到的N个所述成功响应消息。When the probability that the first node device is in the down state is greater than a preset threshold, push a target message to the interface converter, where the target message includes the N pieces of the first node device that have been received. Successful response message.
其中,预设阈值可以由用户自行设置或者系统默认。在第一节点设备出现宕机状态的概率大于预设阈值时,向接口转换器推送目标消息,目标消息包括第一节点设备已接收到的N个所述成功响应消息,即在第一节点设备出现宕机之前,adapter就可以知道其已经接收到的成功响应消息情况。The preset threshold may be set by the user or the system defaults. When the probability that the first node device is in a down state is greater than the preset threshold, push a target message to the interface converter, where the target message includes the N successful response messages that have been received by the first node device, that is, the first node device Before the downtime occurs, the adapter can know the successful response message it has received.
可选地,进一步地,获取所述第一节点设备出现所述宕机状态的概率,可以包括如下步骤:Optionally, further, acquiring the probability that the first node device occurs in the down state may include the following steps:
A1、获取所述第一节点设备在预设时间段内的CPU负荷曲线;A1. Obtain the CPU load curve of the first node device within a preset time period;
A2、对所述CPU负荷曲线进行采样,得到多个CPU负荷值;A2. Sampling the CPU load curve to obtain multiple CPU load values;
A3、依据所述多个CPU负荷值进行均值运算,得到第一平均CPU负荷值;A3. Perform an average calculation according to the plurality of CPU load values to obtain a first average CPU load value;
A4、确定所述第一平均CPU负荷值对应的目标CPU负荷等级;A4. Determine the target CPU load level corresponding to the first average CPU load value;
A5、按照预设的CPU负荷等级与第一评价值之间的映射关系,确定所述目标CPU负荷等级对应的目标第一评价值;A5. According to the mapping relationship between the preset CPU load level and the first evaluation value, determine the target first evaluation value corresponding to the target CPU load level;
A6、依据所述多个CPU负荷值进行均方差运算,得到第一均方差;A6. Perform mean square error calculation according to the plurality of CPU load values to obtain a first mean square error;
A7、按照预设的均方差与第二评价值之间的映射关系,确定所述第一均方差对应的目标第二评价值;A7. According to the mapping relationship between the preset mean square error and the second evaluation value, determine the target second evaluation value corresponding to the first mean square error;
A8、按照预设的CPU负荷等级与权值对之间的映射关系,确定所述目标CPU负荷等级对应的目标权值对,所述目标权值对包括目标第一权值和目标第二权值,所述目标第一权值为所述第一评价值对应的第一权值,所述第二目标权值为第二评价值对应的第二权值;A8. According to the preset mapping relationship between the CPU load level and the weight pair, determine the target weight pair corresponding to the target CPU load level, where the target weight pair includes the target first weight and the target second weight value, the first weight of the target is the first weight corresponding to the first evaluation value, and the second target weight is the second weight corresponding to the second evaluation value;
A9、依据所述目标第一评价值、所述目标第二评价值、所述目标第一权值和所述目标第二权值进行加权运算,得到所述最终评价值;A9. Perform a weighted operation according to the first evaluation value of the target, the second evaluation value of the target, the first weight of the target and the second weight of the target to obtain the final evaluation value;
A10、按照预设的评价值与宕机概率之间的映射关系,确定所述最终评价值对应的所述宕机状态的概率。A10. Determine the probability of the downtime state corresponding to the final evaluation value according to the mapping relationship between the preset evaluation value and the downtime probability.
本申请实施例中,上述预设时间段可以由用户自行设置或者系统默认。第一节点设备中可以预先存储预设的CPU负荷等级与第一评价值之间的映射关系、预设的均方差与第二评价值之间的映射关系以及预设的CPU负荷等级与权值对之间的映射关系。其中,权值对可以包括第一评价值的第一权值和第二评价值的第二权值,第一权值与第一二权值之和可以为1,当然,CPU负荷等级越高,则第一权值越大,CPU负荷等级越低,则第一权值越小。In this embodiment of the present application, the above-mentioned preset time period may be set by the user or the system defaults. The first node device may pre-store the mapping relationship between the preset CPU load level and the first evaluation value, the mapping relationship between the preset mean square error and the second evaluation value, and the preset CPU load level and weight. The mapping relationship between pairs. The weight pair may include a first weight of the first evaluation value and a second weight of the second evaluation value, and the sum of the first weight and the first and second weights may be 1. Of course, the higher the CPU load level , the larger the first weight is, the lower the CPU load level is, and the smaller the first weight is.
具体实现中,第一节点设备可以获取第一节点设备在预设时间段内的CPU负荷曲线,并对CPU负荷曲线进行采样,得到多个CPU负荷值,具体采样方式可以为每隔预设时间间隔进行采样或者随机采样,在此不做限定,预设时间间隔可以由用户自行设置或者系统默认。In a specific implementation, the first node device may obtain a CPU load curve of the first node device within a preset time period, and sample the CPU load curve to obtain multiple CPU load values. The specific sampling method may be every preset time period. Sampling at intervals or random sampling is not limited here, and the preset time interval can be set by the user or the system defaults.
进一步地,第一节点设备可以依据多个CPU负荷值进行均值运算,得到第一平均CPU负荷值,第一节点设备中还可以预先存储CPU负荷值与CPU负荷等级之间的映射关系,进而,可以依据该映射关系确定第一平均CPU负荷值对应的目标CPU负荷等级,可以按照上述预设的CPU负荷等级与第一评价值之间的映射关系,确定目标CPU负荷等级对应的目标第一评价值,另外,依据多个CPU负荷值进行均方差运算,得到第一均方差,均方差在一定程度上反应了CPU负荷的波动情况,当然,均方差越小,则说明CPU稳定性越好,均方差越大,则说明CPU稳定性越差。第一节点设备可以按照上述预设的均方差与第二评价值之间的映射关系,确定第一均方差对应的目标第二评价值。Further, the first node device may perform an average calculation according to multiple CPU load values to obtain a first average CPU load value, and the first node device may also pre-store a mapping relationship between the CPU load value and the CPU load level, and further, The target CPU load level corresponding to the first average CPU load value can be determined according to the mapping relationship, and the target first evaluation value corresponding to the target CPU load level can be determined according to the above-mentioned mapping relationship between the preset CPU load level and the first evaluation value. In addition, the mean square error is calculated according to multiple CPU load values, and the first mean square error is obtained. The mean square error reflects the fluctuation of CPU load to a certain extent. Of course, the smaller the mean square error, the better the CPU stability. The larger the mean square error, the worse the CPU stability. The first node device may determine the target second evaluation value corresponding to the first mean square error according to the above-mentioned mapping relationship between the preset mean square error and the second evaluation value.
进一步地,第一节点设备可以按照上述预设的CPU负荷与权值对之间的映射关系,确定目标CPU负荷对应的目标权值对,该目标权值对包括目标第一权值和目标第二权值,目标第一权值为第一评价值对应的第一权值,第二目标权值为第二评价值对应的第二权值,最终,可以依据目标第一评价值、目标第二评价值、目标第一权值和目标第二权值进行加权运算,得到最终评价值,即具体公式如下:Further, the first node device may determine a target weight pair corresponding to the target CPU load according to the above-mentioned preset mapping relationship between the CPU load and the weight pair, where the target weight pair includes the target first weight and the target first weight. Two weights, the first weight of the target is the first weight corresponding to the first evaluation value, and the second target weight is the second weight corresponding to the second evaluation value. The second evaluation value, the first weight of the target and the second weight of the target are weighted to obtain the final evaluation value, that is, the specific formula is as follows:
最终评价值=目标第一评价值*目标第一权值+目标第二评价值*目标第二权值Final evaluation value = first evaluation value of target * first weight of target + second evaluation value of target * second weight of target
最后,adapter中还可以预先存储预设的评价值与宕机概率之间的映射关系,则可以按照预设的评价值与宕机概率之间的映射关系,确定最终评价值对应的宕机状态的概率。Finally, the mapping relationship between the preset evaluation value and the downtime probability can also be pre-stored in the adapter, and the downtime state corresponding to the final evaluation value can be determined according to the mapping relationship between the preset evaluation value and the downtime probability. The probability.
如此,本申请实施例中,不仅选取一段时间内的CPU负荷曲线,且基于该CPU负荷曲线确定平均CPU负荷值以及均方差确定评价值,其一,可以反映CPU在一段时间内的稳定性,其二,CPU负荷值反映了连接稳定性,CPU负荷值大,则CPU越稳定,均方差则反映了CPU稳定性,均方差越小,则说明CPU越稳定,其三,在CPU负荷评价过程中,可以动态调节CPU负荷值对应的权重,以及均方差对应的权重,如此,能够实现精准评估宕机状态的出现概率。In this way, in the embodiment of the present application, not only the CPU load curve within a period of time is selected, but also the average CPU load value and the mean square error are determined based on the CPU load curve to determine the evaluation value, one of which can reflect the stability of the CPU within a period of time, Second, the CPU load value reflects the connection stability. The larger the CPU load value, the more stable the CPU is. The mean square error reflects the CPU stability. The smaller the mean square error, the more stable the CPU is. Third, in the CPU load evaluation process , the weight corresponding to the CPU load value and the weight corresponding to the mean square error can be dynamically adjusted, so that the probability of occurrence of the down state can be accurately evaluated.
103、在所述预调试操作执行情况显示所述多个第二节点设备中的每一第二节点设备均成功执行所述预调试操作,则执行下一阶段操作。103. When the execution status of the pre-debugging operation shows that each second node device in the plurality of second node devices successfully executes the pre-debugging operation, execute the next stage of operation.
具体实现中,第一节点设备可以在预调试操作执行情况显示多个第二节点设备中的每一第二节点设备均成功执行预调试操作,则可以执行下一阶段操作,下一阶段操作可以为commit操作或者rollback操作。In a specific implementation, the first node device may show that each second node device in the plurality of second node devices has successfully performed the pre-commissioning operation in the pre-debugging operation execution status, and then the next-stage operation may be performed, and the next-stage operation may be It is a commit operation or a rollback operation.
具体实现中,如果说共识机制是区块链的灵魂核心,那么。对于区块链特别是联盟链及私链来看,跨链技术就是实现价值网络的关键,它是把联盟链从分散单独的孤岛中拯救出来的良药,是区块链向外拓展和连接的桥梁。为了实现跨链操作的数据一致性,底层链提供了基于两阶段的事务提交。但是,两阶段的事务处理,第二阶段,协调者没有向参与者发送commit/rollback请求,则参与着的资源则会一直被占用,不能得到解除锁定,通过adapter做事务补偿,第一解决了参与者的资源被锁定的,第二,不用再添加其他服务,使得网络架构简洁,节约资源,降低架构的复杂度。In the specific implementation, if the consensus mechanism is the soul core of the blockchain, then. For blockchains, especially consortium chains and private chains, cross-chain technology is the key to realizing the value network. It is a good medicine to save consortium chains from being scattered and isolated islands, and it is the expansion and connection of blockchains to the outside world. bridge. In order to achieve data consistency in cross-chain operations, the underlying chain provides two-phase transaction submission. However, in the two-stage transaction processing, in the second stage, the coordinator does not send a commit/rollback request to the participants, the participating resources will always be occupied and cannot be unlocked. The adapter is used for transaction compensation, and the first solution is to solve the problem. The resources of the participants are locked. Second, there is no need to add other services, which makes the network architecture simple, saves resources, and reduces the complexity of the architecture.
可选地,上述步骤102之后,还可以包括如下步骤:Optionally, after the above step 102, the following steps may also be included:
在所述预调试操作执行情况显示所述多个第二节点设备中的至少一个第二节点设备未成功执行所述预调试操作,则通过预设页面调用所述接口转换器的回滚机制操作。When the execution status of the pre-debugging operation shows that at least one second node device among the plurality of second node devices fails to perform the pre-debugging operation successfully, the rollback mechanism operation of the interface converter is invoked through a preset page .
其中,预设页面可以为预设web页面,该预设web页面可以预先设置或者系统默认。具体实现中,第一节点设备可以在预调试操作执行情况显示多个第二节点设备中的至少一个第二节点设备未成功执行预调试操作,则通过预设页面调用接口转换器的回滚机制操作 rollback。The preset page may be a preset web page, and the preset web page may be preset or system default. In a specific implementation, the first node device may display that at least one second node device among the plurality of second node devices fails to perform the pre-debugging operation when the pre-debugging operation is performed, and then the rollback mechanism of the interface converter is invoked through a preset page Operation rollback.
可选地,上述步骤103,执行下一阶段操作,可以按照如下方式实施:Optionally, the above step 103, performing the next stage operation, may be implemented as follows:
通过预设页面调用所述接口转换器,以执行预设操作。The interface converter is invoked through a preset page to perform preset operations.
其中,不同的操作对应不同的接口,接口均可以由底层区块链的peer提供,接口包括所有未完成事务的查询接口,例如,adapter事务的第二阶段的commit接口,第二阶段的rollback接口。具体实现中,可以通过web页面调用adapter的commit接口执行commit操作,或者,也可以通过web页面调用adapter的rollback接口执行rollback操作。Among them, different operations correspond to different interfaces, and the interfaces can be provided by the peers of the underlying blockchain. The interfaces include query interfaces for all unfinished transactions, for example, the commit interface in the second stage of the adapter transaction, and the rollback interface in the second stage. . In the specific implementation, the commit operation of the adapter can be called through the web page to execute the commit operation, or the rollback interface of the adapter can also be called through the web page to execute the rollback operation.
举例说明下,本申请实施例,可以包括如下步骤:By way of example, the embodiment of the present application may include the following steps:
1、第一阶段,协调者向参与者发送precommit操作,参与者则执行precommit操作,对相关资源进行了加锁,并且把执行成功的响应返回给了协调者。1. In the first stage, the coordinator sends a precommit operation to the participant, and the participant executes the precommit operation, locks the relevant resources, and returns a successful response to the coordinator.
2、在发送第二阶段之前,协调者宕机。不能发送第二阶段的操作。此时,参与者上的资源由于加锁得不到释放。影响后续的操作。2. Before sending the second phase, the coordinator goes down. Phase 2 operations cannot be sent. At this point, the resources on the participant cannot be released due to locking. affect subsequent operations.
3、在adapter上添加一些机制完成事务的补偿机制。由于adapter拥有了所有组织的证书,所以他可以向每个组织的peer发送交易请求。3. Add some mechanism to the adapter to complete the compensation mechanism of the transaction. Since the adapter has all the organizations' certificates, it can send transaction requests to each organization's peers.
4、通过web页面调用adapter事务查询接口,adapter再调用peer的未完成事务的查询接口,查看未完成事务的第一阶段的执行情况。4. Call the adapter transaction query interface through the web page, and the adapter calls the peer's unfinished transaction query interface to view the execution of the first stage of the unfinished transaction.
5、如果所有的参与者的第一阶段都完成了,则可以通过web页面调用adapter的第二阶段操作,即可以做commit或者rollback操作,具体执行情况,需要跟具体业务场景决定。如果有一个参与者的第一阶段没有成功执行,则通过web页面调用adapter的第二阶段的rollback操作。5. If the first stage of all participants is completed, the second stage operation of the adapter can be called through the web page, that is, the commit or rollback operation can be performed. The specific implementation situation needs to be determined with the specific business scenario. If the first stage of a participant is not successfully executed, the rollback operation of the second stage of the adapter is called through the web page.
具体实现中,协调者可以接收由每个执行者返回的响应消息。In a specific implementation, the coordinator can receive the response message returned by each executor.
可选地,上述步骤101之前,可以包括如下步骤:Optionally, before the above step 101, the following steps may be included:
B1、获取目标静脉图像;B1. Obtain the target vein image;
B2、确定所述目标静脉图像的目标图像质量评价值;B2. Determine the target image quality evaluation value of the target vein image;
B3、在目标图像质量评价值大于预设评价值时,将所述目标静脉图像与预设静脉模板进行匹配;B3, when the target image quality evaluation value is greater than the preset evaluation value, matching the target vein image with the preset vein template;
B4、在所述目标静脉图像与所述预设静脉模板匹配成功时,执行步骤101。B4. Step 101 is performed when the target vein image is successfully matched with the preset vein template.
其中,第一节点设备中可以预先存储预设静脉模板以及预设评价值,预设评价值可以由用户自行设置或者系统默认。该评价值可以基于人工智能技术对该目标静脉图像进行处理得到。具体实现中,第一节点设备可以获取目标静脉图像,并采用至少一个图像质量评价指标对目标静脉图像进行评价,得到目标图像质量评价值,图像质量评价指标可以为以下至少一种:信息熵、均方差、清晰度、平均梯度等等,在此不作限定。进一步地,第一节点设备可以在目标图像质量评价值大于预设评价值时,将目标静脉图像与预设静脉模板进行匹配,在目标静脉图像与预设静脉模板匹配成功时,执行步骤101,如此,能够提升静脉识别效率。Wherein, the preset vein template and the preset evaluation value may be stored in the first node device in advance, and the preset evaluation value may be set by the user or the system defaults. The evaluation value can be obtained by processing the target vein image based on artificial intelligence technology. In a specific implementation, the first node device may acquire the target vein image, and use at least one image quality evaluation index to evaluate the target vein image to obtain the target image quality evaluation value, and the image quality evaluation index may be at least one of the following: information entropy, Mean square error, sharpness, average gradient, etc., are not limited here. Further, the first node device may match the target vein image with the preset vein template when the target image quality evaluation value is greater than the preset evaluation value, and when the target vein image and the preset vein template are successfully matched, perform step 101, In this way, the vein identification efficiency can be improved.
进一步地,上述步骤B2,确定所述目标静脉图像的目标图像质量评价值,可以包括如下步骤:Further, in the above step B2, determining the target image quality evaluation value of the target vein image may include the following steps:
B21、将所述目标静脉图像进行多尺度特征分解,得到低频特征分量和高频特征分量;B21. Perform multi-scale feature decomposition on the target vein image to obtain low-frequency feature components and high-frequency feature components;
B22、将所述低频特征分量划分为多个区域;B22. Divide the low-frequency characteristic component into multiple regions;
B23、确定所述多个区域中每一区域对应的信息熵,得到多个信息熵;B23. Determine the information entropy corresponding to each area in the multiple areas, and obtain multiple information entropies;
B24、依据所述多个信息熵确定平均信息熵和目标均方差;B24. Determine the average information entropy and the target mean square error according to the plurality of information entropies;
B25、确定所述目标均方差对应的目标调节系数;B25. Determine the target adjustment coefficient corresponding to the target mean square error;
B26、依据所述目标调节系数对所述平均信息熵进行调节,得到目标信息熵;B26, adjusting the average information entropy according to the target adjustment coefficient to obtain a target information entropy;
B27、按照预设的信息熵与评价值之间的映射关系,确定所述目标信息熵对应的第一评 价值;B27, according to the mapping relationship between preset information entropy and evaluation value, determine the first evaluation value corresponding to described target information entropy;
B28、获取所述目标静脉图像对应的目标拍摄参数;B28, acquiring target shooting parameters corresponding to the target vein image;
B29、按照预设的拍摄参数与低频权重之间的映射关系,确定所述目标拍摄参数对应的目标低频权重,依据该目标低频权重确定目标高频权重;B29, determining the target low-frequency weight corresponding to the target shooting parameter according to the mapping relationship between the preset shooting parameters and the low-frequency weight, and determining the target high-frequency weight according to the target low-frequency weight;
B30、依据所述高频特征分量确定目标特征点分布密度;B30. Determine the distribution density of target feature points according to the high-frequency feature components;
B31、按照预设的特征点分布密度与评价值之间的映射关系,确定所述目标特征点分布密度对应的第二评价值;B31. Determine a second evaluation value corresponding to the distribution density of the target feature points according to a preset mapping relationship between the distribution density of feature points and the evaluation value;
B32、依据所述第一评价值、所述第二评价值、所述目标低频权重和所述目标高频权重进行加权运算,得到所述目标静脉图像的目标图像质量评价值。B32. Perform a weighting operation according to the first evaluation value, the second evaluation value, the target low frequency weight and the target high frequency weight to obtain a target image quality evaluation value of the target vein image.
具体实现中,第一节点设备可以采用多尺度分解算法将目标静脉图像进行多尺度特征分解,得到低频特征分量和高频特征分量,多尺度分解算法可以为以下至少一种:金字塔变换算法、小波变换、轮廓波变换、剪切波变换等等,在此不做限定。进一步地,可以将低频特征分量划分为多个区域,每一区域的面积大小相同或者不同。低频特征分量反映了图像的主体特征,高频特征分量反映了图像的细节信息。In a specific implementation, the first node device can use a multi-scale decomposition algorithm to perform multi-scale feature decomposition on the target vein image to obtain low-frequency feature components and high-frequency feature components, and the multi-scale decomposition algorithm can be at least one of the following: pyramid transformation algorithm, wavelet Transformation, contourlet transformation, shearlet transformation, etc., are not limited here. Further, the low-frequency feature component can be divided into multiple regions, and the area of each region is the same or different. The low-frequency feature components reflect the main features of the image, and the high-frequency feature components reflect the details of the image.
进一步地,第一节点设备可以确定多个区域中每一区域对应的信息熵,得到多个信息熵,依据多个信息熵确定平均信息熵和目标均方差,信息熵在一定程度上反映了图像信息多少,均方差则可以反映图像信息的稳定性。第一节点设备中可以预先存储预设均方差与调节系数之间的映射关系,进而,可以依据该映射关系确定目标均方差对应的目标调节系数,本申请实施例中,调节系数的取值范围可以为-0.15~0.15。Further, the first node device can determine the information entropy corresponding to each of the multiple areas, obtain multiple information entropies, and determine the average information entropy and the target mean square error according to the multiple information entropies, and the information entropy reflects the image to a certain extent. The amount of information, the mean square error can reflect the stability of the image information. The mapping relationship between the preset mean square error and the adjustment coefficient may be pre-stored in the first node device, and further, the target adjustment coefficient corresponding to the target mean square error may be determined according to the mapping relationship. In the embodiment of the present application, the value range of the adjustment coefficient It can be -0.15 to 0.15.
进一步地,第一节点设备可以依据目标调节系数对平均信息熵进行调节,得到目标信息熵,目标信息熵=(1+目标调节系数)*平均信息熵。第一节点设备中可以预先存储预设的信息熵与评价值之间的映射关系,进而,可以按照预设的信息熵与评价值之间的映射关系,确定目标信息熵对应的第一评价值。Further, the first node device may adjust the average information entropy according to the target adjustment coefficient to obtain the target information entropy, where the target information entropy=(1+target adjustment coefficient)*average information entropy. A preset mapping relationship between information entropy and evaluation value may be pre-stored in the first node device, and further, a first evaluation value corresponding to the target information entropy may be determined according to the preset mapping relationship between information entropy and evaluation value .
另外,第一节点设备可以获取目标静脉图像对应的目标拍摄参数,目标拍摄参数可以为以下至少一种:ISO、曝光时长、白平衡参数、对焦参数等等,在此不做限定。第一节点设备中还可以预先存储预设的拍摄参数与低频权重之间的映射关系,进而,可以按照预设的拍摄参数与低频权重之间的映射关系,确定目标拍摄参数对应的目标低频权重,依据该目标低频权重确定目标高频权重,目标低频权重+目标高频权重=1。In addition, the first node device may acquire target shooting parameters corresponding to the target vein image, and the target shooting parameters may be at least one of the following: ISO, exposure duration, white balance parameters, focusing parameters, etc., which are not limited herein. The first node device may also pre-store the mapping relationship between the preset shooting parameters and the low-frequency weights, and further, the target low-frequency weights corresponding to the target shooting parameters may be determined according to the mapping relationship between the preset shooting parameters and the low-frequency weights. , the target high frequency weight is determined according to the target low frequency weight, and the target low frequency weight + the target high frequency weight=1.
进一步地,第一节点设备可以依据高频特征分量确定目标特征点分布密度,目标特征点分布密度=高频特征分量的特征点总数量/区域面积。第一节点设备中还可以预先存储预设的特征点分布密度与评价值之间的映射关系,进而,可以按照预设的特征点分布密度与评价值之间的映射关系,确定目标特征点分布密度对应的第二评价值,最后,依据第一评价值、第二评价值、目标低频权重和目标高频权重进行加权运算,得到所述目标静脉图像的目标图像质量评价值,具体如下:Further, the first node device may determine the distribution density of the target feature points according to the high-frequency feature components, where the target feature point distribution density=the total number of feature points of the high-frequency feature components/area area. The first node device may also store a preset mapping relationship between the distribution density of feature points and the evaluation value in advance, and further, according to the preset mapping relationship between the distribution density of feature points and the evaluation value, determine the distribution of target feature points. The second evaluation value corresponding to the density, and finally, according to the first evaluation value, the second evaluation value, the target low-frequency weight and the target high-frequency weight, a weighted operation is performed to obtain the target image quality evaluation value of the target vein image, specifically as follows:
目标图像质量评价值=第一评价值*目标低频权重+第二评价值*目标高频权重Target image quality evaluation value = first evaluation value * target low frequency weight + second evaluation value * target high frequency weight
如此,可以基于静脉图像的低频分量以及高频分量两个维度进行图像质量评价,能够精准得到与拍摄环境相宜的评价参数,即目标图像质量评价值。In this way, the image quality evaluation can be performed based on the two dimensions of the low-frequency component and the high-frequency component of the vein image, and an evaluation parameter suitable for the shooting environment, that is, the target image quality evaluation value, can be accurately obtained.
可以看出,本申请实施例中所描述的基于区块链的数据处理方法,应用于区块链系统中的第一节点设备,区块链系统包括第一节点设备和多个第二节点设备,向多个第二节点设备中的每一第二节点设备发送预调试操作指令,并指示该每一第二节点设备执行与预调试操作指令对应的预调试操作,以对预调试操作对应的资源进行加锁,并将执行预调试操作成功的成功响应消息返回给第一节点设备,在第一节点设备处于宕机状态时,通过第一节点设备的接口转换器上添加预设补偿机制,以通过预设补偿机制获取各个第二节点设备的预调试操作执行情况,在预调试操作执行情况显示多个第二节点设备中的每一第二节点 设备均成功执行预调试操作,则执行下一阶段操作,如此,通过接口转换器实现事务补偿,解决了资源被锁定的问题,且不用再添加其他服务,使得网络架构简洁,节约资源,降低架构的复杂度,还能够保证跨链操作的数据一致性。It can be seen that the blockchain-based data processing method described in the embodiments of this application is applied to the first node device in the blockchain system, and the blockchain system includes the first node device and a plurality of second node devices , sending a pre-debugging operation instruction to each second node device in the plurality of second node devices, and instructing each second node device to perform a pre-debugging operation corresponding to the pre-debugging operation instruction, so as to The resource is locked, and a successful response message indicating that the pre-debugging operation is successfully performed is returned to the first node device. When the first node device is in a down state, a preset compensation mechanism is added to the interface converter of the first node device. Obtain the pre-commissioning operation execution status of each second node device through the preset compensation mechanism. If the pre-commissioning operation execution status shows that each second node device in the plurality of second node devices successfully performs the pre-commissioning operation, execute the following: One-stage operation. In this way, transaction compensation is realized through the interface converter, which solves the problem of locked resources, and does not need to add other services, which makes the network architecture concise, saves resources, reduces the complexity of the architecture, and can also ensure cross-chain operations. Data consistency.
请参阅图2,图2是本申请实施例提供的一种基于区块链的数据处理方法的流程示意图,该方法应用于区块链系统中的第一节点设备,所述区块链系统包括所述第一节点设备和多个第二节点设备,如图所示,本基于区块链的数据处理方法包括:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a blockchain-based data processing method provided by an embodiment of the present application. The method is applied to a first node device in a blockchain system. The blockchain system includes For the first node device and multiple second node devices, as shown in the figure, this blockchain-based data processing method includes:
201、向所述多个第二节点设备中的每一第二节点设备发送预调试操作指令,并指示该每一第二节点设备执行与所述预调试操作指令对应的预调试操作,以对所述预调试操作对应的资源进行加锁,并将执行所述预调试操作成功的成功响应消息返回给所述第一节点设备。201. Send a pre-debug operation instruction to each second node device in the plurality of second node devices, and instruct each second node device to perform a pre-debug operation corresponding to the pre-debug operation instruction, so as to The resource corresponding to the pre-commissioning operation is locked, and a success response message indicating that the pre-commissioning operation is performed successfully is returned to the first node device.
202、在所述第一节点设备处于宕机状态时,通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况。202. When the first node device is in a down state, add a preset compensation mechanism to the interface converter of the first node device, so as to obtain the pre-compensation of each second node device through the preset compensation mechanism Operation execution.
203、在所述预调试操作执行情况显示所述多个第二节点设备中的每一第二节点设备均成功执行所述预调试操作,则执行下一阶段操作。203. When the execution status of the pre-debugging operation shows that each second node device in the plurality of second node devices successfully executes the pre-debugging operation, execute the next stage of operation.
204、在所述预调试操作执行情况显示所述多个第二节点设备中的至少一个第二节点设备未成功执行所述预调试操作,则通过预设页面调用所述接口转换器的回滚机制操作。204. When the execution status of the pre-debugging operation shows that at least one second node device among the plurality of second node devices fails to perform the pre-debugging operation, invoke the rollback of the interface converter through a preset page mechanism operation.
其中,上述步骤201-步骤204的具体描述可以参照上述图1所描述的相应步骤,在此不再赘述。For the specific description of the above steps 201 to 204, reference may be made to the corresponding steps described in the above FIG. 1 , which will not be repeated here.
可以看出,本申请实施例中所描述的基于区块链的数据处理方法,通过接口转换器实现事务补偿,解决了资源被锁定的问题,且不用再添加其他服务,使得网络架构简洁,节约资源,降低架构的复杂度,还能够保证跨链操作的数据一致性。It can be seen that the blockchain-based data processing method described in the embodiments of this application realizes transaction compensation through the interface converter, solves the problem of locked resources, and does not need to add other services, which makes the network architecture concise and saves money resources, reduce the complexity of the architecture, and ensure the data consistency of cross-chain operations.
与上述实施例一致地,请参阅图3,图3是本申请实施例提供的一种第一节点设备的结构示意图,该第一节点设备包括处理器和存储器。可选的,该第一节点设备还可包括通信接口。例如,如图所示,该第一节点设备包括处理器、存储器、通信接口以及一个或多个程序,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,应用于区块链系统中,所述区块链系统包括所述第一节点设备和多个第二节点设备,本申请实施例中,上述程序包括用于执行以下步骤的指令:Consistent with the foregoing embodiments, please refer to FIG. 3 , which is a schematic structural diagram of a first node device provided by an embodiment of the present application, where the first node device includes a processor and a memory. Optionally, the first node device may further include a communication interface. For example, as shown, the first node device includes a processor, a memory, a communication interface, and one or more programs, the one or more programs are stored in the memory, and are configured to be executed by the processor, applying In the blockchain system, the blockchain system includes the first node device and a plurality of second node devices. In the embodiment of the present application, the above program includes instructions for executing the following steps:
向所述多个第二节点设备中的每一第二节点设备发送预调试操作指令,并指示该每一第二节点设备执行与所述预调试操作指令对应的预调试操作,以对所述预调试操作对应的资源进行加锁,并将执行所述预调试操作成功的成功响应消息返回给所述第一节点设备;Send a pre-debug operation instruction to each second node device in the plurality of second node devices, and instruct each second node device to perform a pre-debug operation corresponding to the pre-debug operation instruction, so as to perform a pre-debug operation on the Locking the resource corresponding to the pre-commissioning operation, and returning a success response message indicating that the pre-commissioning operation is successful to the first node device;
在所述第一节点设备处于宕机状态时,通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况;When the first node device is in a down state, a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution of each second node device through the preset compensation mechanism condition;
在所述预调试操作执行情况显示所述多个第二节点设备中的每一第二节点设备均成功执行所述预调试操作,则执行下一阶段操作。When the execution status of the pre-commissioning operation shows that each second node device in the plurality of second node devices successfully performs the pre-commissioning operation, the next stage of operation is performed.
可以看出,本申请实施例中所描述的第一节点设备,区块链系统包括第一节点设备和多个第二节点设备,向多个第二节点设备中的每一第二节点设备发送预调试操作指令,并指示该每一第二节点设备执行与预调试操作指令对应的预调试操作,以对预调试操作对应的资源进行加锁,并将执行预调试操作成功的成功响应消息返回给第一节点设备,在第一节点设备处于宕机状态时,通过第一节点设备的接口转换器上添加预设补偿机制,以通过预设补偿机制获取各个第二节点设备的预调试操作执行情况,在预调试操作执行情况显示多个第二节点设备中的每一第二节点设备均成功执行预调试操作,则执行下一阶段操作,如此,通过接口转换器实现事务补偿,解决了资源被锁定的问题,且不用再添加其他服务,使得网络架构简洁,节约资源,降低架构的复杂度,还能够保证跨链操作的数据一致性。It can be seen that the first node device described in the embodiment of the present application, the blockchain system includes the first node device and multiple second node devices, and sends the data to each second node device in the multiple second node devices. Pre-debug operation instruction, and instruct each second node device to perform pre-debug operation corresponding to the pre-debug operation instruction, so as to lock the resources corresponding to the pre-debug operation, and return a success response message that the pre-debug operation is successful For the first node device, when the first node device is in a down state, a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution of each second node device through the preset compensation mechanism If the pre-debugging operation execution status shows that each second node device in the plurality of second node devices successfully performs the pre-debugging operation, the next stage operation is performed. In this way, transaction compensation is realized through the interface converter, which solves the problem of resource The problem of being locked, and no need to add other services, makes the network architecture simple, saves resources, reduces the complexity of the architecture, and can also ensure data consistency in cross-chain operations.
可选地,上述程序还包括用于执行以下步骤的指令:Optionally, the above program also includes instructions for performing the following steps:
在所述预调试操作执行情况显示所述多个第二节点设备中的至少一个第二节点设备未成功执行所述预调试操作,则通过预设页面调用所述接口转换器的回滚机制操作。When the execution status of the pre-debugging operation shows that at least one second node device among the plurality of second node devices fails to perform the pre-debugging operation successfully, the rollback mechanism operation of the interface converter is invoked through a preset page .
可选地,在所述执行下一阶段操作方面,上述程序包括用于执行以下步骤的指令:Optionally, in terms of performing the next stage operation, the above program includes instructions for performing the following steps:
通过预设页面调用所述接口转换器,以执行预设操作。The interface converter is invoked through a preset page to perform preset operations.
可选地,在所述通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况方面,上述程序包括用于执行以下步骤的指令:Optionally, in terms of adding a preset compensation mechanism to the interface converter of the first node device, so as to obtain the performance of the pre-debugging operation of each second node device through the preset compensation mechanism, the above program includes: Instructions to perform the following steps:
确定所述第一节点设备已接收到的N个所述成功响应消息,所述N为自然数;Determine the N successful response messages that have been received by the first node device, where N is a natural number;
依据所述N个所述成功响应消息,确定所述第一节点设备未接收到所述成功响应消息的M个第二节点设备,所述M为正整数;According to the N successful response messages, it is determined that the first node device has not received M second node devices of the successful response message, where M is a positive integer;
获取所述M个第二节点设备的属性信息,得到M个属性信息;acquiring attribute information of the M second node devices, and obtaining M attribute information;
依据所述M个属性信息确定所述接口转换器的预设补偿机制;determining a preset compensation mechanism of the interface converter according to the M pieces of attribute information;
通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况。A preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution status of each second node device through the preset compensation mechanism.
可选地,在所述确定所述第一节点设备已接收到的N个所述成功响应消息方面,上述程序包括用于执行以下步骤的指令:Optionally, in the aspect of determining the N success response messages that have been received by the first node device, the above program includes instructions for performing the following steps:
在所述第一节点设备出现所述宕机状态的概率大于预设阈值时,向所述接口转换器推送目标消息,所述目标消息包括所述第一节点设备已接收到的N个所述成功响应消息。When the probability that the first node device is in the down state is greater than a preset threshold, push a target message to the interface converter, where the target message includes the N pieces of the first node device that have been received. Successful response message.
可选地,上述程序还包括用于执行以下步骤的指令:Optionally, the above program also includes instructions for performing the following steps:
获取目标静脉图像;Obtain the target vein image;
确定所述目标静脉图像的目标图像质量评价值;determining the target image quality evaluation value of the target vein image;
在目标图像质量评价值大于预设阈值时,将所述目标静脉图像与预设静脉模板进行匹配;When the target image quality evaluation value is greater than a preset threshold, matching the target vein image with a preset vein template;
在所述目标静脉图像与所述预设静脉模板匹配成功时,执行所述向所述多个第二节点设备中的每一第二节点设备发送预调试操作指令的步骤。When the target vein image is successfully matched with the preset vein template, the step of sending a pre-commissioning operation instruction to each of the plurality of second node devices is performed.
可选地,在所述确定所述目标静脉图像的目标图像质量评价值方面,上述程序包括用于执行以下步骤的指令:Optionally, in terms of determining the target image quality evaluation value of the target vein image, the above program includes instructions for performing the following steps:
将所述目标静脉图像进行多尺度特征分解,得到低频特征分量和高频特征分量;Perform multi-scale feature decomposition on the target vein image to obtain low-frequency feature components and high-frequency feature components;
将所述低频特征分量划分为多个区域;dividing the low-frequency feature components into a plurality of regions;
确定所述多个区域中每一区域对应的信息熵,得到多个信息熵;Determine the information entropy corresponding to each area in the multiple areas to obtain multiple information entropies;
依据所述多个信息熵确定平均信息熵和目标均方差;determining an average information entropy and a target mean square error according to the plurality of information entropies;
确定所述目标均方差对应的目标调节系数;determining the target adjustment coefficient corresponding to the target mean square error;
依据所述目标调节系数对所述平均信息熵进行调节,得到目标信息熵;Adjusting the average information entropy according to the target adjustment coefficient to obtain a target information entropy;
按照预设的信息熵与评价值之间的映射关系,确定所述目标信息熵对应的第一评价值;According to the preset mapping relationship between the information entropy and the evaluation value, determine the first evaluation value corresponding to the target information entropy;
获取所述目标静脉图像对应的目标拍摄参数;acquiring target shooting parameters corresponding to the target vein image;
按照预设的拍摄参数与低频权重之间的映射关系,确定所述目标拍摄参数对应的目标低频权重,依据该目标低频权重确定目标高频权重;According to the mapping relationship between the preset shooting parameters and the low-frequency weights, the target low-frequency weights corresponding to the target shooting parameters are determined, and the target high-frequency weights are determined according to the target low-frequency weights;
依据所述高频特征分量确定目标特征点分布密度;determining the distribution density of target feature points according to the high-frequency feature components;
按照预设的特征点分布密度与评价值之间的映射关系,确定所述目标特征点分布密度对应的第二评价值;According to the preset mapping relationship between the distribution density of feature points and the evaluation value, the second evaluation value corresponding to the distribution density of the target feature point is determined;
依据所述第一评价值、所述第二评价值、所述目标低频权重和所述目标高频权重进行加权运算,得到所述目标静脉图像的目标图像质量评价值。A weighted operation is performed according to the first evaluation value, the second evaluation value, the target low-frequency weight and the target high-frequency weight, so as to obtain a target image quality evaluation value of the target vein image.
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,第一节点设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。 本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solutions of the embodiments of the present application from the perspective of the method-side execution process. It can be understood that, in order to implement the above-mentioned functions, the first node device includes corresponding hardware structures and/or software modules for performing each function. Those skilled in the art should easily realize that the present application can be implemented in hardware or in the form of a combination of hardware and computer software, in combination with the units and algorithm steps of each example described in the embodiments provided herein. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法示例对第一节点设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, the first node device may be divided into functional units according to the foregoing method examples. For example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units. It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division, and other division methods may be used in actual implementation.
图4A是本申请实施例中所涉及的基于区块链的数据处理装置400的功能单元组成框图。该基于区块链的数据处理装置400,应用于区块链系统中的第一节点设备,所述区块链系统包括所述第一节点设备和多个第二节点设备,所述装置400包括:FIG. 4A is a block diagram of functional units of the blockchain-based data processing apparatus 400 involved in the embodiment of the present application. The blockchain-based data processing device 400 is applied to a first node device in a blockchain system, where the blockchain system includes the first node device and a plurality of second node devices, and the device 400 includes :
发送单元401,用于向所述多个第二节点设备中的每一第二节点设备发送预调试操作指令,并指示该每一第二节点设备执行与所述预调试操作指令对应的预调试操作,以对所述预调试操作对应的资源进行加锁,并将执行所述预调试操作成功的成功响应消息返回给所述第一节点设备;The sending unit 401 is configured to send a pre-debug operation instruction to each second node device in the plurality of second node devices, and instruct each second node device to execute the pre-debug corresponding to the pre-debug operation instruction operation, to lock the resource corresponding to the pre-debugging operation, and return a success response message that the pre-debugging operation is successfully executed to the first node device;
补偿单元402,用于在所述第一节点设备处于宕机状态时,通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况;The compensation unit 402 is configured to add a preset compensation mechanism to the interface converter of the first node device when the first node device is in a down state, so as to obtain each second node through the preset compensation mechanism The implementation of pre-commissioning operations of the equipment;
执行单元403,用于在所述预调试操作执行情况显示所述多个第二节点设备中的每一第二节点设备均成功执行所述预调试操作,则执行下一阶段操作。The executing unit 403 is configured to execute the next stage operation when the execution status of the pre-debugging operation shows that each second node device in the plurality of second node devices successfully executes the pre-debugging operation.
可以看出,本申请实施例中所描述的基于区块链的数据处理装置,应用于区块链系统中的第一节点设备,区块链系统包括第一节点设备和多个第二节点设备,向多个第二节点设备中的每一第二节点设备发送预调试操作指令,并指示该每一第二节点设备执行与预调试操作指令对应的预调试操作,以对预调试操作对应的资源进行加锁,并将执行预调试操作成功的成功响应消息返回给第一节点设备,在第一节点设备处于宕机状态时,通过第一节点设备的接口转换器上添加预设补偿机制,以通过预设补偿机制获取各个第二节点设备的预调试操作执行情况,在预调试操作执行情况显示多个第二节点设备中的每一第二节点设备均成功执行预调试操作,则执行下一阶段操作,如此,通过接口转换器实现事务补偿,解决了资源被锁定的问题,且不用再添加其他服务,使得网络架构简洁,节约资源,降低架构的复杂度,还能够保证跨链操作的数据一致性。It can be seen that the blockchain-based data processing device described in the embodiments of this application is applied to the first node device in the blockchain system, and the blockchain system includes the first node device and a plurality of second node devices , sending a pre-debugging operation instruction to each second node device in the plurality of second node devices, and instructing each second node device to perform a pre-debugging operation corresponding to the pre-debugging operation instruction, so as to The resource is locked, and a successful response message indicating that the pre-debugging operation is successfully performed is returned to the first node device. When the first node device is in a down state, a preset compensation mechanism is added to the interface converter of the first node device. Obtain the pre-commissioning operation execution status of each second node device through the preset compensation mechanism. If the pre-commissioning operation execution status shows that each second node device in the plurality of second node devices successfully performs the pre-commissioning operation, execute the following: One-stage operation. In this way, transaction compensation is realized through the interface converter, which solves the problem of locked resources, and does not need to add other services, which makes the network architecture concise, saves resources, reduces the complexity of the architecture, and can also ensure cross-chain operations. Data consistency.
可选地,所述装置400还用于实现如下功能:Optionally, the apparatus 400 is further configured to implement the following functions:
所述执行单元403,用于在所述预调试操作执行情况显示所述多个第二节点设备中的至少一个第二节点设备未成功执行所述预调试操作,则通过预设页面调用所述接口转换器的回滚机制操作。The execution unit 403 is configured to call the pre-debugging operation through a preset page when it is displayed that at least one second node device in the plurality of second node devices fails to perform the pre-debugging operation successfully. The interface converter's rollback mechanism operates.
可选地,在所述执行下一阶段操作方面,所述执行单元403具体用于:Optionally, in the aspect of executing the next stage operation, the executing unit 403 is specifically configured to:
通过预设页面调用所述接口转换器,以执行预设操作。The interface converter is invoked through a preset page to perform preset operations.
可选地,在所述通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况方面,所述补偿单元402具体用于:Optionally, in terms of adding a preset compensation mechanism to the interface converter of the first node device, so as to obtain the pre-debugging operation performance of each second node device through the preset compensation mechanism, the compensation Unit 402 is specifically used for:
确定所述第一节点设备已接收到的N个所述成功响应消息,所述N为自然数;Determine the N successful response messages that have been received by the first node device, where N is a natural number;
依据所述N个所述成功响应消息,确定所述第一节点设备未接收到所述成功响应消息的M个第二节点设备,所述M为正整数;According to the N successful response messages, it is determined that the first node device has not received M second node devices of the successful response message, where M is a positive integer;
获取所述M个第二节点设备的属性信息,得到M个属性信息;acquiring attribute information of the M second node devices, and obtaining M attribute information;
依据所述M个属性信息确定所述接口转换器的预设补偿机制;determining a preset compensation mechanism of the interface converter according to the M pieces of attribute information;
通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况。A preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution status of each second node device through the preset compensation mechanism.
可选地,在所述确定所述第一节点设备已接收到的N个所述成功响应消息方面,所述补偿单元具体用于:Optionally, in the aspect of determining the N successful response messages that have been received by the first node device, the compensation unit is specifically configured to:
在所述第一节点设备出现所述宕机状态的概率大于预设阈值时,向所述接口转换器推送目标消息,所述目标消息包括所述第一节点设备已接收到的N个所述成功响应消息。When the probability that the first node device is in the down state is greater than a preset threshold, push a target message to the interface converter, where the target message includes the N pieces of the first node device that have been received. Successful response message.
可选地,如图4B所示,图4B为图4A所示的基于区块链的数据处理装置的又一变型结构,其与图4A相比较,还可以包括获取单元404、确定单元405和匹配单元406,具体如下:Optionally, as shown in FIG. 4B , FIG. 4B is another modified structure of the blockchain-based data processing apparatus shown in FIG. 4A , which, compared with FIG. 4A , may further include an acquisition unit 404 , a determination unit 405 and The matching unit 406 is as follows:
所述获取单元404,用于获取目标静脉图像;The obtaining unit 404 is used to obtain the target vein image;
所述确定单元405,用于确定所述目标静脉图像的目标图像质量评价值;The determining unit 405 is configured to determine the target image quality evaluation value of the target vein image;
所述匹配单元406,用于在目标图像质量评价值大于预设阈值时,将所述目标静脉图像与预设静脉模板进行匹配;The matching unit 406 is configured to match the target vein image with the preset vein template when the target image quality evaluation value is greater than a preset threshold;
由所述发送单元401在所述目标静脉图像与所述预设静脉模板匹配成功时,执行所述向所述多个第二节点设备中的每一第二节点设备发送预调试操作指令的步骤。When the target vein image is successfully matched with the preset vein template, the sending unit 401 executes the step of sending a pre-commissioning operation instruction to each of the plurality of second node devices .
可选地,在所述确定所述目标静脉图像的目标图像质量评价值方面,所述确定单元405具体用于:Optionally, in the aspect of determining the target image quality evaluation value of the target vein image, the determining unit 405 is specifically configured to:
将所述目标静脉图像进行多尺度特征分解,得到低频特征分量和高频特征分量;Perform multi-scale feature decomposition on the target vein image to obtain low-frequency feature components and high-frequency feature components;
将所述低频特征分量划分为多个区域;dividing the low-frequency feature components into a plurality of regions;
确定所述多个区域中每一区域对应的信息熵,得到多个信息熵;Determine the information entropy corresponding to each area in the multiple areas to obtain multiple information entropies;
依据所述多个信息熵确定平均信息熵和目标均方差;determining an average information entropy and a target mean square error according to the plurality of information entropies;
确定所述目标均方差对应的目标调节系数;determining the target adjustment coefficient corresponding to the target mean square error;
依据所述目标调节系数对所述平均信息熵进行调节,得到目标信息熵;Adjusting the average information entropy according to the target adjustment coefficient to obtain a target information entropy;
按照预设的信息熵与评价值之间的映射关系,确定所述目标信息熵对应的第一评价值;According to the preset mapping relationship between the information entropy and the evaluation value, determine the first evaluation value corresponding to the target information entropy;
获取所述目标静脉图像对应的目标拍摄参数;acquiring target shooting parameters corresponding to the target vein image;
按照预设的拍摄参数与低频权重之间的映射关系,确定所述目标拍摄参数对应的目标低频权重,依据该目标低频权重确定目标高频权重;According to the mapping relationship between the preset shooting parameters and the low-frequency weights, the target low-frequency weights corresponding to the target shooting parameters are determined, and the target high-frequency weights are determined according to the target low-frequency weights;
依据所述高频特征分量确定目标特征点分布密度;determining the distribution density of target feature points according to the high-frequency feature components;
按照预设的特征点分布密度与评价值之间的映射关系,确定所述目标特征点分布密度对应的第二评价值;According to the preset mapping relationship between the distribution density of feature points and the evaluation value, the second evaluation value corresponding to the distribution density of the target feature point is determined;
依据所述第一评价值、所述第二评价值、所述目标低频权重和所述目标高频权重进行加权运算,得到所述目标静脉图像的目标图像质量评价值。A weighted operation is performed according to the first evaluation value, the second evaluation value, the target low-frequency weight and the target high-frequency weight, so as to obtain a target image quality evaluation value of the target vein image.
可以理解的是,本实施例的基于区块链的数据处理装置的各程序模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It can be understood that the functions of each program module of the blockchain-based data processing device in this embodiment can be specifically implemented according to the methods in the above method embodiments, and the specific implementation process can refer to the relevant descriptions of the above method embodiments. It is not repeated here.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括第一节点设备。Embodiments of the present application further provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to execute part or all of the steps of any method described in the above method embodiments , the above computer includes a first node device.
可选的,本申请涉及的存储介质可以是计算机可读存储介质。进一步可选的,本申请涉及的存储介质如计算机可读存储介质可以是非易失性的,也可以是易失性的。Optionally, the storage medium involved in this application may be a computer-readable storage medium. Further optionally, the storage medium involved in the present application, such as a computer-readable storage medium, may be non-volatile or volatile.
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实 施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括第一节点设备。该计算机程序产品可以为一个软件安装包。Embodiments of the present application further provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute any one of the method embodiments described above. some or all of the steps of the method. The computer program product may be a software installation package, and the above-mentioned computer includes a first node device. The computer program product may be a software installation package.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the above-mentioned units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or all or part of the technical solution, and the computer software product is stored in a memory, Several instructions are included to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the above-mentioned methods in the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), magnetic disk or optical disk, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and the principles and implementations of the present application are described in this paper by using specific examples. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; at the same time, for Persons of ordinary skill in the art, based on the idea of the present application, will have changes in the specific implementation manner and application scope. In summary, the contents of this specification should not be construed as limitations on the present application.

Claims (20)

  1. 一种基于区块链的数据处理方法,其中,应用于区块链系统中的第一节点设备,所述区块链系统包括所述第一节点设备和多个第二节点设备,所述方法包括:A blockchain-based data processing method, wherein, applied to a first node device in a blockchain system, the blockchain system comprising the first node device and a plurality of second node devices, the method include:
    向所述多个第二节点设备中的每一第二节点设备发送预调试操作指令,并指示该每一第二节点设备执行与所述预调试操作指令对应的预调试操作,以对所述预调试操作对应的资源进行加锁,并将执行所述预调试操作成功的成功响应消息返回给所述第一节点设备;Send a pre-debug operation instruction to each second node device in the plurality of second node devices, and instruct each second node device to perform a pre-debug operation corresponding to the pre-debug operation instruction, so as to perform a pre-debug operation on the Locking the resource corresponding to the pre-commissioning operation, and returning a success response message indicating that the pre-commissioning operation is successful to the first node device;
    在所述第一节点设备处于宕机状态时,通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况;When the first node device is in a down state, a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution of each second node device through the preset compensation mechanism condition;
    在所述预调试操作执行情况显示所述多个第二节点设备中的每一第二节点设备均成功执行所述预调试操作,则执行下一阶段操作。When the execution status of the pre-commissioning operation shows that each second node device in the plurality of second node devices successfully performs the pre-commissioning operation, the next stage of operation is performed.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    在所述预调试操作执行情况显示所述多个第二节点设备中的至少一个第二节点设备未成功执行所述预调试操作,则通过预设页面调用所述接口转换器的回滚机制操作。When the execution status of the pre-debugging operation shows that at least one second node device among the plurality of second node devices fails to perform the pre-debugging operation successfully, the rollback mechanism operation of the interface converter is invoked through a preset page .
  3. 根据权利要求1或2所述的方法,其中,所述执行下一阶段操作包括:The method according to claim 1 or 2, wherein said performing the next stage operation comprises:
    通过预设页面调用所述接口转换器,以执行预设操作。The interface converter is invoked through a preset page to perform preset operations.
  4. 根据权利要求1或2所述的方法,其中,所述通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况,包括:The method according to claim 1 or 2, wherein a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-compensation of each second node device through the preset compensation mechanism Operational execution, including:
    确定所述第一节点设备已接收到的N个所述成功响应消息,所述N为自然数;Determine the N successful response messages that have been received by the first node device, where N is a natural number;
    依据所述N个所述成功响应消息,确定所述第一节点设备未接收到所述成功响应消息的M个第二节点设备,所述M为正整数;According to the N successful response messages, it is determined that the first node device has not received M second node devices of the successful response message, where M is a positive integer;
    获取所述M个第二节点设备的属性信息,得到M个属性信息;acquiring attribute information of the M second node devices, and obtaining M attribute information;
    依据所述M个属性信息确定所述接口转换器的预设补偿机制;determining a preset compensation mechanism of the interface converter according to the M pieces of attribute information;
    通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况。A preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution status of each second node device through the preset compensation mechanism.
  5. 根据权利要求4所述的方法,其中,所述确定所述第一节点设备已接收到的N个所述成功响应消息,包括:The method according to claim 4, wherein the determining of the N successful response messages received by the first node device comprises:
    在所述第一节点设备出现所述宕机状态的概率大于预设阈值时,向所述接口转换器推送目标消息,所述目标消息包括所述第一节点设备已接收到的N个所述成功响应消息。When the probability that the first node device is in the down state is greater than a preset threshold, push a target message to the interface converter, where the target message includes the N pieces of the first node device that have been received. Successful response message.
  6. 根据权利要求1或2所述的方法,其中,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    获取目标静脉图像;Obtain the target vein image;
    确定所述目标静脉图像的目标图像质量评价值;determining the target image quality evaluation value of the target vein image;
    在所述目标图像质量评价值大于预设阈值时,将所述目标静脉图像与预设静脉模板进行匹配;When the target image quality evaluation value is greater than a preset threshold, matching the target vein image with a preset vein template;
    在所述目标静脉图像与所述预设静脉模板匹配成功时,执行所述向所述多个第二节点设备中的每一第二节点设备发送预调试操作指令的步骤。When the target vein image is successfully matched with the preset vein template, the step of sending a pre-commissioning operation instruction to each of the plurality of second node devices is performed.
  7. 根据权利要求6所述的方法,其中,所述确定所述目标静脉图像的目标图像质量评价值,包括:The method according to claim 6, wherein the determining the target image quality evaluation value of the target vein image comprises:
    将所述目标静脉图像进行多尺度特征分解,得到低频特征分量和高频特征分量;Perform multi-scale feature decomposition on the target vein image to obtain low-frequency feature components and high-frequency feature components;
    将所述低频特征分量划分为多个区域;dividing the low-frequency feature components into a plurality of regions;
    确定所述多个区域中每一区域对应的信息熵,得到多个信息熵;Determine the information entropy corresponding to each area in the multiple areas to obtain multiple information entropies;
    依据所述多个信息熵确定平均信息熵和目标均方差;determining an average information entropy and a target mean square error according to the plurality of information entropies;
    确定所述目标均方差对应的目标调节系数;determining the target adjustment coefficient corresponding to the target mean square error;
    依据所述目标调节系数对所述平均信息熵进行调节,得到目标信息熵;Adjusting the average information entropy according to the target adjustment coefficient to obtain a target information entropy;
    按照预设的信息熵与评价值之间的映射关系,确定所述目标信息熵对应的第一评价值;According to the preset mapping relationship between the information entropy and the evaluation value, determine the first evaluation value corresponding to the target information entropy;
    获取所述目标静脉图像对应的目标拍摄参数;acquiring target shooting parameters corresponding to the target vein image;
    按照预设的拍摄参数与低频权重之间的映射关系,确定所述目标拍摄参数对应的目标低频权重,依据该目标低频权重确定目标高频权重;According to the mapping relationship between the preset shooting parameters and the low-frequency weights, the target low-frequency weights corresponding to the target shooting parameters are determined, and the target high-frequency weights are determined according to the target low-frequency weights;
    依据所述高频特征分量确定目标特征点分布密度;determining the distribution density of target feature points according to the high-frequency feature components;
    按照预设的特征点分布密度与评价值之间的映射关系,确定所述目标特征点分布密度对应的第二评价值;According to the preset mapping relationship between the distribution density of feature points and the evaluation value, the second evaluation value corresponding to the distribution density of the target feature point is determined;
    依据所述第一评价值、所述第二评价值、所述目标低频权重和所述目标高频权重进行加权运算,得到所述目标静脉图像的目标图像质量评价值。A weighted operation is performed according to the first evaluation value, the second evaluation value, the target low-frequency weight and the target high-frequency weight, so as to obtain a target image quality evaluation value of the target vein image.
  8. 一种基于区块链的数据处理装置,其中,应用于区块链系统中的第一节点设备,所述区块链系统包括所述第一节点设备和多个第二节点设备,所述装置包括:A data processing device based on blockchain, wherein it is applied to a first node device in a blockchain system, the blockchain system includes the first node device and a plurality of second node devices, the device include:
    发送单元,用于向所述多个第二节点设备中的每一第二节点设备发送预调试操作指令,并指示该每一第二节点设备执行与所述预调试操作指令对应的预调试操作,以对所述预调试操作对应的资源进行加锁,并将执行所述预调试操作成功的成功响应消息返回给所述第一节点设备;a sending unit, configured to send a pre-debug operation instruction to each second node device in the plurality of second node devices, and instruct each second node device to perform a pre-debug operation corresponding to the pre-debug operation instruction , to lock the resource corresponding to the pre-debugging operation, and return a success response message that the pre-debugging operation is successfully executed to the first node device;
    补偿单元,用于在所述第一节点设备处于宕机状态时,通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况;a compensation unit, configured to add a preset compensation mechanism to the interface converter of the first node device when the first node device is in a down state, so as to obtain each second node device through the preset compensation mechanism Execution of pre-commissioning operations;
    执行单元,用于在所述预调试操作执行情况显示所述多个第二节点设备中的每一第二节点设备均成功执行所述预调试操作,则执行下一阶段操作。The executing unit is configured to execute the next stage operation when the execution status of the pre-debugging operation shows that each second node device in the plurality of second node devices successfully executes the pre-debugging operation.
  9. 一种节点设备,其中,包括处理器、存储器,所述存储器用于存储一个或多个程序,并且被配置由所述处理器执行,以实现基于区块链的数据处理方法,所述方法包括:A node device, which includes a processor and a memory, the memory is used to store one or more programs, and is configured to be executed by the processor to implement a blockchain-based data processing method, the method includes :
    向多个第二节点设备中的每一第二节点设备发送预调试操作指令,并指示该每一第二节点设备执行与所述预调试操作指令对应的预调试操作,以对所述预调试操作对应的资源进行加锁,并将执行所述预调试操作成功的成功响应消息返回给第一节点设备;Sending a pre-debug operation instruction to each second node device in the plurality of second node devices, and instructing each second node device to perform a pre-debug operation corresponding to the pre-debug operation instruction, so as to perform a pre-debug operation on the pre-debug Locking the resource corresponding to the operation, and returning a success response message indicating that the pre-debugging operation is successful to the first node device;
    在所述第一节点设备处于宕机状态时,通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况;When the first node device is in a down state, a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution of each second node device through the preset compensation mechanism condition;
    在所述预调试操作执行情况显示所述多个第二节点设备中的每一第二节点设备均成功执行所述预调试操作,则执行下一阶段操作。When the execution status of the pre-commissioning operation shows that each second node device in the plurality of second node devices successfully performs the pre-commissioning operation, the next stage of operation is performed.
  10. 根据权利要求9所述的节点设备,其中,还包括:The node device according to claim 9, further comprising:
    在所述预调试操作执行情况显示所述多个第二节点设备中的至少一个第二节点设备未成功执行所述预调试操作,则通过预设页面调用所述接口转换器的回滚机制操作。When the execution status of the pre-debugging operation shows that at least one second node device among the plurality of second node devices fails to perform the pre-debugging operation successfully, the rollback mechanism operation of the interface converter is invoked through a preset page .
  11. 根据权利要求9或10所述的节点设备,其中,执行所述通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况,包括:The node device according to claim 9 or 10, wherein the adding a preset compensation mechanism to the interface converter of the first node device is performed, so as to obtain the information of each second node device through the preset compensation mechanism Pre-debug operation execution, including:
    确定所述第一节点设备已接收到的N个所述成功响应消息,所述N为自然数;Determine the N successful response messages that have been received by the first node device, where N is a natural number;
    依据所述N个所述成功响应消息,确定所述第一节点设备未接收到所述成功响应消息的M个第二节点设备,所述M为正整数;According to the N successful response messages, it is determined that the first node device has not received M second node devices of the successful response message, where M is a positive integer;
    获取所述M个第二节点设备的属性信息,得到M个属性信息;acquiring attribute information of the M second node devices, and obtaining M attribute information;
    依据所述M个属性信息确定所述接口转换器的预设补偿机制;determining a preset compensation mechanism of the interface converter according to the M attribute information;
    通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况。A preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution status of each second node device through the preset compensation mechanism.
  12. 根据权利要求11所述的节点设备,其中,执行所述确定所述第一节点设备已接收到的N个所述成功响应消息,包括:The node device according to claim 11, wherein performing the determining of the N success response messages that have been received by the first node device comprises:
    在所述第一节点设备出现所述宕机状态的概率大于预设阈值时,向所述接口转换器推送目标消息,所述目标消息包括所述第一节点设备已接收到的N个所述成功响应消息。When the probability that the first node device is in the down state is greater than a preset threshold, push a target message to the interface converter, where the target message includes the N pieces of the first node device that have been received. Successful response message.
  13. 根据权利要求9或10所述的节点设备,其中,还包括:The node device according to claim 9 or 10, further comprising:
    获取目标静脉图像;Obtain the target vein image;
    确定所述目标静脉图像的目标图像质量评价值;determining the target image quality evaluation value of the target vein image;
    在所述目标图像质量评价值大于预设阈值时,将所述目标静脉图像与预设静脉模板进行匹配;When the target image quality evaluation value is greater than a preset threshold, matching the target vein image with a preset vein template;
    在所述目标静脉图像与所述预设静脉模板匹配成功时,执行所述向所述多个第二节点设备中的每一第二节点设备发送预调试操作指令的步骤。When the target vein image is successfully matched with the preset vein template, the step of sending a pre-commissioning operation instruction to each of the plurality of second node devices is performed.
  14. 根据权利要求13所述的节点设备,其中,执行所述确定所述目标静脉图像的目标图像质量评价值,包括:The node device according to claim 13, wherein performing the determining of the target image quality evaluation value of the target vein image comprises:
    将所述目标静脉图像进行多尺度特征分解,得到低频特征分量和高频特征分量;Perform multi-scale feature decomposition on the target vein image to obtain low-frequency feature components and high-frequency feature components;
    将所述低频特征分量划分为多个区域;dividing the low-frequency feature components into a plurality of regions;
    确定所述多个区域中每一区域对应的信息熵,得到多个信息熵;Determine the information entropy corresponding to each area in the multiple areas to obtain multiple information entropies;
    依据所述多个信息熵确定平均信息熵和目标均方差;determining an average information entropy and a target mean square error according to the plurality of information entropies;
    确定所述目标均方差对应的目标调节系数;determining the target adjustment coefficient corresponding to the target mean square error;
    依据所述目标调节系数对所述平均信息熵进行调节,得到目标信息熵;Adjusting the average information entropy according to the target adjustment coefficient to obtain a target information entropy;
    按照预设的信息熵与评价值之间的映射关系,确定所述目标信息熵对应的第一评价值;According to the preset mapping relationship between the information entropy and the evaluation value, determine the first evaluation value corresponding to the target information entropy;
    获取所述目标静脉图像对应的目标拍摄参数;acquiring target shooting parameters corresponding to the target vein image;
    按照预设的拍摄参数与低频权重之间的映射关系,确定所述目标拍摄参数对应的目标低频权重,依据该目标低频权重确定目标高频权重;According to the mapping relationship between the preset shooting parameters and the low-frequency weights, the target low-frequency weights corresponding to the target shooting parameters are determined, and the target high-frequency weights are determined according to the target low-frequency weights;
    依据所述高频特征分量确定目标特征点分布密度;determining the distribution density of target feature points according to the high-frequency feature components;
    按照预设的特征点分布密度与评价值之间的映射关系,确定所述目标特征点分布密度对应的第二评价值;According to the preset mapping relationship between the distribution density of feature points and the evaluation value, the second evaluation value corresponding to the distribution density of the target feature point is determined;
    依据所述第一评价值、所述第二评价值、所述目标低频权重和所述目标高频权重进行加权运算,得到所述目标静脉图像的目标图像质量评价值。A weighted operation is performed according to the first evaluation value, the second evaluation value, the target low-frequency weight and the target high-frequency weight, so as to obtain a target image quality evaluation value of the target vein image.
  15. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行基于区块链的数据处理方法,所述方法包括:A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program includes program instructions that, when executed by a processor, cause the processor to execute a blockchain-based The data processing method, the method includes:
    向多个第二节点设备中的每一第二节点设备发送预调试操作指令,并指示该每一第二节点设备执行与所述预调试操作指令对应的预调试操作,以对所述预调试操作对应的资源进行加锁,并将执行所述预调试操作成功的成功响应消息返回给第一节点设备;Sending a pre-debug operation instruction to each second node device in the plurality of second node devices, and instructing each second node device to perform a pre-debug operation corresponding to the pre-debug operation instruction, so as to perform a pre-debug operation on the pre-debug Locking the resource corresponding to the operation, and returning a success response message indicating that the pre-debugging operation is successful to the first node device;
    在所述第一节点设备处于宕机状态时,通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况;When the first node device is in a down state, a preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution of each second node device through the preset compensation mechanism condition;
    在所述预调试操作执行情况显示所述多个第二节点设备中的每一第二节点设备均成功执行所述预调试操作,则执行下一阶段操作。When the execution status of the pre-commissioning operation shows that each second node device in the plurality of second node devices successfully performs the pre-commissioning operation, the next stage of operation is performed.
  16. 根据权利要求15所述的计算机可读存储介质,其中,还包括:The computer-readable storage medium of claim 15, further comprising:
    在所述预调试操作执行情况显示所述多个第二节点设备中的至少一个第二节点设备未成功执行所述预调试操作,则通过预设页面调用所述接口转换器的回滚机制操作。When the execution status of the pre-debugging operation shows that at least one second node device among the plurality of second node devices fails to perform the pre-debugging operation successfully, the rollback mechanism operation of the interface converter is invoked through a preset page .
  17. 根据权利要求15或16所述的计算机可读存储介质,其中,执行所述通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况,包括:The computer-readable storage medium according to claim 15 or 16, wherein the adding a preset compensation mechanism to the interface converter of the first node device is performed, so as to obtain each second compensation mechanism through the preset compensation mechanism Execution of pre-commissioning operations on node devices, including:
    确定所述第一节点设备已接收到的N个所述成功响应消息,所述N为自然数;Determine the N successful response messages that have been received by the first node device, where N is a natural number;
    依据所述N个所述成功响应消息,确定所述第一节点设备未接收到所述成功响应消息 的M个第二节点设备,所述M为正整数;According to the N successful response messages, it is determined that the first node device has not received M second node devices of the successful response message, and the M is a positive integer;
    获取所述M个第二节点设备的属性信息,得到M个属性信息;acquiring attribute information of the M second node devices, and obtaining M attribute information;
    依据所述M个属性信息确定所述接口转换器的预设补偿机制;determining a preset compensation mechanism of the interface converter according to the M pieces of attribute information;
    通过所述第一节点设备的接口转换器上添加预设补偿机制,以通过所述预设补偿机制获取各个第二节点设备的预调试操作执行情况。A preset compensation mechanism is added to the interface converter of the first node device, so as to obtain the pre-debugging operation execution status of each second node device through the preset compensation mechanism.
  18. 根据权利要求17所述的计算机可读存储介质,其中,执行所述确定所述第一节点设备已接收到的N个所述成功响应消息,包括:The computer-readable storage medium of claim 17, wherein performing the determining of the N success response messages that the first node device has received comprises:
    在所述第一节点设备出现所述宕机状态的概率大于预设阈值时,向所述接口转换器推送目标消息,所述目标消息包括所述第一节点设备已接收到的N个所述成功响应消息。When the probability that the first node device is in the down state is greater than a preset threshold, push a target message to the interface converter, where the target message includes the N pieces of the first node device that have been received. Successful response message.
  19. 根据权利要求15或16所述的计算机可读存储介质,其中,还包括:The computer-readable storage medium of claim 15 or 16, further comprising:
    获取目标静脉图像;Obtain the target vein image;
    确定所述目标静脉图像的目标图像质量评价值;determining the target image quality evaluation value of the target vein image;
    在所述目标图像质量评价值大于预设阈值时,将所述目标静脉图像与预设静脉模板进行匹配;When the target image quality evaluation value is greater than a preset threshold, matching the target vein image with a preset vein template;
    在所述目标静脉图像与所述预设静脉模板匹配成功时,执行所述向所述多个第二节点设备中的每一第二节点设备发送预调试操作指令的步骤。When the target vein image is successfully matched with the preset vein template, the step of sending a pre-commissioning operation instruction to each of the plurality of second node devices is performed.
  20. 根据权利要求19所述的计算机可读存储介质,其中,执行所述确定所述目标静脉图像的目标图像质量评价值,包括:The computer-readable storage medium of claim 19, wherein performing the determining of the target image quality evaluation value of the target vein image comprises:
    将所述目标静脉图像进行多尺度特征分解,得到低频特征分量和高频特征分量;Perform multi-scale feature decomposition on the target vein image to obtain low-frequency feature components and high-frequency feature components;
    将所述低频特征分量划分为多个区域;dividing the low-frequency feature components into a plurality of regions;
    确定所述多个区域中每一区域对应的信息熵,得到多个信息熵;Determine the information entropy corresponding to each area in the multiple areas to obtain multiple information entropies;
    依据所述多个信息熵确定平均信息熵和目标均方差;determining an average information entropy and a target mean square error according to the plurality of information entropies;
    确定所述目标均方差对应的目标调节系数;determining the target adjustment coefficient corresponding to the target mean square error;
    依据所述目标调节系数对所述平均信息熵进行调节,得到目标信息熵;Adjusting the average information entropy according to the target adjustment coefficient to obtain a target information entropy;
    按照预设的信息熵与评价值之间的映射关系,确定所述目标信息熵对应的第一评价值;According to the preset mapping relationship between the information entropy and the evaluation value, determine the first evaluation value corresponding to the target information entropy;
    获取所述目标静脉图像对应的目标拍摄参数;acquiring target shooting parameters corresponding to the target vein image;
    按照预设的拍摄参数与低频权重之间的映射关系,确定所述目标拍摄参数对应的目标低频权重,依据该目标低频权重确定目标高频权重;According to the mapping relationship between the preset shooting parameters and the low-frequency weights, the target low-frequency weights corresponding to the target shooting parameters are determined, and the target high-frequency weights are determined according to the target low-frequency weights;
    依据所述高频特征分量确定目标特征点分布密度;determining the distribution density of target feature points according to the high-frequency feature components;
    按照预设的特征点分布密度与评价值之间的映射关系,确定所述目标特征点分布密度对应的第二评价值;According to the preset mapping relationship between the distribution density of feature points and the evaluation value, the second evaluation value corresponding to the distribution density of the target feature point is determined;
    依据所述第一评价值、所述第二评价值、所述目标低频权重和所述目标高频权重进行加权运算,得到所述目标静脉图像的目标图像质量评价值。A weighted operation is performed according to the first evaluation value, the second evaluation value, the target low-frequency weight and the target high-frequency weight, so as to obtain a target image quality evaluation value of the target vein image.
PCT/CN2021/109433 2020-09-03 2021-07-30 Blockchain-based data processing method and apparatus, and storage medium WO2022048361A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010913948.1 2020-09-03
CN202010913948.1A CN111984422B (en) 2020-09-03 2020-09-03 Block chain-based data processing method, device and storage medium

Publications (1)

Publication Number Publication Date
WO2022048361A1 true WO2022048361A1 (en) 2022-03-10

Family

ID=73447454

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/109433 WO2022048361A1 (en) 2020-09-03 2021-07-30 Blockchain-based data processing method and apparatus, and storage medium

Country Status (2)

Country Link
CN (1) CN111984422B (en)
WO (1) WO2022048361A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117493057A (en) * 2023-11-07 2024-02-02 上海合芯数字科技有限公司 Debugging method, equipment and medium for probabilistic startup failure of system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984422B (en) * 2020-09-03 2023-04-28 深圳壹账通智能科技有限公司 Block chain-based data processing method, device and storage medium
CN115002711A (en) * 2022-06-02 2022-09-02 四川师范大学 Block chain intelligent sensor based on 5G communication

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669809A (en) * 2018-09-11 2019-04-23 深圳平安财富宝投资咨询有限公司 Distributed transaction processing method, distributed system and computer readable storage medium
CN109933412A (en) * 2019-01-28 2019-06-25 武汉慧联无限科技有限公司 Distributed transaction processing method based on distributed message middleware
CN110221938A (en) * 2019-05-06 2019-09-10 深圳壹账通智能科技有限公司 The method and storage medium of electronic device, block chain common recognition
CN110232094A (en) * 2019-05-06 2019-09-13 深圳壹账通智能科技有限公司 Device, method and storage medium across chain transaction
US20200007513A1 (en) * 2018-06-29 2020-01-02 Arm Ip Limited Blockchain infrastructure for securing and/or managing electronic artifacts
CN111984422A (en) * 2020-09-03 2020-11-24 深圳壹账通智能科技有限公司 Data processing method and device based on block chain and storage medium

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567996A (en) * 2012-01-05 2012-07-11 中国地质大学(武汉) Remote sensing satellite image quality evaluation method
CN102903098A (en) * 2012-08-28 2013-01-30 四川虹微技术有限公司 Depth estimation method based on image definition difference
CN104766073A (en) * 2015-04-28 2015-07-08 天津理工大学 Self-adaptive hand back vein image collecting system
CN105513048A (en) * 2015-11-24 2016-04-20 西安电子科技大学昆山创新研究院 Sub-band-information-entropy-measure-based image quality evaluation method
US10255108B2 (en) * 2016-01-26 2019-04-09 International Business Machines Corporation Parallel execution of blockchain transactions
US11978045B2 (en) * 2016-12-22 2024-05-07 Mastercard International Incorporated Method and system for anonymous directed blockchain transaction
CN107656812A (en) * 2017-09-27 2018-02-02 咪咕文化科技有限公司 block chain processing method, system, node device, terminal and storage medium
US20190121669A1 (en) * 2017-10-20 2019-04-25 American Express Travel Related Services Company, Inc. Executing tasks using modular and intelligent code and data containers
US10678598B2 (en) * 2017-12-07 2020-06-09 International Business Machines Corporation Enforcing compute equity models in distributed blockchain
CN108323200B (en) * 2018-01-25 2022-12-20 达闼机器人股份有限公司 Data training method and device based on block chain, storage medium and block chain link points
CN108376106A (en) * 2018-02-01 2018-08-07 中国工商银行股份有限公司 A kind of block chain message feedback method and system
US11531603B2 (en) * 2018-02-12 2022-12-20 Ripple Labs Inc. Byzantine agreement in open networks
US10938922B2 (en) * 2018-04-04 2021-03-02 Christopher Allen Noble Cloud platforms, services, and methods
CN108804112B (en) * 2018-05-22 2022-02-11 上海分布信息科技有限公司 Block chain settlement processing method and system
CN110162953A (en) * 2019-05-31 2019-08-23 Oppo(重庆)智能科技有限公司 Biometric discrimination method and Related product
CN110992053B (en) * 2019-12-31 2023-04-28 国科火炼(杭州)数字科技有限公司 Secure payment system and method based on finger vein recognition and blockchain technology

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200007513A1 (en) * 2018-06-29 2020-01-02 Arm Ip Limited Blockchain infrastructure for securing and/or managing electronic artifacts
CN109669809A (en) * 2018-09-11 2019-04-23 深圳平安财富宝投资咨询有限公司 Distributed transaction processing method, distributed system and computer readable storage medium
CN109933412A (en) * 2019-01-28 2019-06-25 武汉慧联无限科技有限公司 Distributed transaction processing method based on distributed message middleware
CN110221938A (en) * 2019-05-06 2019-09-10 深圳壹账通智能科技有限公司 The method and storage medium of electronic device, block chain common recognition
CN110232094A (en) * 2019-05-06 2019-09-13 深圳壹账通智能科技有限公司 Device, method and storage medium across chain transaction
CN111984422A (en) * 2020-09-03 2020-11-24 深圳壹账通智能科技有限公司 Data processing method and device based on block chain and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117493057A (en) * 2023-11-07 2024-02-02 上海合芯数字科技有限公司 Debugging method, equipment and medium for probabilistic startup failure of system

Also Published As

Publication number Publication date
CN111984422A (en) 2020-11-24
CN111984422B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
WO2022048361A1 (en) Blockchain-based data processing method and apparatus, and storage medium
US20190251557A1 (en) Executing multi-party transactions using smart contracts
US11403344B2 (en) Traversing smart contract database through logic map
US7636776B2 (en) Systems and methods for synchronizing with multiple data stores
CN112463311A (en) Transaction processing method and device, computer equipment and storage medium
US9679266B2 (en) Systems and methods for intelligent batch processing of business events
US9055065B2 (en) Managing participant order in distributed transactions
US11681683B2 (en) Transaction compensation for single phase resources
WO2023016428A1 (en) Byzantine fault tolerance method and apparatus, and electronic device and storage medium
US9667475B2 (en) Systems and methods for communicating information of participants registered with a sub-coordinator during distributed transaction processing
US10708378B2 (en) Data processing method and apparatus, server, and controller
US20150248308A1 (en) Systems and methods for semi-durable transaction log storage in two-phase commit protocol transaction processing
WO2023016426A1 (en) Asynchronous binary agreement method and apparatus, and electronic device and storage medium
CN111045794A (en) Distributed transaction processing method, device, system, computer equipment and storage medium
US20220237153A1 (en) Synchronization processing method and related apparatus
WO2022134797A1 (en) Data fragmentation storage method and apparatus, a computer device, and a storage medium
US20150286496A1 (en) Systems and methods for enlisting single phase commit resources in a two phase commit transaction
CN112435123A (en) Transaction method, system and storage medium based on isomorphic multi-chain system
WO2022057463A1 (en) Blockchain-based data processing method and apparatus, and storage medium
CN109245941A (en) A kind of service compensation method and device
CN114490201A (en) Target interface testing method and device
CN113206884B (en) Micro-service selection method based on combined verification mechanism
CN112950183A (en) Cross-link data interchange method, system, device and electronic equipment
US7730487B2 (en) Synchronizing transaction ambient state among multiple transaction managers
US20240129374A1 (en) Performance-enhancing cross-system request handling via shared memory cache

Legal Events

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

Ref document number: 21863429

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 21/06/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21863429

Country of ref document: EP

Kind code of ref document: A1