Blockchain-based transaction processing methods, devices, electronic devices and media
By adjusting UTXO precision through voting and smart contract management in the blockchain network, the problems of low efficiency and high network pressure in UTXO precision adjustment are solved, achieving efficient and accurate UTXO precision adjustment and transaction processing.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-13
- Publication Date
- 2026-03-10
AI Technical Summary
Existing technologies struggle to improve adjustment efficiency without impacting user holdings when adjusting UTXO precision, and may lead to network congestion and inaccurate transaction data.
By voting in the blockchain network, the expected precision is extracted in response to the voting proposal, the actual precision is determined, and the UTXO amount is adjusted according to the actual and expected precision when the vote passes. An adjustment announcement is generated using the announcement smart contract, and the rejected transfer transaction request is processed within the adjustment time.
It improves the efficiency of UTXO precision adjustment without affecting users' UTXO holdings, simplifies the adjustment process, reduces network pressure, and ensures the accuracy of transfer transactions.
Smart Images

Figure CN115545684B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of artificial intelligence, specifically to the field of blockchain, and can be used in UTXO precision adjustment scenarios. Background Technology
[0002] UTXO (Unspent Transaction Output) includes UTXO precision and UTXO amount. UTXO precision refers to the smallest unit of UTXO division, while UTXO amount refers to the number of UTXOs in a block within that smallest unit of division.
[0003] As trading operations grow, it is often necessary to adjust the precision of UTXOs. Maintaining a constant UTXO holdings for users during this adjustment process is crucial for ensuring a positive user experience. Summary of the Invention
[0004] This disclosure provides a blockchain-based transaction processing method, apparatus, electronic device, and medium.
[0005] According to one aspect of this disclosure, a blockchain-based transaction processing method is provided, the method comprising:
[0006] In response to a voting proposal transaction that adjusts the precision of UTXOs in the blockchain network, the desired precision is extracted from the voting proposal transaction, and the actual precision of the amount of UTXOs available in the blockchain network is determined.
[0007] If the actual accuracy is inconsistent with the expected accuracy, the block nodes in the blockchain network are controlled to vote on the voting proposal and obtain the voting results.
[0008] If the voting result is that the vote passes, then the number of available UTXOs is adjusted according to the actual accuracy and the expected accuracy to obtain a new number of UTXOs under the expected accuracy.
[0009] According to another aspect of this disclosure, a blockchain-based transaction processing apparatus is provided, comprising:
[0010] The precision determination module is used to extract the desired precision from the voting proposal transaction that adjusts the precision of UTXOs in the blockchain network in response to the voting proposal transaction, and to determine the actual precision of the amount of available UTXOs in the blockchain network.
[0011] The voting module is used to control the block nodes in the blockchain network to vote on the voting proposal when the actual accuracy is inconsistent with the expected accuracy, and to obtain the voting results.
[0012] The precision adjustment module is used to adjust the number of available UTXOs according to the actual precision and the expected precision if the voting result is that the vote passes, so as to obtain a new number of UTXOs under the expected precision.
[0013] According to another aspect of this disclosure, an electronic device is provided, the electronic device comprising:
[0014] At least one processor; and
[0015] A memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores instructions that can be executed by the at least one processor, which, when executed, enable the at least one processor to perform the blockchain-based transaction processing method according to any embodiment of this disclosure.
[0017] According to another aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause a computer to execute the blockchain-based transaction processing method described in any embodiment of this disclosure.
[0018] According to another aspect of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the blockchain-based transaction processing method described in any embodiment of this disclosure.
[0019] According to the technology disclosed herein, UTXO precision can be adjusted without affecting the user's UTXO holdings, thereby improving precision adjustment efficiency.
[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0021] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:
[0022] Figure 1 This is a flowchart of a blockchain-based transaction processing method provided according to an embodiment of this disclosure;
[0023] Figure 2 This is a flowchart of another blockchain-based transaction processing method provided according to embodiments of this disclosure;
[0024] Figure 3 This is a schematic diagram of the structure of a blockchain-based transaction processing device according to an embodiment of the present disclosure;
[0025] Figure 4 This is a block diagram of an electronic device used to implement the blockchain-based transaction processing method of the embodiments of this disclosure. Detailed Implementation
[0026] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0027] Figure 1 This is a flowchart illustrating a blockchain-based transaction processing method according to an embodiment of this disclosure. This disclosure is applicable to situations where UTXO precision needs adjustment. The method can be executed by a blockchain-based transaction processing device, which can be implemented in software and / or hardware and integrated into an electronic device that hosts service access to blockchain-based transaction processing functionality. Figure 1 As shown, the blockchain-based transaction processing method in this embodiment may include:
[0028] S101, in response to a voting proposal transaction that adjusts the precision of UTXOs in the blockchain network, extract the desired precision from the voting proposal transaction and determine the actual precision of the amount of UTXOs available in the blockchain network;
[0029] S102, if the actual accuracy is inconsistent with the expected accuracy, control the block nodes in the blockchain network to vote on the voting proposal transaction and obtain the voting results;
[0030] S103, if the voting result is that the vote passes, then the number of available UTXOs is adjusted according to the actual precision and the expected precision to obtain a new number of UTXOs under the expected precision.
[0031] As we know, UTXO precision refers to the smallest unit of UTXO division, and UTXO amount refers to the number of UTXOs in a block within that smallest unit of division. In simpler terms, UTXO precision specifies the number of decimal places in the UTXO holding value. For example, with a UTXO precision of 2, the UTXO holding value can be represented as 100.00. Similarly, with a UTXO precision of 3, the UTXO holding value is represented as 100.000.
[0032] The available UTXO amount refers to the number of UTXOs in the blockchain network at the actual precision. Actual precision refers to the UTXO precision currently in effect in the blockchain network, which is the smallest unit of division currently in effect. Expected precision refers to the UTXO precision expected to be in effect. As transaction business develops, the actual precision may no longer be suitable for transaction business. In this case, it is generally necessary to adjust the actual precision; alternatively, the actual precision can be adjusted to the expected precision.
[0033] It is understandable that expected precision and actual precision are relative. Generally speaking, once the expected precision is written into the blockchain network, it becomes the actual precision. The specific values of actual precision and expected precision can be determined according to actual business needs. The expected precision may or may not be consistent with the actual precision. Whether the expected precision and actual precision are consistent depends on the actual situation and is not limited here.
[0034] Optionally, the voting proposal transaction includes the desired precision. In response to a voting proposal transaction that adjusts the precision of UTXOs in the blockchain network, the block node extracts the desired precision from the voting proposal transaction and determines the actual precision of the number of UTXOs available in the blockchain network.
[0035] Block nodes determine whether the actual precision matches the expected precision, thus determining whether the expected precision has taken effect in the blockchain network. If the actual precision does not match the expected precision, it indicates that the expected precision has not yet taken effect in the blockchain network; if the actual precision matches the expected precision, it indicates that the expected precision has taken effect in the blockchain network. The number of available UTXOs in the blockchain network already corresponds to the actual precision, and there is no need to adjust the UTXO precision in the blockchain network. In the case of a discrepancy between the actual precision and the expected precision, block nodes need to adjust the UTXO precision in the blockchain network. Optionally, block nodes adjust the UTXO precision in the blockchain network to the expected precision.
[0036] Since UTXO precision is a system parameter of the blockchain network, adjusting UTXO precision requires initiating a voting proposal transaction within the blockchain network. This voting proposal transaction controls the voting among block nodes in the blockchain network regarding whether to adjust the UTXO precision.
[0037] Block nodes vote on voting proposals, specifically on whether to adjust UTXO precision. Block nodes obtain the voting results for these proposals and determine whether to adjust the UTXO precision in the blockchain network based on those results.
[0038] Optionally, the voting proposal includes a voting validity threshold. The voting result is determined based on the percentage of votes passed and the voting validity threshold. Specifically, if the percentage of votes passed is greater than or equal to the voting validity threshold, the vote is considered passed; conversely, if the percentage of votes passed is less than the voting validity threshold, the vote is considered failed.
[0039] The "passing vote ratio" refers to the proportion of votes that passed out of all votes. The voting validity threshold is used to determine whether a voting proposal transaction can be effective. UTXO precision can only be adjusted if the voting proposal transaction is effective. The voting validity threshold is determined based on actual business needs and is not limited here. For example, the voting validity threshold can be 50%.
[0040] The voting results include: vote in favor and vote against. If the vote is in favor, the block node adjusts the number of available UTXOs based on the actual precision and the expected precision to obtain a new number of UTXOs at the expected precision.
[0041] It is known that the total number of UTXOs held is determined by both the amount of UTXOs and their precision. Therefore, to ensure a good user experience, the total number of UTXOs held in the blockchain network must remain constant while adjusting the precision of UTXOs.
[0042] The amount of available UTXOs and the UTXO holdings determined by the actual precision of the available UTXOs are referred to as the first UTXO holdings; the new amount of UTXOs under the desired precision and the UTXO holdings determined by the desired precision are referred to as the second UTXO holdings. Maintaining the total UTXO holdings in the blockchain network means ensuring that the first UTXO holdings are equal to the second UTXO holdings.
[0043] Block nodes adjust the available UTXO amount based on the actual precision and the expected precision to obtain a new UTXO amount at the expected precision. The relative size relationship between the new UTXO amount and the available UTXO amount is related to the relative size relationship between the actual precision and the expected precision. With the total UTXO holdings remaining constant, the smaller the minimum unit of UTXO division, the more UTXOs are obtained from the division. After the block nodes adjust the UTXO precision in the blockchain network to the expected precision, the new UTXO amount at the expected precision can be determined.
[0044] It is known that the amount of UTXOs is distributed and stored across different blocks in the blockchain network. In this embodiment of the disclosure, the block node adjusts the UTXO precision of the blockchain network by batch adjusting all UTXOs distributed across various blocks in the blockchain network.
[0045] In this embodiment, the desired precision is extracted from voting proposal transactions by block nodes, and the actual precision of the available UTXO amount in the blockchain network is determined. If the actual precision differs from the desired precision, the block nodes in the blockchain network are controlled to vote on the voting proposal transaction. If the vote passes, the available UTXO amount is adjusted based on the actual and desired precision to obtain a new UTXO amount with the desired precision. This provides technical support for adjusting the UTXO precision in the blockchain network, enabling adjustment of UTXO precision without affecting users' UTXO holdings, simplifying the UTXO precision adjustment method and reducing its difficulty. This embodiment also performs batch adjustments on all UTXOs in the blockchain network when the voting proposal transaction for adjusting UTXO precision passes, improving the efficiency of UTXO precision adjustment.
[0046] To help users understand the precision of UTXOs in the blockchain network, it is necessary to announce any adjustments to the precision of UTXOs in the blockchain network.
[0047] In an optional embodiment, the method further includes: if the voting result is that the vote passes, then invoking the announcement smart contract to generate a precision adjustment announcement; wherein the precision adjustment announcement includes at least: precision adjustment content and precision adjustment time.
[0048] The announcement smart contract is used to generate precision adjustment announcements. These announcements inform the blockchain network of the details and timing of UTXO precision adjustments. The precision adjustment details are determined based on the actual and desired precision. The precision adjustment time refers to the start time of the UTXO precision adjustment. The specific details and timing of these adjustments are determined based on actual business needs and are not limited here.
[0049] If the vote passes, the block node invokes the announcement smart contract to generate a precision adjustment announcement. This technical solution helps users understand the UTXO precision in the blockchain network, thus improving the user experience.
[0050] UTXO precision is a system parameter of the blockchain network. Adjusting the UTXO precision in the blockchain network involves adjusting the number of UTXOs in a large number of blocks, which puts enormous pressure on the blockchain network's data processing and may cause network congestion. To ensure the accuracy of transfer transactions, the blockchain network refuses to provide transfer services to external parties during the process of adjusting the UTXO precision.
[0051] In an optional embodiment, the method further includes: in response to a transfer transaction request, determining the expected transfer time of the transfer transaction request; if the expected transfer time is within the precision adjustment time, then refusing to process the transfer transaction request.
[0052] Optionally, the transfer transaction request includes the expected transfer time. The block node responds to the transfer transaction request by determining the expected transfer time. If the expected transfer time is within the precision adjustment time, the transfer transaction request is rejected. This technical solution ensures the accuracy of transfer transactions.
[0053] Figure 2 This is a flowchart of another blockchain-based transaction processing method provided according to an embodiment of this disclosure; this embodiment is an optional solution proposed based on the above embodiments. Specifically, this disclosure embodiment refines the operation "adjusting the available UTXO amount according to the actual precision and the expected precision to obtain a new UTXO amount under the expected precision".
[0054] See Figure 2 The blockchain-based transaction processing method provided in this embodiment includes:
[0055] S201, in response to a voting proposal transaction that adjusts the precision of UTXOs in the blockchain network, extract the desired precision from the voting proposal transaction and determine the actual precision of the amount of UTXOs available in the blockchain network.
[0056] S202, if the actual accuracy is inconsistent with the expected accuracy, control the block nodes in the blockchain network to vote on the voting proposal and obtain the voting results.
[0057] S203, if the voting result is that the vote passes, then the block to which the available UTXO amount belongs is determined as the target block.
[0058] UTXO amounts are distributed and stored across different blocks in the blockchain network. The target block refers to the block that stores the UTXO amounts.
[0059] If the vote passes, the block node will identify the block containing the available UTXO amount as the target block.
[0060] S204, determine the number of available UTXOs in the target block at the actual precision, and use it as the current number of UTXOs.
[0061] The block node determines the number of available UTXOs in the target block at the actual precision, and uses it as the current number of UTXOs.
[0062] S205, based on the actual accuracy, the expected accuracy, and the current UTXO amount, determine the new UTXO amount in the target block at the expected accuracy.
[0063] Understandably, to ensure a good user experience, the number of UTXOs held needs to remain constant while adjusting UTXO precision. With the number of UTXOs held constant, different UTXO precisions correspond to different numbers of UTXOs.
[0064] The available UTXO amount in the target block at the actual precision is the current UTXO amount, which corresponds to the actual precision. The new UTXO amount corresponds to the expected precision.
[0065] The amount of UTXOs held in the target block can be determined based on the actual precision and the current number of UTXOs. Given the amount of UTXOs held and the desired precision, the new number of UTXOs in the target block at the desired precision can be determined.
[0066] In this embodiment of the disclosure, the blockchain node determines the new UTXO amount in the target block at the desired precision based on the actual precision, the desired precision, and the current UTXO amount, providing data support for adjusting the UTXO precision in the blockchain network.
[0067] In an optional embodiment, determining a new UTXO number in the target block at the desired precision based on the actual precision, the desired precision, and the current UTXO number includes: determining a precision difference between the actual precision and the desired precision; and determining a new UTXO number in the target block at the desired precision based on the precision difference and the current UTXO number.
[0068] The accuracy difference is determined based on the desired accuracy and the actual accuracy. The accuracy difference reflects the change in UTXO accuracy. It is used to determine the new number of UTXOs at the desired accuracy.
[0069] Blockchain nodes determine the precision difference between the desired precision and the actual precision. Based on the precision difference and the current UTXO amount, a new UTXO amount in the target block at the desired precision is determined. This technical solution, based on the actual precision, desired precision, and current UTXO amount, determines a new UTXO amount in the target block at the desired precision, providing data support for adjusting the UTXO precision in the blockchain network.
[0070] In an optional embodiment, determining a new UTXO number in the target block at the desired precision based on the precision difference and the current UTXO number includes:
[0071] Based on the following formula, the new UTXO amount in the target block at the desired precision is determined according to the precision difference and the current UTXO amount;
[0072] U2 = U1 × 10 Pnew-Pold
[0073] Wherein, U2 represents the new UTXO amount in the target block at the desired precision; U1 represents the current UTXO amount; Pnew represents the desired precision; Pold represents the actual precision. Pnew-Pold represents the precision difference. Both Pnew and Pold are positive integers.
[0074] The above technical solution provides a specific and effective calculation method for determining the new UTXO amount at the desired precision in the target block, and provides data support for adjusting the UTXO precision in the blockchain network.
[0075] Figure 3 This is a schematic diagram of a blockchain-based transaction processing device according to an embodiment of this disclosure. This disclosure is applicable to situations where UTXO precision needs adjustment. The device can be implemented using software and / or hardware, and can implement the blockchain-based transaction processing method described in any embodiment of this disclosure. Figure 3 As shown, the blockchain-based transaction processing device 300 includes:
[0076] The precision determination module 301 is used to extract the desired precision from the voting proposal transaction that adjusts the precision of UTXOs in the blockchain network in response to the voting proposal transaction, and to determine the actual precision of the amount of available UTXOs in the blockchain network.
[0077] The voting module 302 is used to control the block nodes in the blockchain network to vote on the voting proposal transaction and obtain the voting results when the actual accuracy is inconsistent with the expected accuracy.
[0078] The precision adjustment module 303 is used to adjust the number of available UTXOs according to the actual precision and the expected precision if the voting result is that the vote passes, so as to obtain a new number of UTXOs under the expected precision.
[0079] In this embodiment, the desired precision is extracted from the voting proposal transaction by the block nodes, and the actual precision of the available UTXO amount in the blockchain network is determined. If the actual precision differs from the desired precision, the block nodes in the blockchain network are controlled to vote on the voting proposal transaction. If the vote passes, the available UTXO amount is adjusted according to the actual precision and the desired precision to obtain a new UTXO amount with the desired precision. This provides technical support for adjusting the UTXO precision in the blockchain network, enabling adjustment of UTXO precision without affecting users' UTXO holdings, simplifying the UTXO precision adjustment method and reducing the difficulty of UTXO precision adjustment. This embodiment performs batch adjustment of all UTXOs in the blockchain network when the voting proposal transaction for adjusting UTXO precision passes, improving the efficiency of UTXO precision adjustment.
[0080] Optionally, the precision adjustment module includes: a target block determination submodule, used to determine the block to which the available UTXO amount belongs as the target block; an available UTXO amount determination submodule, used to determine the available UTXO amount in the target block at the actual precision, as the current UTXO amount; and a new UTXO amount determination submodule, used to determine a new UTXO amount in the target block at the desired precision based on the actual precision, the desired precision, and the current UTXO amount.
[0081] Optionally, the new UTXO amount determination submodule includes: a precision difference determination unit, used to determine the precision difference between the actual precision and the expected precision; and a new UTXO amount determination unit, used to determine a new UTXO amount in the target block at the expected precision based on the precision difference and the current UTXO amount.
[0082] Optionally, the new UTXO amount determination unit is specifically used to: determine the new UTXO amount in the target block under the desired precision based on the following formula, according to the precision difference and the current UTXO amount;
[0083] U2 = U1 × 10 Pnew-Pold
[0084] Wherein, U2 represents the new UTXO amount in the target block under the desired precision; U1 represents the current UTXO amount; Pnew represents the desired precision; Pold represents the actual precision; Pnew-Pold represents the precision difference; and Pnew and Pold are both positive integers.
[0085] Optionally, the device further includes: a precision adjustment announcement generation module, used to call an announcement smart contract and generate a precision adjustment announcement through the announcement smart contract if the voting result is that the vote passes; wherein the precision adjustment announcement includes at least: precision adjustment content and precision adjustment time.
[0086] Optionally, the apparatus further includes: an expected transfer time determination module, configured to determine the expected transfer time of the transfer transaction request in response to the transfer transaction request; and a transfer transaction request processing module, configured to refuse to process the transfer transaction request if the expected transfer time is within the precision adjustment time.
[0087] The blockchain-based transaction processing apparatus provided in this disclosure can execute the blockchain-based transaction processing method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the blockchain-based transaction processing method.
[0088] The collection, storage, use, processing, transmission, provision, and disclosure of user information involved in the technical solution disclosed herein all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0089] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0090] Figure 4 A schematic block diagram of an example electronic device 400 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0091] like Figure 4 As shown, the electronic device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. The RAM 403 may also store various programs and data required for the operation of the electronic device 400. The computing unit 401, ROM 402, and RAM 403 are interconnected via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0092] Multiple components in electronic device 400 are connected to I / O interface 405, including: input unit 406, such as keyboard, mouse, etc.; output unit 407, such as various types of displays, speakers, etc.; storage unit 408, such as disk, optical disk, etc.; and communication unit 409, such as network card, modem, wireless transceiver, etc. Communication unit 409 allows electronic device 400 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0093] The computing unit 401 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 401 performs the various methods and processes described above, such as blockchain-based transaction processing methods. For example, in some embodiments, the blockchain-based transaction processing method can be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 408. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by the computing unit 401, one or more steps of the blockchain-based transaction processing method described above can be performed. Alternatively, in other embodiments, the computing unit 401 can be configured to perform blockchain-based transaction processing methods by any other suitable means (e.g., by means of firmware).
[0094] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0095] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable blockchain-based transaction processing device, such that when executed by the processor or controller, the program code enables the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on the machine, partially on the machine, as a standalone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0096] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0097] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0098] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0099] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.
[0100] Artificial intelligence (AI) is the study of enabling computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, and planning). It encompasses both hardware and software technologies. AI hardware technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, and big data processing. AI software technologies mainly include computer vision, speech recognition, natural language processing, machine learning / deep learning, big data processing, and knowledge graph technologies.
[0101] Cloud computing refers to a technology system that enables access to a shared pool of physical or virtual resources via a network. These resources can include servers, operating systems, networks, software, applications, and storage devices, and can be deployed and managed on demand and in a self-service manner. Cloud computing technology can provide efficient and powerful data processing capabilities for applications such as artificial intelligence and blockchain, as well as for model training.
[0102] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0103] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.
Claims
1. A blockchain-based transaction processing method, comprising: extracting a desired precision from a voting proposal transaction for adjusting UTXO precision in a blockchain network, and determining an actual precision of an available UTXO amount in the blockchain network in response to the voting proposal transaction; wherein the UTXO precision specifies the number of digits after the decimal point of a UTXO holding amount, the available UTXO amount refers to the UTXO amount in the blockchain network at the actual precision, the UTXO amount refers to the number of UTXOs in a block at a minimum cutting unit, and the UTXO holding amount is determined by the UTXO amount and the UTXO precision; controlling a block node in the blockchain network to vote on the voting proposal transaction and obtaining a voting result in a case where the actual precision is inconsistent with the desired precision; determining a target block to which the available UTXO amount belongs as a target block if the voting result is a voting pass; determining the available UTXO amount at the actual precision in the target block as a current UTXO amount; determining a precision difference between the actual precision and the desired precision; determining a new UTXO amount at the desired precision in the target block according to the precision difference and the current UTXO amount; wherein the new UTXO amount is determined by multiplying the current UTXO amount by ten raised to the power of the precision difference; and wherein the precision difference is the desired precision minus the actual precision; calling an announcement smart contract to generate a precision adjustment announcement through the announcement smart contract if the voting result is a voting pass; wherein the precision adjustment announcement at least includes precision adjustment content and a precision adjustment time; determining a desired transfer time of a transfer transaction request in response to the transfer transaction request; refusing to process the transfer transaction request if the desired transfer time is within the precision adjustment time. 2.A blockchain-based transaction processing device, comprising: a precision determination module configured to extract a desired precision from a voting proposal transaction for adjusting UTXO precision in a blockchain network, and determine an actual precision of an available UTXO amount in the blockchain network in response to the voting proposal transaction; wherein the UTXO precision specifies the number of digits after the decimal point of a UTXO holding amount, the available UTXO amount refers to the UTXO amount in the blockchain network at the actual precision, the UTXO amount refers to the number of UTXOs in a block at a minimum cutting unit, and the UTXO holding amount is determined by the UTXO amount and the UTXO precision; a voting module configured to control a block node in the blockchain network to vote on the voting proposal transaction and obtain a voting result in a case where the actual precision is inconsistent with the desired precision; a precision adjustment module, comprising: a target block determination submodule configured to determine a target block to which the available UTXO amount belongs as a target block. The available UTXO amount determination submodule is configured to determine an available UTXO amount at the actual precision in the target block as a current UTXO amount. The new UTXO amount determination submodule includes a precision difference determination unit and a new UTXO amount determination unit. The precision difference determination unit is configured to determine a precision difference between the actual precision and the expected precision. The new UTXO amount determination unit is configured to determine a new UTXO amount at the expected precision in the target block according to the precision difference and the current UTXO amount, wherein the new UTXO amount is determined by multiplying the current UTXO amount by ten raised to the power of the precision difference, and the precision difference is the expected precision minus the actual precision. The precision adjustment announcement generation module is configured to, if the voting result is a voting pass, invoke an announcement smart contract, and generate a precision adjustment announcement through the announcement smart contract, wherein the precision adjustment announcement at least includes precision adjustment content and a precision adjustment time. The expected transfer time determination module is configured to determine an expected transfer time of a transfer transaction request in response to the transfer transaction request. The transfer transaction request processing module is configured to, if the expected transfer time is within the precision adjustment time, reject processing of the transfer transaction request. 3.An electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the blockchain-based transaction processing method of claim 1.
4. A non-transitory computer readable storage medium having stored thereon computer instructions, wherein, The computer instructions are used to enable a computer to perform the blockchain-based transaction processing method of claim 1. 5.A computer program product comprising a computer program which, when executed by a processor, implements the blockchain-based transaction processing method of claim 1.
Citation Information
Patent Citations
Block chain voting governance method, device and equipment and readable storage medium
CN109949038A