CN115509695A - Transaction processing method, device and equipment based on block chain and storage medium - Google Patents

Transaction processing method, device and equipment based on block chain and storage medium Download PDF

Info

Publication number
CN115509695A
CN115509695A CN202211248539.XA CN202211248539A CN115509695A CN 115509695 A CN115509695 A CN 115509695A CN 202211248539 A CN202211248539 A CN 202211248539A CN 115509695 A CN115509695 A CN 115509695A
Authority
CN
China
Prior art keywords
user
voting
element amount
incentive
incentive element
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211248539.XA
Other languages
Chinese (zh)
Inventor
肖伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202211248539.XA priority Critical patent/CN115509695A/en
Publication of CN115509695A publication Critical patent/CN115509695A/en
Pending legal-status Critical Current

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/466Transaction processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0239Online discounts or incentives

Abstract

The disclosure provides a transaction processing method, a transaction processing device, transaction processing equipment and a storage medium based on a block chain, relates to the technical field of computers, particularly relates to the technical field of the block chain, and can be used for cloud computing and cloud services. The specific implementation scheme is as follows: in response to a transaction request of a first user for a target proposal, determining a total voting incentive element amount held by the first user for the target proposal; the total voting incentive element amount is determined according to the treatment incentive element amount held by the first user; and executing the transaction processing request according to the total voting incentive element amount held by the first user on the target proposal. Through the technical scheme, the voting efficiency of the proposal can be improved.

Description

Transaction processing method, device and equipment based on block chain and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to the field of blockchain technologies, which can be used for cloud computing and cloud services.
Background
At present, many block chain governing networks adopt a network governing mode of proposal voting, that is, when data modification is to be initiated on a block chain, a proposal is initiated on the block chain, then a user carries out voting according to a held block chain incentive element, the held incentive element is locked during voting, repeated voting is prevented, and the incentive element is released until the proposal is finished. The voting of the proposal is serialized, and the voting of the next proposal is started after the voting of one proposal is finished. Voting is inefficient and, therefore, improvements are needed.
Disclosure of Invention
The disclosure provides a transaction processing method, a transaction processing device, transaction processing equipment and a storage medium based on a block chain.
According to an aspect of the present disclosure, a transaction processing method based on a block chain is provided, the method including:
in response to a transaction request of a first user for a target proposal, determining a total voting incentive element amount held by the first user for the target proposal; the total voting incentive element amount is determined according to the treatment incentive element amount held by the first user;
and executing the transaction processing request according to the total voting incentive element amount held by the first user on the target proposal.
According to an aspect of the present disclosure, there is provided a transaction processing apparatus based on a block chain, the apparatus including:
a voting incentive element amount determination module, configured to determine, in response to a transaction request by a first user for a target proposal, a total voting incentive element amount held by the first user for the target proposal; the total voting incentive element amount is determined according to the governing incentive element amount held by the first user;
and the transaction processing request execution module is used for executing the transaction processing request according to the total voting incentive element amount held by the first user on the target proposal.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method for blockchain based transaction processing according to any of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method for blockchain based transaction according to any one of the embodiments of the present disclosure.
According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements a method of blockchain based transaction processing according to any of the embodiments of the present disclosure.
According to the technology disclosed by the invention, the processing efficiency of the proposal can be improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a flowchart of a transaction processing method based on a block chain according to an embodiment of the present disclosure;
fig. 2 is a flowchart of another transaction processing method based on a block chain according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of another block chain based transaction processing method provided in accordance with an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a transaction processing apparatus based on a block chain according to an embodiment of the present disclosure;
fig. 5 is a block diagram of an electronic device used to implement a blockchain-based transaction method according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the terms "first," "second," "third," "target," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In addition, in the technical scheme of the invention, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the relevant data such as the incentive elements of the target proposal by the related user are all in accordance with the regulations of relevant laws and regulations and do not violate the good custom of the public order.
Fig. 1 is a flowchart of a transaction processing method based on a blockchain according to an embodiment of the present disclosure, which is suitable for a case how to perform transaction processing based on a blockchain. The method can be executed by a block chain based transaction processing method device, which can be implemented in software and/or hardware, and can be integrated in an electronic device, such as a server, carrying block chain based transaction processing functions. As shown in fig. 1, the block chain-based transaction processing method of this embodiment may include:
s101, responding to a transaction processing request of a first user to a target proposal, and determining the total voting incentive element amount held by the first user to the target proposal; the total voting incentive element amount is determined based on the amount of treatment incentive elements held by the first user.
In this embodiment, the target proposal refers to any proposal for voting in the block chain governance network; for example, the proposal of the treatment right of the bar in the bar treatment scene based on the block chain technology can be used, such as the proposal of selecting who is the bar owner; the proposal, such as voting for a certain transaction, can also be a proposal based on the microblog voting scene of the block chain technology.
The first user refers to a user who can vote on the target proposal. The transaction processing request refers to a request for processing a target proposal; alternatively, it may be a voting transaction request; further, it may be that the voting incentive element transfers the transaction request.
Voting incentive elements refer to incentive elements for voting on a proposal; the aggregate solution incentive element amount refers to an incentive element amount for voting on the target proposal. The treatment incentive elements are incentive elements for community treatment; the abatement incentive element amount refers to an amount of abatement incentive elements held by the first user.
In particular, the blockchain network may respond to a transaction request by a first user for a target proposal and determine a total voting incentive element amount held by the first user for the target proposal. The total amount of the solution incentive elements may be determined according to the amount of the abatement incentive elements held by the first user, for example, the amount of the abatement incentive elements held by the first user may be set to a multiple as the total amount of the solution incentive elements. The setting multiple may be set by a person skilled in the art according to actual requirements, such as 2.
S102, executing the transaction processing request according to the total voting incentive element amount held by the first user on the target proposal.
In particular, the blockchain network may perform the transaction request based on the total amount of voting incentive elements held by the first user for the target proposal, e.g., may perform voting of the target proposal or perform a transfer of voting incentive elements of the target proposal.
It should be noted that the present disclosure enables parallel voting on a plurality of target proposals, and for each target proposal, a transaction request of the first user to the target proposal may be executed according to S101-S102.
According to the technical scheme provided by the embodiment of the disclosure, the amount of the total voting incentive elements held by the first user on the target proposal is determined by responding to the transaction processing request of the first user on the target proposal; and determining the total voting incentive element amount according to the treatment incentive element amount held by the first user, and then executing the transaction processing request according to the total voting incentive element amount held by the first user on the target proposal. According to the technical scheme, the target proposal is processed through the voting incentive elements, and the proposal processing efficiency can be improved.
Fig. 2 is a flowchart of another block chain based transaction processing method provided in accordance with an embodiment of the present disclosure. This embodiment provides an alternative implementation to further optimize the "determining the total voting incentive element amount held by the first user for the target proposal in response to the transaction request for the target proposal by the first user" based on the above embodiment. As shown in fig. 2, the block chain-based transaction processing method of this embodiment may include:
s201, responding to the transaction processing request of the first user to the target proposal, and determining the governance inheritance state of the first user to the target proposal.
In this embodiment, the governance inheritance state refers to an initialization state of a user for a proposal, that is, a state of whether the proposal can be voted or not; optionally, the governance inheritance state may include non-inheritance and inheritance; wherein, not inheriting means that the user has not been assigned the voting incentive element amount of the proposal, that is, the user cannot vote the proposal at this time; the inherited representation indicates the amount of voting incentive elements that the user has been assigned to the proposal, i.e., when the user is able to vote on the proposal.
Specifically, the blockchain network may determine, in response to a transaction request of the first user for the target proposal, an administration inheritance state of the first user for the target proposal from a block in which the target proposal is located.
S202, if the governance inheritance state is not inherited, taking the block initiating the target proposal as a target block, and determining the amount of the first governance incentive elements of the first user in the target block.
Specifically, if the governance inheritance state is not inherited, the block initiating the target proposal is used as a target block, and the amount of the first governance incentive elements of the first user in the target block is determined from the target block.
S203, determining the total voting incentive element amount held by the first user on the target proposal according to the first governance incentive element amount.
Optionally, according to the first governance incentive element amount, a voting incentive element amount with a multiple is distributed to the first user as a total voting incentive element amount held by the first user on the target proposal. Wherein, the setting multiple can be set according to actual demand, and is preferably 1.
S204, executing the transaction processing request according to the total voting incentive element amount held by the first user on the target proposal.
According to the technical scheme, the treatment inheritance state of the first user on the target proposal is determined by responding to the transaction processing request of the first user on the target proposal, if the treatment inheritance state is not inherited, the block initiating the target proposal is used as the target block, the first treatment incentive element amount of the first user on the target block is determined, then the total voting incentive element amount of the first user on the target proposal is determined according to the first treatment incentive element amount, and the transaction processing request is executed according to the total voting incentive element amount of the first user on the target proposal. Compared with the technical scheme that voting incentive elements for a proposal are distributed for each user when the proposal is created, the logic data executed by a block for creating the proposal is huge, the improvement inheritance state is introduced into the method, and the amount of the voting incentive elements for the target proposal is distributed for the user based on the improvement inheritance state, namely when the improvement inheritance state is not inherited, the amount of the voting incentive elements for the target proposal is distributed for the user, so that the total amount of the voting incentive elements held by the user for the target proposal is determined, and the data processing amount of the block is reduced.
On the basis of the above embodiment, as an optional manner of the present disclosure, if the governance inheritance state is inherited, the transaction processing request may be executed directly according to the total voting incentive element amount held by the first user on the target proposal.
On the basis of the above embodiment, as an optional manner of the present disclosure, determining the total voting incentive element amount held by the first user for the target proposal according to the first governance incentive element amount may be assigning, according to the first governance incentive element amount, the first voting incentive element amount for the target proposal to the first user; responding to a voting incentive element transfer transaction request initiated by a second user, and acquiring a second voting incentive element amount transferred from the second user to the first user; and taking the sum of the first voting incentive element amount and the second voting incentive element amount as the total voting incentive element amount held by the first user on the target proposal.
The second user refers to a user who transfers the voting incentive elements of the target proposal to other users. A voting incentive element transfer transaction request refers to a transaction request for performing a voting incentive element transfer.
Specifically, the block chain network may allocate, to the first user, a voting incentive element amount that is a set multiple of the first governance incentive element amount according to the first governance incentive element amount, as the first voting incentive element amount of the first user for the target proposal; the setting multiple can be set according to actual requirements, and is preferably 1. A second voting incentive element amount transferred from the second user to the first user may then be obtained in response to the voting incentive element transfer transaction request initiated by the second user. And then the sum of the first voting incentive element amount and the second voting incentive element amount is used as the total voting incentive element amount held by the first user on the target proposal.
It can be understood that before the user votes on the target proposal, the voting incentive elements transferred by other users can be obtained, and under the condition that the user carries out proposal voting by himself, other people can be acted for proposal voting.
On the basis of the above embodiment, as an optional manner of the present disclosure, after the first voting incentive element amount for the target proposal is assigned to the first user according to the first governance incentive element amount, the governance inheritance state of the target proposal by the first user may be switched from non-inheritance to inherited.
Specifically, after the first voting incentive element amount of the target proposal is assigned to the first user according to the first governing incentive element amount, the governing inheritance state of the target proposal by the first user can be switched from non-inheritance to inheritance. That is, after the block chain network allocates the first voting incentive element amount to the target proposal for the first user, the first user has voting incentive elements to the target proposal, and at this time, the governance inheritance state of the first user to the target proposal is switched from non-inheritance to inheritance, so that the transaction processing request can be executed according to the total voting incentive element amount held by the first user to the target proposal.
It will be appreciated that the corresponding transaction request to the target proposal is executed by switching the governance inheritance state for the target proposal, indicating that the user already has an amount of voting incentive elements for the target proposal.
Fig. 3 is a flowchart of another block chain-based transaction processing method provided in accordance with an embodiment of the present disclosure. This embodiment provides an alternative implementation to further optimize the execution of the transaction request based on the total voted incentive element amount held by the first user for the target proposal based on the above embodiment. As shown in fig. 3, the block chain-based transaction processing method of this embodiment may include:
s301, responding to a transaction processing request of a first user to a target proposal, and determining the total voting incentive element amount held by the first user to the target proposal; the total voting incentive element amount is determined based on the amount of treatment incentive elements held by the first user.
S302, under the condition that the transaction processing request is a voting transaction request, voting information of the first user on the target proposal is obtained.
In this embodiment, the voting transaction request refers to a transaction request for voting on a target proposal. Voting information refers to voting information for a target proposal, and may include the amount of voting incentive elements corresponding to pass, fail, or abandon, etc.
Specifically, the first user may query the blockchain network for the total voting incentive element amount that the first user holds for the target proposal, determine voting information for the target proposal, that is, the passing voting incentive element amount, the failing voting incentive element amount, or the abstaining voting incentive element amount, and then initiate a voting transaction request to the blockchain network to vote for the target proposal. Correspondingly, the block chain network acquires the voting information of the first user on the target proposal under the condition that the received transaction processing request is the voting transaction request.
S303, determining a vote passing proportion according to the vote information and the total vote incentive element amount held by the first user on the target proposal.
Specifically, the amount of the passed voting incentive elements in the voting information is determined, and the ratio of the amount of the passed voting incentive elements to the total amount of the voting incentive elements held by the first user on the target proposal is used as a voting passing proportion. If the vote passing proportion is larger than the proportion threshold, determining that the first user passes through the target proposal; the proportional threshold is determined when the target proposal is initiated, and a specific numerical value can be set according to actual requirements.
According to the technical scheme provided by the embodiment of the disclosure, the total voting incentive element amount held by the first user on the target proposal is determined by responding to the transaction processing request of the first user on the target proposal; and determining the total voting incentive element amount according to the treatment incentive element amount held by the first user, then acquiring voting information of the first user on the target proposal under the condition that the transaction processing request is a voting transaction request, and further determining a voting passing proportion according to the voting information and the total voting incentive element amount held by the first user on the target proposal. According to the technical scheme, the target proposal is voted through the total voting incentive element amount held by the user on the target proposal, namely the voting incentive elements are specially used for voting the proposal, so that the voting efficiency on the proposal is improved.
Based on the foregoing embodiment, as an optional manner of the present disclosure, according to the total voting incentive element amount held by the first user for the target proposal, executing the transaction processing request may be that, in a case where the transaction processing request is a transfer transaction request of the voting incentive element of the first user for the third user, a third voting incentive element amount for the target proposal is transferred to the third user according to the total voting incentive element amount held by the first user for the target proposal.
The third user refers to a user who takes the agent of the first user to vote on the target proposal. A voting incentive element transfer transaction request refers to a transaction request that transfers a voting incentive element. The third voting incentive element amount refers to an amount of voting incentive elements transferred by the first user to the third user.
Specifically, in the case where the first user has a voting right on the target proposal but does not want to vote, the first user may transfer the incentive elements to have their trusted other user agents vote, determine the amount of the third voting incentive elements to be transferred, and initiate a voting incentive element transfer transaction request to the third user to the block chain network. Correspondingly, under the condition that a voting incentive element transfer transaction request of the first user to the third user is obtained, transferring a third voting incentive element amount to the target proposal to the third user according to the total voting incentive element amount held by the first user to the target proposal, for example, transferring the total voting incentive element data held by the first user to the target proposal, namely the third voting incentive element amount to the third user; as another example, a portion of the first user's total voting incentive element amount held for the target proposal may be transferred to the third user, i.e., a third voting incentive element amount.
It can be understood that the scheme can transfer the voting incentive elements of the scheme to other users, and realizes the proxy voting of the proposal.
Fig. 4 is a schematic structural diagram of a transaction processing apparatus based on a block chain according to an embodiment of the present disclosure. The present embodiment is applicable to the case of how to perform transactions based on a blockchain. The apparatus can be implemented in software and/or hardware, and can be integrated in an electronic device, such as a server, that carries transaction processing functions based on a blockchain. As shown in fig. 4, the block chain-based transaction processing apparatus 400 of this embodiment may include:
a voting incentive element amount determination module 401, configured to determine, in response to a transaction processing request for the target proposal by the first user, a total voting incentive element amount held by the first user for the target proposal; the total voting incentive element amount is determined according to the treatment incentive element amount held by the first user;
a transaction request executing module 402, configured to execute a transaction request according to the total voting incentive element amount held by the first user on the target proposal.
According to the technical scheme provided by the embodiment of the disclosure, the total voting incentive element amount held by the first user on the target proposal is determined by responding to the transaction processing request of the first user on the target proposal; and determining the total voting incentive element amount according to the treatment incentive element amount held by the first user, and then executing the transaction processing request according to the total voting incentive element amount held by the first user on the target proposal. According to the technical scheme, the target proposal is processed through the voting incentive elements, and the proposal processing efficiency can be improved.
Further, voting incentive element amount determination module 401 includes:
the treatment inheritance state determination unit is used for responding to a transaction processing request of the first user for the target proposal, and determining the treatment inheritance state of the first user for the target proposal;
the first governance incentive element determining unit is used for taking a block initiating a target proposal as a target block and determining the amount of a first governance incentive element of a first user in the target block if the governance inheritance state is not inherited;
and the voting incentive element amount determining unit is used for determining the total voting incentive element amount held by the first user on the target proposal according to the first treatment incentive element amount.
Further, the voting incentive element amount determination unit is specifically configured to:
according to the first governance incentive element amount, distributing a first voting incentive element amount of the target proposal for the first user;
responding to a voting incentive element transfer transaction request initiated by a second user, and acquiring a second voting incentive element amount transferred from the second user to the first user;
and taking the sum of the first voting incentive element amount and the second voting incentive element amount as the total voting incentive element amount held by the first user on the target proposal.
Further, the voting incentive element amount determination module 401 further includes:
and the governance inheritance state changing unit is used for switching the governance inheritance state of the first user on the target proposal from non-inheritance to inherited after distributing the first voting incentive element amount of the target proposal for the first user according to the first governance incentive element amount.
Further, the transaction request execution module 402 is specifically configured to:
under the condition that the transaction processing request is a voting transaction request, obtaining voting information of a first user on a target proposal;
and determining the vote passing proportion according to the voting information and the total voting incentive element amount held by the first user on the target proposal.
Further, the transaction processing request execution module 402 is specifically configured to:
and in the case that the transaction processing request is a voting incentive element transfer transaction request of the first user to the third user, transferring a third voting incentive element amount to the target proposal to the third user according to the total voting incentive element amount held by the first user to the target proposal.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
Fig. 5 is a block diagram of an electronic device used to implement a blockchain-based transaction method according to an embodiment of the present disclosure. FIG. 5 illustrates a schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the electronic device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic apparatus 500 can also be stored. The calculation unit 501, the ROM 502, and the RAM 503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in the electronic device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, or the like; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508, such as a magnetic disk, optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the electronic device 500 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 501 performs the various methods and processes described above, such as blockchain-based transaction processing methods. For example, in some embodiments, the blockchain-based transaction method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 500 via the ROM 502 and/or the communication unit 509. When loaded into RAM 503 and executed by the computing unit 501, may perform one or more of the steps of the blockchain based transaction method described above. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the blockchain-based transaction method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a 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 acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
Artificial intelligence is the subject of research that causes computers to simulate certain human mental processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), both at the hardware level and at the software level. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, and the like; the artificial intelligence software technology mainly comprises a computer vision technology, a voice recognition technology, a natural language processing technology, a machine learning/deep learning technology, a big data processing technology, a knowledge map technology and the like.
Cloud computing (cloud computing) refers to a technology system that accesses a flexibly extensible shared physical or virtual resource pool through a network, where resources may include servers, operating systems, networks, software, applications, storage devices, and the like, and may be deployed and managed in a self-service manner as needed. Through the cloud computing technology, high-efficiency and strong data processing capacity can be provided for technical application and model training of artificial intelligence, block chains and the like.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (15)

1. A transaction processing method based on a block chain comprises the following steps:
in response to a transaction request of a first user for a target proposal, determining a total voting incentive element amount held by the first user for the target proposal; the total voting incentive element amount is determined according to the treatment incentive element amount held by the first user;
and executing the transaction processing request according to the total voting incentive element amount held by the first user on the target proposal.
2. The method of claim 1, wherein said determining a total voted incentive element amount held by the first user for the target proposal in response to the first user's transaction request for the target proposal comprises:
responding to a transaction processing request of a first user for a target proposal, and determining the governance inheritance state of the first user for the target proposal;
if the governance inheritance state is not inherited, taking a block initiating a target proposal as a target block, and determining a first governance incentive element amount of a first user in the target block;
and determining the total voting incentive element amount held by the first user on the target proposal according to the first governance incentive element amount.
3. The method of claim 2, wherein said determining a total voted incentive element amount held by the first user for the target proposal based on the first governance incentive element amount comprises:
according to the first governance incentive element amount, distributing a first voting incentive element amount of a target proposal for the first user;
responding to a voting incentive element transfer transaction request initiated by a second user, and acquiring a second voting incentive element amount transferred from the second user to the first user;
and taking the sum of the first voting incentive element amount and the second voting incentive element amount as the total voting incentive element amount held by the first user on the target proposal.
4. The method of claim 3, further comprising, after assigning a first voting incentive element amount to the first user for the target proposal based on the first abatement incentive element amount:
and switching the governance inheritance state of the first user on the target proposal from non-inheritance to inherited.
5. The method of claim 1, wherein said executing the transaction request according to a total voted incentive element amount held by the first user for a target proposal comprises:
under the condition that the transaction processing request is a voting transaction request, obtaining voting information of the first user on a target proposal;
and determining a vote passing proportion according to the voting information and the total voting incentive element amount held by the first user on the target proposal.
6. The method of claim 1, wherein said executing the transaction request according to a total voting incentive element amount held by the first user for the target proposal comprises:
and under the condition that the transaction processing request is a voting incentive element transfer transaction request of the first user to the third user, transferring a third voting incentive element amount to the target proposal to the third user according to the total voting incentive element amount held by the first user to the target proposal.
7. A blockchain based transaction processing apparatus comprising:
a voting incentive element amount determination module, configured to determine, in response to a transaction request by a first user for a target proposal, a total voting incentive element amount held by the first user for the target proposal; the total voting incentive element amount is determined according to the treatment incentive element amount held by the first user;
and the transaction processing request execution module is used for executing the transaction processing request according to the total voting incentive element amount held by the first user on the target proposal.
8. The apparatus of claim 7, wherein the voting incentive element amount determination module comprises:
the treatment inheritance state determination unit is used for responding to a transaction processing request of the first user for the target proposal, and determining the treatment inheritance state of the first user for the target proposal;
the first governance incentive element determining unit is used for taking a block initiating a target proposal as a target block and determining the amount of a first governance incentive element of a first user in the target block if the governance inheritance state is not inherited;
and the voting incentive element amount determining unit is used for determining the total voting incentive element amount held by the first user on the target proposal according to the first governing incentive element amount.
9. Apparatus according to claim 8, wherein said voting incentive element amount determination unit is particularly adapted to:
according to the first governance incentive element amount, distributing a first voting incentive element amount of a target proposal for the first user;
responding to a voting incentive element transfer transaction request initiated by a second user, and acquiring a second voting incentive element amount transferred from the second user to the first user;
and taking the sum of the first voting incentive element amount and the second voting incentive element amount as the total voting incentive element amount held by the first user on the target proposal.
10. The apparatus of claim 9, the voting incentive element amount determination module, further comprising:
and the governance inheritance state changing unit is used for switching the governance inheritance state of the first user on the target proposal from non-inheritance to inherited after distributing the first voting incentive element amount of the target proposal for the first user according to the first governance incentive element amount.
11. The apparatus of claim 7, wherein the transaction request execution module is specifically configured to:
under the condition that the transaction processing request is a voting transaction request, obtaining voting information of the first user on a target proposal;
and determining a voting passing proportion according to the voting information and the total voting incentive element amount held by the first user on the target proposal.
12. The apparatus of claim 7, wherein the transaction request execution module is specifically configured to:
and under the condition that the transaction processing request is a voting incentive element transfer transaction request of the first user to the third user, transferring a third voting incentive element amount to the target proposal to the third user according to the total voting incentive element amount held by the first user to the target proposal.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the blockchain based transaction method of any one of claims 1-6.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to execute the blockchain based transaction method according to any one of claims 1 to 6.
15. A computer program product comprising a computer program which, when executed by a processor, implements the blockchain based transaction method according to any one of claims 1 to 6.
CN202211248539.XA 2022-10-12 2022-10-12 Transaction processing method, device and equipment based on block chain and storage medium Pending CN115509695A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211248539.XA CN115509695A (en) 2022-10-12 2022-10-12 Transaction processing method, device and equipment based on block chain and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211248539.XA CN115509695A (en) 2022-10-12 2022-10-12 Transaction processing method, device and equipment based on block chain and storage medium

Publications (1)

Publication Number Publication Date
CN115509695A true CN115509695A (en) 2022-12-23

Family

ID=84511341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211248539.XA Pending CN115509695A (en) 2022-10-12 2022-10-12 Transaction processing method, device and equipment based on block chain and storage medium

Country Status (1)

Country Link
CN (1) CN115509695A (en)

Similar Documents

Publication Publication Date Title
CN113656179A (en) Scheduling method and device of cloud computing resources, electronic equipment and storage medium
CN113766487A (en) Cloud mobile phone information acquisition method, device, equipment and medium
CN114861059A (en) Resource recommendation method and device, electronic equipment and storage medium
CN115328621B (en) Transaction processing method, device, equipment and storage medium based on block chain
CN113918102B (en) Data processing method, device and equipment based on block chain and storage medium
CN113935069B (en) Data verification method, device and equipment based on block chain and storage medium
CN115017236B (en) Data processing method, device and equipment based on block chain and storage medium
CN115509695A (en) Transaction processing method, device and equipment based on block chain and storage medium
CN114579191A (en) Instruction transmitting method and device, electronic equipment and storage medium
CN113703793A (en) Application installation method, device, equipment and medium for cloud mobile phone
CN113220367A (en) Applet running method and device, electronic equipment and storage medium
CN114386577A (en) Method, apparatus, and storage medium for executing deep learning model
CN114185641A (en) Virtual machine cold migration method and device, electronic equipment and storage medium
CN114816758B (en) Resource allocation method and device
CN115330532B (en) Block chain processing method, device, equipment and storage medium based on account model
CN113239296B (en) Method, device, equipment and medium for displaying small program
CN114399333A (en) Method, device, equipment and storage medium for detecting medium information releasing effect
CN116700996B (en) Memory allocation method, device, equipment and medium of neural network
CN113961405B (en) State switching instruction verification method and device, electronic equipment and storage medium
CN111680867B (en) Resource allocation method and device and electronic equipment
CN114118356B (en) Neural network processor verification method and device, electronic equipment and storage medium
CN115545684A (en) Transaction processing method and device based on block chain, electronic equipment and medium
CN117151779A (en) User resource determining method and device and electronic equipment
CN114327391A (en) Voting activity creating method and device, electronic equipment and storage medium
CN115480918A (en) Data processing method, apparatus, device, medium, and program product

Legal Events

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