CN109919521B - Block chain operation confirmation method and device and electronic equipment - Google Patents

Block chain operation confirmation method and device and electronic equipment Download PDF

Info

Publication number
CN109919521B
CN109919521B CN201910275538.6A CN201910275538A CN109919521B CN 109919521 B CN109919521 B CN 109919521B CN 201910275538 A CN201910275538 A CN 201910275538A CN 109919521 B CN109919521 B CN 109919521B
Authority
CN
China
Prior art keywords
block chain
condition
risk
risk level
confirming
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910275538.6A
Other languages
Chinese (zh)
Other versions
CN109919521A (en
Inventor
孙凯
刘坤
王静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201910275538.6A priority Critical patent/CN109919521B/en
Publication of CN109919521A publication Critical patent/CN109919521A/en
Application granted granted Critical
Publication of CN109919521B publication Critical patent/CN109919521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a block chain operation confirmation method, a block chain operation confirmation device and electronic equipment, wherein the method comprises the following steps: under the condition that a target block where a block chain operation is generated is located, acquiring a risk state of the block chain operation; and if the risk state meets a preset state condition, confirming the block chain operation. The embodiment of the invention can improve the working efficiency.

Description

Block chain operation confirmation method and device and electronic equipment
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method and an apparatus for confirming a block chain operation, and an electronic device.
Background
With the development of the blockchain technology, the blockchain technology is more and more widely applied, for example: and carrying out blockchain operations such as trading, winning and auction through blockchains. However, when a block chain is used to perform a block chain operation, after a block corresponding to the block chain operation is generated, the block chain operation is confirmed (for example, the confirmation operation is successful) by linking 6 blocks, that is, the block chain operation needs to be confirmed after waiting for 6 blocks, which results in low working efficiency.
Disclosure of Invention
The embodiment of the invention provides a block chain operation confirmation method and device and electronic equipment, and aims to solve the problem of low working efficiency.
In a first aspect, an embodiment of the present invention provides a method for confirming a block chain operation, including:
under the condition that a target block where a block chain operation is generated is located, acquiring a risk state of the block chain operation;
and if the risk state meets a preset state condition, confirming the block chain operation.
Optionally, if the risk state meets a preset state condition, performing a confirmation operation on the blockchain operation, including:
if the risk level represented by the risk state is lower than a preset risk level, confirming the block chain operation;
the method further comprises the following steps:
if the risk level represented by the risk state is equal to or higher than the preset risk level, performing a confirmation operation on the blockchain operation under the condition that at least one block is generated after the target block is generated by the blockchain.
Optionally, if the risk state satisfies a first condition, a second condition, or a third condition, the risk level represented by the risk state is equal to or higher than the preset risk level;
wherein the first condition is that a new node is added into the block chain;
the second condition is that the interval duration of block chain operations which are continuously performed twice in the block chain by a user corresponding to the block chain operation is less than a preset time threshold;
the third condition is that an operand value corresponding to the block chain operation exceeds an average operand value, where the average operand value is an average of operand values of a user corresponding to the block chain operation within a preset time.
Optionally, in the case that at least one block is generated after the target block is generated by the blockchain, the confirming operation of the blockchain operation includes:
and under the condition that N blocks are generated after the target block is generated by the block chain, confirming the block chain operation, wherein N corresponds to the risk level represented by the risk state, and the value of N is positively correlated with the risk level.
In a second aspect, an embodiment of the present invention provides a device for confirming a block chain operation, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the risk state of the block chain operation under the condition that a target block where the block chain generation block chain operation is located;
and the first confirming module is used for confirming the operation of the block chain if the risk state meets a preset state condition.
Optionally, the first confirming module is configured to perform a confirming operation on the block chain operation if the risk level indicated by the risk state is lower than a preset risk level;
the device further comprises:
a second confirming module, configured to, if the risk level indicated by the risk state is equal to or higher than the preset risk level, perform a confirming operation on the blockchain operation when at least one block is generated after the target block is generated by the blockchain.
Optionally, if the risk state satisfies a first condition, a second condition, or a third condition, the risk level represented by the risk state is equal to or higher than the preset risk level;
wherein the first condition is that a new node is added into the block chain;
the second condition is that the interval duration of block chain operations which are continuously performed twice in the block chain by a user corresponding to the block chain operation is less than a preset time threshold;
the third condition is that an operand value corresponding to the block chain operation exceeds an average operand value, where the average operand value is an average of operand values of a user corresponding to the block chain operation within a preset time.
Optionally, the second determining module is configured to, if the risk level represented by the risk state is equal to or higher than a preset risk level, perform a determination operation on the blockchain operation under the condition that N blocks are generated after the target block is generated by the blockchain, where N corresponds to the risk level represented by the risk state, and a value of N is positively correlated with the risk level.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the block chain operation confirmation method provided in the embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of the method for confirming a block chain operation provided in the embodiment of the present invention.
In the embodiment of the invention, under the condition that a target block where a block chain operation is generated is located, the risk state of the block chain operation is obtained; and if the risk state meets a preset state condition, confirming the block chain operation. Therefore, under the condition that the risk state meets the preset state condition, the block chain operation is confirmed, and therefore working efficiency can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a method for confirming a block chain operation according to an embodiment of the present invention;
fig. 2 is a flowchart of another block chain operation confirmation method according to an embodiment of the present invention;
fig. 3 is a system diagram of a method for confirming a block chain operation according to an embodiment of the present invention;
fig. 4 is a block chain operation confirmation apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram of another device for confirming operation of a block chain according to an embodiment of the present invention;
fig. 6 is a structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "comprises," "comprising," or any other variation thereof, in the description and claims of this application, 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. Furthermore, the use of "and/or" in the specification and claims means that at least one of the connected objects, such as a and/or B, means that three cases, a alone, B alone, and both a and B, exist.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
Referring to fig. 1, fig. 1 is a flowchart of a method for confirming a block chain operation according to an embodiment of the present invention, as shown in fig. 1, including the following steps:
step 101, acquiring a risk state of a block chain operation under the condition that a target block where the block chain operation is generated is located.
In the embodiment of the present invention, the blockchain operation may be an operation that can be performed using a blockchain, such as a transaction, a lottery, an auction, and the like. The target block in which the above-mentioned blockchain operation is located may be a block in which the blockchain operation is performed, or may be referred to as a block in which data of the blockchain operation is recorded.
The obtaining of the risk state of the blockchain operation may be obtaining the risk state by obtaining parameters of all or part of blockchain operations on the blockchain, or may be obtaining the risk state by monitoring all or part of nodes of the blockchain. In addition, the risk status may indicate whether a risk exists for the blockchain operation or may indicate a risk level of the blockchain operation.
And 102, if the risk state meets a preset state condition, confirming the block chain operation.
The preset state condition may be set before step 102 is executed, and the preset state condition may be that no risk exists or that the risk level is lower than the preset risk level.
The operation of confirming the blockchain operation may be to confirm the result of the blockchain operation, for example: and determining that the operation is successful. In addition, after step 102, a confirmation result of the confirmation operation may also be output, for example: and returning an operation confirmation result to the user or the server.
The operation of confirming the blockchain operation may be to confirm the blockchain operation before the blockchain generates a next block of the target block. Or, when the risk state is judged to meet the preset state condition, the block chain operation is confirmed.
It should be noted that, in the embodiment of the present invention, if the risk state does not satisfy the preset state condition, the method may perform a confirmation operation on the blockchain operation when at least one block is generated after the target block is generated by the blockchain. For example: in the case of regenerating 5 or 6 blocks, a confirm operation is performed on the block chain operation.
It should be noted that the block chain operation confirmation method provided in the embodiment of the present invention may be applied to an electronic device capable of operating based on a block chain, for example: the electronic device may be a node of the block chain, such as a server, a computer, a mobile phone, a tablet computer, and the like.
In the embodiment of the invention, under the condition that a target block where a block chain operation is generated is located, the risk state of the block chain operation is obtained; and if the risk state meets a preset state condition, confirming the block chain operation. Therefore, under the condition that the risk state meets the preset state condition, the block chain operation is confirmed, and therefore working efficiency can be improved.
Referring to fig. 2, fig. 2 is a flowchart of another block chain operation confirmation method according to an embodiment of the present invention, as shown in fig. 2, including the following steps:
step 201, under the condition that the block chain generates the target block where the block chain operation is located, acquiring the risk state of the block chain operation.
In an embodiment, the acquiring the risk state of the blockchain operation may be a risk state sent by a risk control node that receives a blockchain, that is, in the embodiment of the present invention, a risk control node may be added to a blockchain network, and the node may monitor all operations in the entire blockchain network and each node in the blockchain network in real time. Therefore, the block chain network can be safer and more reliable through the risk control node.
For example: taking a blockchain as a hundred-degree hyperlink, the blockchain operation is exemplified as a transaction, as shown in fig. 3, a plurality of nodes of the blockchain are exemplified by a node 1 and a node n in the figure, and each node stores a plurality of blocks and an intelligent contract. The risk control node monitors all operations and nodes in the blockchain network, for example: when the risk control node finds the behavior with high risk, the risk level of the system or the user is raised, the monitored risk state is fed back to the transaction system, and the transaction system executes corresponding confirmation operation according to the fed-back network state.
It should be noted that, in the embodiment of the present invention, the rule (e.g., the transaction rule) of the area chain operation may be written into the intelligent contract, so that the intelligent contract is public, and thus the public and fair operation can be ensured. In addition, data of block chain operation (for example, transaction data generated by a transaction system based on a hundred degree super chain) may be stored in the block chain, and in the embodiment of the present invention, a consensus mechanism of the block chain may be a released Proof of ownership (DPOS), and further, a Time-based released Proof of ownership (TDPOS) mechanism may be used, so that each node flows out blocks according to the consensus mechanism, and forking is avoided as much as possible, thereby improving the operation performance of the block chain.
In another embodiment, the operation and/or the node in the blockchain network are monitored to obtain the risk state of the blockchain operation, that is, in this embodiment, a monitoring function may be added to an existing node in the blockchain network instead of adding a special risk monitoring node to reduce the complexity of the network.
Step 202, if the risk level represented by the risk state is lower than a preset risk level, performing a confirmation operation on the block chain operation.
In this embodiment, multiple risk levels may be preconfigured, for example: high risk level and low risk level, etc. The preset risk level may be a high risk level, that is, when the preset risk level is lower than the preset risk level, the blockchain operation is considered as a low risk, and thus the blockchain operation may be directly confirmed.
Step 203, if the risk level represented by the risk state is equal to or higher than the preset risk level, performing a confirmation operation on the blockchain operation under the condition that at least one block is generated after the target block is generated by the blockchain.
In an embodiment, if the risk status satisfies a first condition, a second condition, or a third condition, the risk level represented by the risk status is equal to the preset risk level;
wherein the first condition is that a new node is added into the block chain;
the second condition is that the interval duration of block chain operations which are continuously performed twice in the block chain by a user corresponding to the block chain operation is less than a preset time threshold;
the third condition is that an operand value corresponding to the block chain operation exceeds an average operand value, where the average operand value is an average of operand values of a user corresponding to the block chain operation within a preset time.
In an embodiment, if the risk status satisfies a first condition, a second condition, or a third condition, the risk level represented by the risk status is higher than the preset risk level;
wherein the first condition is that a new node is added into the block chain;
the second condition is that the interval duration of block chain operations which are continuously performed twice in the block chain by a user corresponding to the block chain operation is less than a preset time threshold;
the third condition is that an operand value corresponding to the block chain operation exceeds an average operand value, where the average operand value is a mean value of operand values of a user corresponding to the block chain operation within a preset time.
Wherein, if there is a risk that exists when a new node is added in the block chain, the risk is determined to exist when the first condition is satisfied; if the interval duration is less than the predetermined time threshold, the blockchain operation may be risky, for example: repeating the operation or stealing the product by others, and thus, when the second condition is met, confirming that the risk exists; if the operand value corresponding to the blockchain operation exceeds the average operand value, this indicates that the operation may be abnormal, for example: the user's transaction amount exceeds the average value of the transaction amount for a certain period of time, and thus the risk is determined to exist when the third condition is satisfied.
Further, in a case where the risk state does not satisfy any of the first condition, the second condition, and the third condition, the risk level represented by the risk state is lower than a preset risk level. For example: and if the risk state indicates that no new node is added in the block chain, the risk state indicates that the interval duration of the block chain operation of the user corresponding to the block chain operation continuously performed twice in the block chain is greater than or equal to a preset time threshold, and the risk state indicates that the operand value corresponding to the block chain operation does not exceed the average operand value, the risk level represented by the risk state is lower than a preset risk level.
In the above embodiment, the risk level can be judged by whether a new node is added, the interval duration and the operand value, so that the safety of the block chain operation is higher. For example: if a new node is added into the block chain network, all transactions within a certain time are considered to have high risk, and the new node is prevented from doing harm; or, if the interval time between two transactions of the same user is less than 24 seconds, the risk of the second transaction is considered to be high; or, the transaction amount of a user exceeds the average value of the transaction amount of the user within a certain time, the risk is considered to be high.
It should be noted that, in the embodiment of the present invention, it is not limited to determine the risk level by whether a new node is added, an interval duration, and an operand, for example: the operand value corresponding to the blockchain operation may also be compared with the historical highest value to determine the risk level.
It should be noted that the present embodiment can also be applied to the embodiment shown in fig. 1, for example: if the risk state does not satisfy any of the first condition, the second condition, and the third condition, the risk state satisfies the preset state condition, and the same beneficial effect can be achieved.
As an optional implementation manner, in a case that at least one block is generated after the block chain generates the target block, performing a confirmation operation on the block chain operation includes:
and under the condition that N blocks are generated after the target block is generated by the block chain, confirming the block chain operation, wherein N corresponds to the risk level represented by the risk state, and the value of N is positively correlated with the risk level.
The value of N is positively correlated with the risk level, wherein the value of N is larger when the risk level is higher, and the value of N is smaller when the risk level is lower. Therefore, the value of N can be flexibly configured according to the risk level, so that the working efficiency is improved and the operation risk is reduced under the condition that the risk level is equal to or higher than the preset risk level. Preferably, the value range of N is 1 to 6, that is, the value of N can be determined in 1 to 6 according to the risk level.
In this embodiment, a plurality of risk levels including the preset risk level may be preset, and when the risk level indicated by the risk state is a certain risk level of the plurality of risk levels, the risk is considered to be high, and the block chain operation needs to be confirmed after the block chain is regenerated into another block, so as to ensure that the operation is not rolled back, thereby reducing the risk.
In this embodiment, the block chain operation can be confirmed under the condition that the risk level is lower than the preset risk level through the above method, so that the confirmation operation can be quickly performed under the condition of low risk, and the working efficiency can be improved.
Referring to fig. 4, fig. 4 is a structural diagram of a block chain operation confirmation apparatus according to an embodiment of the present invention, and as shown in fig. 4, the block chain operation confirmation apparatus 400 includes:
an obtaining module 401, configured to obtain a risk state of a blockchain operation when a target block in which the blockchain operation is generated is located;
a first confirming module 402, configured to, if the risk state meets a preset state condition, perform a confirming operation on the blockchain operation.
Optionally, the first confirming module 402 is configured to, if the risk level indicated by the risk state is lower than a preset risk level, perform a confirming operation on the block chain operation;
as shown in fig. 5, the apparatus further includes:
a second confirming module 403, configured to, if the risk level indicated by the risk status is equal to or higher than the preset risk level, perform a confirming operation on the blockchain operation when at least one block is generated after the target block is generated by the blockchain.
Optionally, if the risk state satisfies a first condition, a second condition, or a third condition, the risk level represented by the risk state is equal to the preset risk level;
wherein the first condition is that a new node is added into the block chain;
the second condition is that the interval duration of block chain operations which are continuously performed twice in the block chain by a user corresponding to the block chain operation is less than a preset time threshold;
the third condition is that an operand value corresponding to the block chain operation exceeds an average operand value, where the average operand value is an average of operand values of a user corresponding to the block chain operation within a preset time.
Optionally, if the risk state meets a first condition, a second condition, or a third condition, the risk level represented by the risk state is higher than the preset risk level;
wherein the first condition is that a new node is added into the block chain;
the second condition is that the interval duration of block chain operations which are continuously performed twice in the block chain by a user corresponding to the block chain operation is less than a preset time threshold;
the third condition is that an operand value corresponding to the block chain operation exceeds an average operand value, where the average operand value is an average of operand values of a user corresponding to the block chain operation within a preset time.
Optionally, the second confirming module 403 is configured to, if the risk level represented by the risk state is equal to or higher than a preset risk level, perform a confirming operation on the blockchain operation when N blocks are generated after the blockchain generates the target block, where N corresponds to the risk level represented by the risk state, and a value of N is positively correlated with the risk level.
The device provided by the embodiment of the invention can realize each process realized in the method embodiments shown in fig. 1 and fig. 2, and can achieve the same beneficial effects, and in order to avoid repetition, the details are not repeated.
Referring to fig. 6, fig. 6 is a block diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 6, the electronic device 600 includes a processor 601, a memory 602, and a computer program stored in the memory 602 and capable of running on the processor.
Wherein the computer program when executed by the processor 601 realizes the steps of:
under the condition that a target block where a block chain operation is generated is located, acquiring a risk state of the block chain operation;
and if the risk state meets a preset state condition, confirming the block chain operation.
Optionally, the determining, performed by the processor 601, the block chain operation if the risk state meets a preset state condition includes:
if the risk level represented by the risk state is lower than a preset risk level, confirming the block chain operation;
the processor 601 is further configured to:
if the risk level represented by the risk state is equal to or higher than the preset risk level, performing a confirmation operation on the blockchain operation under the condition that at least one block is generated after the target block is generated by the blockchain.
Optionally, if the risk state meets a first condition, a second condition, or a third condition, the risk level represented by the risk state is higher than the preset risk level;
wherein the first condition is that a new node is added into the block chain;
the second condition is that the interval duration of block chain operations which are continuously performed twice in the block chain by a user corresponding to the block chain operation is less than a preset time threshold;
the third condition is that an operand value corresponding to the block chain operation exceeds an average operand value, where the average operand value is an average of operand values of a user corresponding to the block chain operation within a preset time.
Optionally, if the risk state meets a first condition, a second condition, or a third condition, the risk level represented by the risk state is higher than the preset risk level;
wherein the first condition is that a new node is added into the block chain;
the second condition is that the interval duration of block chain operations which are continuously performed twice in the block chain by a user corresponding to the block chain operation is less than a preset time threshold;
the third condition is that an operand value corresponding to the block chain operation exceeds an average operand value, where the average operand value is an average of operand values of a user corresponding to the block chain operation within a preset time.
Optionally, if the risk state meets one or more of the first condition, the second condition, and the third condition, the risk level represented by the risk state is lower than a preset risk level;
wherein the first condition is that no new node is added in the block chain;
the second condition is that the interval duration of block chain operations which are continuously performed twice in the block chain by a user corresponding to the block chain operation is greater than or equal to a preset time threshold;
the third condition is that an operand value corresponding to the block chain operation does not exceed an average operand value, where the average operand value is an average of operand values of a user corresponding to the block chain operation within a preset time.
Optionally, the confirming operation performed by the processor 601 on the blockchain operation in the case that at least one block is generated after the target block is generated by the blockchain includes:
and under the condition that N blocks are generated after the target block is generated by the block chain, confirming the block chain operation, wherein N corresponds to the risk level represented by the risk state, and the value of N is positively correlated with the risk level.
The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments shown in fig. 1 and fig. 2, and can achieve the same beneficial effects, and for avoiding repetition, the details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the step of confirming the blockchain operation provided by the embodiment of the present invention is implemented.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the methods according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method for confirming a blockchain operation, comprising:
under the condition that a target block where a block chain operation is generated is located, acquiring a risk state of the block chain operation;
if the risk state meets a preset state condition, confirming the block chain operation;
wherein the confirming the blockchain operation comprises: confirming that the operation of the block chain is successful;
if the risk state meets a preset state condition, confirming the block chain operation, including:
if the risk level represented by the risk state is lower than a preset risk level, confirming the block chain operation;
the method further comprises the following steps:
if the risk level represented by the risk state is equal to or higher than the preset risk level, performing a confirmation operation on the blockchain operation under the condition that at least one block is generated after the target block is generated by the blockchain.
2. The method of claim 1, wherein the risk status represents a risk level equal to the preset risk level if the risk status satisfies a first condition, a second condition, or a third condition;
wherein the first condition is that a new node is added into the block chain;
the second condition is that the interval duration of block chain operations which are continuously performed twice in the block chain by a user corresponding to the block chain operation is less than a preset time threshold;
the third condition is that an operand value corresponding to the block chain operation exceeds an average operand value, where the average operand value is an average of operand values of a user corresponding to the block chain operation within a preset time.
3. The method of claim 1, wherein the risk status represents a risk level that is higher than the preset risk level if the risk status satisfies a first condition, a second condition, or a third condition;
wherein the first condition is that a new node is added into the block chain;
the second condition is that the interval duration of block chain operations which are continuously performed twice in the block chain by a user corresponding to the block chain operation is less than a preset time threshold;
the third condition is that an operand value corresponding to the block chain operation exceeds an average operand value, where the average operand value is an average of operand values of a user corresponding to the block chain operation within a preset time.
4. The method of claim 1, wherein said confirming the blockchain operation in the case that at least one block is regenerated after the blockchain generates the target block comprises:
and under the condition that N blocks are generated after the target block is generated by the block chain, confirming the block chain operation, wherein N corresponds to the risk level represented by the risk state, and the value of N is positively correlated with the risk level.
5. An apparatus for confirming a block chain operation, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the risk state of the block chain operation under the condition that a target block where the block chain generation block chain operation is located;
the first confirming module is used for confirming the operation of the block chain if the risk state meets a preset state condition;
wherein the confirming the blockchain operation comprises: determining that the blockchain operation is successful;
the first confirmation module is used for confirming the block chain operation if the risk level represented by the risk state is lower than a preset risk level;
the device further comprises:
a second confirming module, configured to, if the risk level indicated by the risk state is equal to or higher than the preset risk level, perform a confirming operation on the blockchain operation when at least one block is generated after the target block is generated by the blockchain.
6. The apparatus of claim 5, wherein the risk status represents a risk level equal to the preset risk level if the risk status satisfies a first condition, a second condition, or a third condition;
wherein the first condition is that a new node is added into the block chain;
the second condition is that the interval duration of block chain operations which are continuously performed twice in the block chain by a user corresponding to the block chain operation is less than a preset time threshold;
the third condition is that an operand value corresponding to the block chain operation exceeds an average operand value, where the average operand value is an average of operand values of a user corresponding to the block chain operation within a preset time.
7. The apparatus of claim 5, wherein the risk status represents a risk level that is higher than the preset risk level if the risk status satisfies a first condition, a second condition, or a third condition;
wherein the first condition is that a new node is added into the block chain;
the second condition is that the interval duration of block chain operations which are continuously performed twice in the block chain by a user corresponding to the block chain operation is less than a preset time threshold;
the third condition is that an operand value corresponding to the block chain operation exceeds an average operand value, where the average operand value is an average of operand values of a user corresponding to the block chain operation within a preset time.
8. The apparatus of claim 5, wherein the second confirmation module is configured to perform a confirmation operation on the blockchain operation if the risk level represented by the risk status is equal to or higher than a preset risk level, and N blocks are generated after the blockchain generates the target block, where N corresponds to the risk level represented by the risk status, and a value of N is positively correlated to the risk level.
9. An electronic device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the block chain operation validation method of any of claims 1-4.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for confirming a blockchain operation according to any one of claims 1 to 4.
CN201910275538.6A 2019-04-08 2019-04-08 Block chain operation confirmation method and device and electronic equipment Active CN109919521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910275538.6A CN109919521B (en) 2019-04-08 2019-04-08 Block chain operation confirmation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910275538.6A CN109919521B (en) 2019-04-08 2019-04-08 Block chain operation confirmation method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109919521A CN109919521A (en) 2019-06-21
CN109919521B true CN109919521B (en) 2022-05-13

Family

ID=66968794

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910275538.6A Active CN109919521B (en) 2019-04-08 2019-04-08 Block chain operation confirmation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109919521B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11146535B2 (en) * 2016-10-12 2021-10-12 Bank Of America Corporation System for managing a virtual private ledger and distributing workflow of authenticated transactions within a blockchain distributed network
CN108694500B (en) * 2018-04-26 2021-04-13 布比(北京)网络技术有限公司 Block chain-based digital asset circulation method and system
CN109034795B (en) * 2018-06-11 2021-03-30 广东易上云计算机服务股份有限公司 Credit barter platform based on block chain

Also Published As

Publication number Publication date
CN109919521A (en) 2019-06-21

Similar Documents

Publication Publication Date Title
EP4053711A1 (en) Consensus method for blockchain, and consensus node, electronic device and storage medium
CN104834602B (en) A kind of program dissemination method, device and program delivery system
CN109739527B (en) Method, device, server and storage medium for client gray scale release
CN109597800B (en) Log distribution method and device
CN111679968A (en) Interface calling abnormity detection method and device, computer equipment and storage medium
CN113468025A (en) Data warning method, system, device and storage medium
CN111683087A (en) Access control method, device, electronic equipment and computer readable storage medium
CN109919521B (en) Block chain operation confirmation method and device and electronic equipment
CN113472825B (en) NB-IoT terminal transaction processing method and device based on block chain
CN113992378B (en) Security monitoring method and device, electronic equipment and storage medium
CN114741162A (en) Service arranging method, device, storage medium and equipment
CN114602186A (en) Cheating behavior identification method and device, storage medium and electronic equipment
CN111198986B (en) Information transmission method, device, electronic equipment and storage medium
CN109561083B (en) Method, device, equipment and storage medium for bypass processing
CN113965563A (en) Model-based business processing method and device and server
CN114615029B (en) Terminal trust evaluation method, device, equipment and storage medium
CN110837431A (en) Service control method, service control device, computer equipment and computer-readable storage medium
CN110333968A (en) Data managing method, device and computer equipment applied to database
CN110955579A (en) Ambari-based large data platform monitoring method
CN113052592A (en) Mobile banking APP performance monitoring device and method
CN111427741B (en) Buried point reporting method and related products
CN114629694B (en) Distributed denial of service (DDoS) detection method and related device
CN112114972B (en) Data inclination prediction method and device
CN111711537B (en) Method, device and equipment for updating standby main node list
JP2018156561A (en) Software evaluation program, software evaluation method, and information processor

Legal Events

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