CN112669156A - Block chain transaction to be confirmed determining method and device and electronic equipment - Google Patents

Block chain transaction to be confirmed determining method and device and electronic equipment Download PDF

Info

Publication number
CN112669156A
CN112669156A CN202011644285.4A CN202011644285A CN112669156A CN 112669156 A CN112669156 A CN 112669156A CN 202011644285 A CN202011644285 A CN 202011644285A CN 112669156 A CN112669156 A CN 112669156A
Authority
CN
China
Prior art keywords
confirmed
transaction
blockchain
block chain
hash value
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
CN202011644285.4A
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 Zhifan Technology Co ltd
Original Assignee
Beijing Zhifan 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 Zhifan Technology Co ltd filed Critical Beijing Zhifan Technology Co ltd
Priority to CN202011644285.4A priority Critical patent/CN112669156A/en
Publication of CN112669156A publication Critical patent/CN112669156A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for determining a to-be-confirmed transaction of a block chain, which is used for a to-be-confirmed transaction processing device, wherein the to-be-confirmed transaction processing device is in communication connection with a plurality of block chain nodes in a block chain network, the plurality of block chain nodes are positioned in different network segments and/or different geographical positions, and the method comprises the following steps: acquiring and storing existing transaction data to be confirmed in each block chain node, and performing quantity counting operation on the acquired transactions to be confirmed; when receiving transaction data to be confirmed newly uploaded by any one of the blockchain nodes, repeatedly responding to the statistical operation of the transaction quantity to be confirmed in the blockchain network, so that the transaction quantity to be packaged on the blockchain network can be timely counted, the transactions to be packaged of all the nodes on the network can be mastered at the first time, and the method plays an important role in calculating the optimal handling fee of the transaction, mastering the network congestion condition and inquiring the transaction state to be confirmed sent by a user.

Description

Block chain transaction to be confirmed determining method and device and electronic equipment
Technical Field
The invention relates to the technical field of block chains, in particular to a block chain to-be-confirmed transaction determination method and device and electronic equipment.
Background
After the 'founder block' is generated, a block chain shared value system is imitated by a plurality of encryption currencies, improvement is carried out on workload certification and algorithm, and a block chain ecosystem is continuously evolved in the world. At present, people are utilizing the shared value system to develop decentralized computer programs in various industries and establish decentralized autonomous organizations and decentralized autonomous communities in various regions of the world. However, regardless of how the blockchain and its corresponding value system evolve, the three basic concepts of blockchain, address and transaction are still used as the core for operation. Taking a block chain account book of bitcoin as an example, each block basically consists of elements such as a hash value of the previous block, a plurality of transactions, a random number and the like, and miners can maintain the security of the block and the block chain by arranging the transactions into the account book through workload certification.
A miner collects transactions through a transaction broadcasting channel and packages the transactions, a set of transaction lists to be packaged is maintained in each miner program, due to the point-to-point transmission characteristic of a block chain network, transaction contents in the transaction lists to be packaged maintained by each miner and weights of the transactions to be packaged are different, and when the transactions to be packaged are not packaged into blocks and are distributed to a block chain, the transaction total amount, the transaction cost and other contents of all the transactions to be packaged determine the speed of the transactions to be packaged into the blocks. Therefore, the method can master the transactions to be packaged of all nodes on the network at the first time, and plays an important role in calculating the optimal handling fee of the transactions, mastering the network congestion condition and inquiring the transaction state to be confirmed sent by the user.
Disclosure of Invention
Therefore, the invention provides a method and a device for determining a to-be-confirmed transaction of a block chain and electronic equipment, so as to quickly and accurately obtain the to-be-packaged transaction on a block chain network.
According to a first aspect, an embodiment of the present invention discloses a method for determining a transaction to be confirmed in a blockchain, which is used for a transaction processing device to be confirmed, where the transaction processing device to be confirmed is in communication connection with a plurality of blockchain nodes in a blockchain network, and the plurality of blockchain nodes are located in different network segments and/or different geographical locations, and the method includes: acquiring and storing existing transaction data to be confirmed in each block chain node, and performing quantity counting operation on the acquired transactions to be confirmed; and when receiving transaction data to be confirmed newly uploaded by any one of the blockchain nodes, repeatedly responding to the statistical operation of the transaction quantity to be confirmed in the blockchain network.
Optionally, the transaction data to be confirmed includes: a hash value of the transaction to be confirmed; when receiving transaction data to be confirmed newly uploaded by any one of the blockchain nodes, repeatedly responding to the statistical operation of the transaction quantity to be confirmed in the blockchain network, wherein the statistical operation comprises the following steps: when a hash value of a transaction to be confirmed newly uploaded by the block chain node is received, comparing the hash value of the transaction to be confirmed with the obtained historical hash value database; when the historical hash value database does not contain the hash value of the transaction to be confirmed, storing the hash value of the transaction to be confirmed into the historical hash value database and transmitting a detailed information acquisition instruction of the transaction to be confirmed to the block chain node which transmits the transaction to be confirmed; and storing the received transaction detail information to be confirmed and the hash value of the transaction to be confirmed in an associated manner.
Optionally, the method further comprises: and sending the stored transaction records to be confirmed to the plurality of block nodes.
Optionally, the method further comprises: and when the stored transaction to be confirmed is packed into a chain, deleting the transaction data which is packed into the chain from the database for storing the transaction to be confirmed.
Optionally, the method further comprises: and when receiving a transaction information query instruction to be confirmed, feeding back the transaction information to be confirmed corresponding to the transaction query instruction to be confirmed.
According to a second aspect, an embodiment of the present invention discloses a method for determining a transaction to be confirmed in a blockchain, which is used for any blockchain node in a plurality of blockchain nodes located in different network segments and/or different geographical locations in a blockchain network, where the plurality of blockchain nodes located in different network segments and/or different geographical locations are respectively in communication connection with a transaction processing device to be confirmed, and the method includes: sending the existing transaction to be confirmed to the transaction processing equipment to be confirmed; and when a new transaction to be confirmed is received, sending the new transaction data to be confirmed to the transaction processing equipment to be confirmed, so that the transaction processing equipment to be confirmed performs quantity statistics on the obtained transaction to be confirmed.
Optionally, the new transaction data to be confirmed comprises a hash value of the new transaction to be confirmed; the method further comprises the following steps: when a new transaction to be confirmed is received, sending the hash value of the new transaction to be confirmed to the transaction processing equipment to be confirmed; and when receiving a transaction detail information acquisition instruction to be confirmed sent by the transaction processing equipment to be confirmed, sending new transaction detail data to be confirmed to the transaction processing equipment to be confirmed.
Optionally, the method further comprises: receiving a stored transaction record to be confirmed sent by transaction processing equipment to be confirmed; when a new transaction to be confirmed is received, comparing the new transaction to be confirmed with the stored transaction record to be confirmed; and when the new transaction to be confirmed is not contained in the stored transaction record to be confirmed, sending the new transaction data to be confirmed to the transaction processing center to be confirmed.
According to a third aspect, an embodiment of the present invention further discloses a device for determining a transaction to be confirmed in a blockchain, which is used for a transaction processing device to be confirmed, where the transaction processing device to be confirmed is in communication connection with a plurality of blockchain nodes in a blockchain network, and the plurality of blockchain nodes are located in different network segments and/or different geographical locations, and the device includes: the first execution module is used for acquiring and storing existing transaction data to be confirmed in each block chain node and carrying out quantity counting operation on the acquired transactions to be confirmed; and the second execution module is used for repeatedly responding to the statistical operation of the transaction quantity to be confirmed in the block chain network when receiving the transaction data to be confirmed newly uploaded by any one of the block chain nodes.
According to a fourth aspect, an embodiment of the present invention further discloses a device for determining a transaction to be confirmed in a blockchain, where the device is used for any blockchain node in a plurality of blockchain nodes located in different network segments and/or different geographical locations in a blockchain network, and the plurality of blockchain nodes located in different network segments and/or different geographical locations are respectively in communication connection with a transaction processing device to be confirmed, and the device includes: the first sending module is used for sending the existing transaction to be confirmed to the transaction processing equipment to be confirmed; and the second sending module is used for sending the new transaction data to be confirmed to the transaction processing equipment to be confirmed when a new transaction to be confirmed is received, so that the transaction processing equipment to be confirmed can carry out quantity statistics on the obtained transaction to be confirmed.
According to a fifth aspect, an embodiment of the present invention further discloses an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the blockchain pending transaction confirmation method as described in the first aspect or any one of the optional embodiments of the first aspect, or any one of the optional embodiments of the second aspect or the second aspect.
According to a sixth aspect, the present invention further discloses a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the blockchain transaction to be confirmed determination method according to the first aspect or any one of the optional embodiments of the first aspect, or according to the second aspect or any one of the optional embodiments of the second aspect.
The technical scheme of the invention has the following advantages:
the block chain transaction to be confirmed determining method/device provided by the invention is in communication connection with a plurality of block chain link points positioned in different network segments and/or different geographical positions through the transaction processing equipment to be confirmed, the existing transactions to be confirmed in each blockchain node connected with the transaction to be confirmed in a communication way are obtained and stored through the transaction processing equipment to be confirmed, the obtained transaction to be confirmed is subjected to quantity counting operation, when transaction data to be confirmed which is newly uploaded by any blockchain node is received, the counting operation of the transaction quantity to be confirmed in the blockchain network is responded repeatedly in time, so that the transaction processing equipment to be confirmed can count the transaction quantity to be packaged on the blockchain network in time, the transaction to be packaged of all nodes on the network can be mastered at the first time, the method plays an important role in calculating the optimal handling fee of the transaction, mastering the network congestion condition and inquiring the transaction state to be confirmed sent by the user.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of an exemplary method for determining a blockchain pending transaction according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an exemplary method for determining a blockchain pending transaction according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of one embodiment of a blockchain transaction determination device in accordance with embodiments of the present invention;
FIG. 4 is a functional block diagram of an exemplary blockchain transaction determination device in accordance with embodiments of the present invention;
fig. 5 is a diagram of a specific example of an electronic device in an embodiment of the invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but 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.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
When transaction data is submitted to a blockchain, because network segments and/or geographical positions of blockchain nodes in a blockchain network are different, the same transaction data is synchronized to each blockchain node, and delays of different degrees may exist, so that the time for receiving the same transaction data by different blockchain nodes is different. In order to accurately and comprehensively acquire a transaction to be confirmed in a blockchain network, transaction processing equipment to be confirmed in the method for determining the transaction to be confirmed in the blockchain provided by the embodiment of the application is in communication connection with a plurality of blockchain nodes in the blockchain network, wherein the connected plurality of blockchain nodes are located in different network segments and/or different geographical positions.
The transaction processing device to be confirmed can be a centralized device independent of the blockchain network, or can be any blockchain node in the blockchain network, so that the blockchain node can undertake the basic function of the blockchain and undertake the statistical operation on the transaction data volume to be confirmed in the blockchain network.
The embodiment of the invention discloses a block chain transaction to be confirmed determining method, which is used for transaction processing equipment to be confirmed, and as shown in figure 1, the method comprises the following steps:
step 101, obtaining and storing existing transaction data to be confirmed in each block chain node, and performing quantity counting operation on the obtained transactions to be confirmed.
For example, the existing transaction to be confirmed in each blockchain node may be that, after the transaction processing device to be confirmed is connected to any blockchain node, a transaction data acquisition instruction is sent to the corresponding blockchain node, so that the blockchain node that receives the instruction sends all existing transaction data to be confirmed in the current node to the transaction processing device to be confirmed. And when receiving the transaction data to be confirmed uploaded by any connected blockchain node, responding to the statistical operation of the transaction data volume to be confirmed in the blockchain network.
And 102, when receiving transaction data to be confirmed newly uploaded by any one of the blockchain nodes, repeatedly responding to the counting operation of the transaction quantity to be confirmed in the blockchain network.
Illustratively, since the transaction to be validated for any blockchain node in a blockchain network may change dynamically over time, when any block chain node receives a new transaction to be confirmed (such as the transaction to be confirmed which is synchronized only due to the influence of delay factors or the transaction to be confirmed which is newly uploaded by a user node), the new transaction data to be confirmed is transmitted to the transaction processing equipment to be confirmed, and when the transaction processing equipment to be confirmed receives the transaction data to be confirmed which is newly uploaded by any block chain node, the counting operation of the number of the transactions to be confirmed in the block chain network is repeatedly responded, so that the transaction processing equipment to be confirmed can count the transaction quantity to be packaged on the blockchain network in time, the transaction to be packaged of all nodes on the network can be mastered at the first time, the method plays an important role in calculating the optimal handling fee of the transaction, mastering the network congestion condition and inquiring the transaction state to be confirmed sent by the user.
As an optional embodiment of the present invention, the transaction data to be confirmed includes: a hash value of the transaction to be confirmed; step 102, comprising:
when a hash value of a transaction to be confirmed newly uploaded by the block chain node is received, comparing the hash value of the transaction to be confirmed with the obtained historical hash value database; when the historical hash value database does not contain the hash value of the transaction to be confirmed, storing the hash value of the transaction to be confirmed into the historical hash value database and transmitting a detailed information acquisition instruction of the transaction to be confirmed to the block chain node which transmits the transaction to be confirmed;
for example, the transaction data to be validated may include hash values for the transactions to be validated, the hash values being digital fingerprints of the transactions to be validated, there being one and only one hash value for each transaction to be validated. And when the existing transaction data to be confirmed in each block chain node is obtained, synchronously storing the hash value of the transaction to be confirmed, and constructing a historical hash value database of the transaction to be confirmed. When any block chain node receives a new transaction to be confirmed, the newly received hash value of the transaction to be confirmed is sent to transaction processing equipment to be confirmed, and the transaction processing equipment to be confirmed compares the newly uploaded hash value of the transaction to be confirmed with the hash value contained in the historical hash value database; and storing the received transaction detail information to be confirmed and the hash value of the transaction to be confirmed in an associated manner.
When the new data to be confirmed in any blockchain node is the data to be confirmed which is just synchronized from other blockchain nodes in the blockchain network, the transaction to be confirmed which is just synchronized may have been sent to the transaction processing equipment to be confirmed earlier to the blockchain node of the transaction to be confirmed because the time of receiving the transaction to be confirmed by other blockchain nodes is earlier than the time of just synchronizing to the blockchain node of the transaction to be confirmed. Therefore, for the received hash value of the transaction to be confirmed newly uploaded by any block chain node, comparing the hash value with the historical hash value database, and when the historical hash value database contains the hash value of the transaction to be confirmed, ignoring the newly received transaction information to be confirmed; when the historical hash value database does not contain the hash value of the transaction to be confirmed, the hash value of the transaction to be confirmed is stored in the historical hash value database, the historical hash value database is updated, a detailed information acquisition instruction of the transaction to be confirmed is sent to the block chain link point which uploads the transaction to be confirmed, so that the detailed information of the transaction to be confirmed is uploaded on the block chain link point which uploads the transaction to be confirmed, and the detailed information of the transaction to be confirmed and the hash value of the transaction to be confirmed are stored in a correlation mode. The detailed information of the transaction to be confirmed may include any of transaction time, transaction commission, transaction amount, address data of the transaction sender and receiver, and the type of the information included in the detailed information of the transaction to be confirmed is not limited in the embodiments of the present application, and may be determined by those skilled in the art according to actual needs.
As an optional embodiment of the present invention, the method further comprises: and sending the stored transaction records to be confirmed to the plurality of block nodes.
For example, since transaction data in the blockchain network may be synchronized to each blockchain node, but there is a time delay between the synchronization of each blockchain node to the same transaction to be confirmed, the same transaction to be confirmed may be uploaded to the transaction processing device to be confirmed by a plurality of blockchain nodes, so that the transaction processing device to be confirmed repeatedly responds to the number counting operation on the same transaction to be confirmed, which wastes the computing resources of the transaction processing device to be confirmed, and the uploading of the plurality of blockchain nodes to the same transaction to be confirmed may occupy the communication channel resources. Therefore, the transaction processing equipment to be confirmed in the embodiment of the application sends the stored transaction record to be confirmed to each block link node, and the sending time can be sent according to preset interval time, or when the stored data of the transaction to be confirmed is changed, the transaction record to be confirmed is sent to each block link node, so that the block link node receiving the transaction record to be confirmed compares the newly received transaction to be confirmed with the transaction record to be confirmed, and when the newly received transaction to be confirmed is included in the transaction record to be confirmed, the uploading operation of the newly received transaction to be confirmed is stopped; and when the new confirmed transaction is not included in the transaction record to be confirmed, sending the new transaction to be confirmed to a transaction processing center to be confirmed for counting and storing the number of the transactions to be confirmed in the block chain. The stored transaction records to be confirmed, which are sent to each block chain node by the transaction processing equipment to be confirmed, can only contain the transaction hash values to be confirmed, and as any transaction to be confirmed corresponds to a unique hash value, the hash values are sent to the block chain nodes for comparison, and the data quantity of the hash values is small while the accuracy of the comparison result is ensured, the occupation of a data transmission channel is reduced, and the transmission efficiency of the transaction records to be confirmed is improved.
As an optional embodiment of the present invention, the method further comprises: and when the stored transaction to be confirmed is packed into a chain, deleting the transaction data which is packed into the chain from the database for storing the transaction to be confirmed.
For example, the stored transaction to be confirmed may be packaged into a chain in a manner that all currently existing transaction data to be confirmed, which are sent by each block chain node according to a preset interval time, are received, and the existing transaction data to be confirmed of the block chain nodes obtained twice in the vicinity are compared. When the transaction data to be confirmed is not contained in the transaction data acquired for the second time, the transaction data which is not contained in the transaction data acquired for the second time is packaged and linked, and the transaction data which is not contained in the existing transaction data to be confirmed and transmitted for the second time is deleted; the stored transaction to be confirmed is packaged into a chain in a determining mode, which can also be that the generated new block is analyzed to obtain the transaction data contained in the new block, the transaction data contained in the new block is retrieved in a database for storing the transaction to be confirmed according to the transaction data contained in the obtained new block, and the transaction data contained in the retrieved new block is deleted from the database. The packaged uplink transaction data is periodically cleared, so that the occupation of the memory resources of the transaction processing equipment to be confirmed by the uplink transaction data is avoided.
As an optional embodiment of the present invention, the method further comprises: and when receiving a transaction information query instruction to be confirmed, feeding back the transaction information to be confirmed corresponding to the transaction query instruction to be confirmed.
Illustratively, by setting an interaction module with the user, the user can upload an information query instruction through the interaction module, and feed back corresponding to-be-confirmed transaction information to the user according to the type of the to-be-queried information corresponding to the information query instruction. If the user wants to inquire all the information of the transaction to be confirmed in a period of time, the time range and the corresponding type of the information to be inquired can be set through the interaction module, and the transaction processing equipment to be confirmed feeds back the corresponding transaction confirmation information to the user according to the inquiry condition of the user.
The embodiment of the invention discloses a method for determining a to-be-confirmed transaction of a block chain, which is used for any block chain node in a plurality of block chain nodes located in different network segments and/or different geographical positions in a block chain network, and as shown in figure 2, the method comprises the following steps:
step 201, the existing transaction to be confirmed is sent to the transaction processing device to be confirmed. For details, reference is made to the above embodiments, which are not described herein again.
Step 202, when a new transaction to be confirmed is received, sending the new transaction data to be confirmed to the transaction processing equipment to be confirmed, so that the transaction processing equipment to be confirmed performs quantity statistics on the obtained transaction to be confirmed. For details, reference is made to the above embodiments, which are not described herein again.
As an optional embodiment of the present application, the new transaction data to be confirmed includes a hash value of the new transaction to be confirmed; the method further comprises the following steps: when a new transaction to be confirmed is received, sending the hash value of the new transaction to be confirmed to the transaction processing equipment to be confirmed; and when receiving a transaction detail information acquisition instruction to be confirmed sent by the transaction processing equipment to be confirmed, sending new transaction detail data to be confirmed to the transaction processing equipment to be confirmed. For details, reference is made to the above embodiments, which are not described herein again.
As an optional embodiment of the present application, the method further comprises: receiving a stored transaction record to be confirmed sent by transaction processing equipment to be confirmed; when a new transaction to be confirmed is received, comparing the new transaction to be confirmed with the stored transaction record to be confirmed; and when the new transaction to be confirmed is not contained in the stored transaction record to be confirmed, sending the new transaction data to be confirmed to the transaction processing center to be confirmed. For details, reference is made to the above embodiments, which are not described herein again.
The embodiment of the invention also discloses a device for determining transactions to be confirmed by the blockchain, which is used for transaction processing equipment to be confirmed, wherein the transaction processing equipment to be confirmed is in communication connection with a plurality of blockchain link points in a blockchain network, and the plurality of blockchain nodes are positioned in different network segments and/or different geographical positions, as shown in fig. 3, the device comprises:
the first execution module 301 is configured to acquire and store existing transaction data to be confirmed in each block link node, and perform quantity statistics on the acquired transactions to be confirmed;
a second executing module 302, configured to repeat, when receiving transaction data to be confirmed newly uploaded by any one of the blockchain nodes, a statistical operation of a number of transactions to be confirmed in the blockchain network.
As an optional embodiment of the present invention, the transaction data to be confirmed includes: a hash value of the transaction to be confirmed; the second executing module 301 is further configured to, when a hash value of a transaction to be confirmed, which is newly uploaded by the block chain node, is received, compare the hash value of the transaction to be confirmed with the obtained historical hash value database; when the historical hash value database does not contain the hash value of the transaction to be confirmed, storing the hash value of the transaction to be confirmed into the historical hash value database and transmitting a detailed information acquisition instruction of the transaction to be confirmed to the block chain node which transmits the transaction to be confirmed; and storing the received transaction detail information to be confirmed and the hash value of the transaction to be confirmed in an associated manner.
As an optional embodiment of the present invention, the apparatus further comprises: and the to-be-confirmed transaction record sending module is used for sending the stored to-be-confirmed transaction records to the plurality of block chain nodes.
As an optional embodiment of the present invention, the apparatus further comprises: and the deleting module is used for deleting the transaction data which is packaged into the chain from the database for storing the transaction to be confirmed when the stored transaction to be confirmed is packaged into the chain.
As an optional embodiment of the present invention, the apparatus further comprises: and the feedback module is used for feeding back the transaction information to be confirmed corresponding to the transaction information query instruction to be confirmed when the transaction information query instruction to be confirmed is received.
The embodiment of the invention also discloses a device for determining a to-be-confirmed transaction of a blockchain, which is used for any blockchain node in a plurality of blockchain nodes positioned in different network segments and/or different geographical positions in a blockchain network, wherein the plurality of blockchain nodes positioned in different network segments and/or different geographical positions are respectively in communication connection with a to-be-confirmed transaction processing device, as shown in fig. 4, the device comprises:
a first sending module 401, configured to send an existing transaction to be confirmed to a transaction processing device to be confirmed;
a second sending module 402, configured to send, when a new transaction to be confirmed is received, the new transaction data to be confirmed to the transaction processing device to be confirmed, so that the transaction processing device to be confirmed performs quantity statistics on the obtained transaction to be confirmed.
As an optional embodiment of the present invention, the new transaction data to be confirmed comprises a hash value of the new transaction to be confirmed; the second sending module 402 is further configured to, when a new transaction to be confirmed is received, send a hash value of the new transaction to be confirmed to the transaction processing device to be confirmed; and when receiving a transaction detail information acquisition instruction to be confirmed sent by the transaction processing equipment to be confirmed, sending new transaction detail data to be confirmed to the transaction processing equipment to be confirmed.
As an optional embodiment of the present invention, the apparatus further comprises: the receiving module is used for receiving the stored transaction record to be confirmed sent by the transaction processing equipment to be confirmed; the comparison module is used for comparing the new transaction to be confirmed with the stored transaction record to be confirmed when the new transaction to be confirmed is received; and the third sending module is used for sending the new transaction data to be confirmed to the transaction processing center to be confirmed when the new transaction to be confirmed is not contained in the stored transaction record to be confirmed.
An embodiment of the present invention further provides an electronic device, as shown in fig. 5, the electronic device may include a processor 501 and a memory 502, where the processor 501 and the memory 502 may be connected by a bus or in another manner, and fig. 5 takes the connection by the bus as an example.
Processor 501 may be a Central Processing Unit (CPU). The Processor 501 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 502 is a non-transitory computer readable storage medium, and can be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the blockchain pending transaction determination method in the embodiments of the present invention. The processor 501 executes various functional applications and data processing of the processor by running non-transitory software programs, instructions and modules stored in the memory 502, that is, the blockchain transaction to be confirmed determination method in the above method embodiment is implemented.
The memory 502 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 501, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 502 optionally includes memory located remotely from processor 501, which may be connected to processor 501 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 502 and when executed by the processor 501, perform the blockchain transaction to be confirmed determination method in the embodiments shown in fig. 1 and fig. 2.
The details of the electronic device may be understood by referring to the corresponding descriptions and effects in the embodiments shown in fig. 1 and fig. 2, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (12)

1. A blockchain transaction confirmation method for a transaction processing device to be confirmed, wherein the transaction processing device to be confirmed is communicatively connected to a plurality of blockchain nodes in a blockchain network, and the plurality of blockchain nodes are located in different network segments and/or different geographical locations, the method comprising:
acquiring and storing existing transaction data to be confirmed in each block chain node, and performing quantity counting operation on the acquired transactions to be confirmed;
and when receiving transaction data to be confirmed newly uploaded by any one of the blockchain nodes, repeatedly responding to the statistical operation of the transaction quantity to be confirmed in the blockchain network.
2. The method of claim 1, wherein the transaction data to be validated comprises: a hash value of the transaction to be confirmed; when receiving transaction data to be confirmed newly uploaded by any one of the blockchain nodes, repeatedly responding to the statistical operation of the transaction quantity to be confirmed in the blockchain network, wherein the statistical operation comprises the following steps:
when a hash value of a transaction to be confirmed newly uploaded by the block chain node is received, comparing the hash value of the transaction to be confirmed with the obtained historical hash value database;
when the historical hash value database does not contain the hash value of the transaction to be confirmed, storing the hash value of the transaction to be confirmed into the historical hash value database and transmitting a detailed information acquisition instruction of the transaction to be confirmed to the block chain node which transmits the transaction to be confirmed;
and storing the received transaction detail information to be confirmed and the hash value of the transaction to be confirmed in an associated manner.
3. The method of claim 1, further comprising:
and sending the stored transaction records to be confirmed to the plurality of block nodes.
4. The method of claim 3, further comprising:
and when the stored transaction to be confirmed is packed into a chain, deleting the transaction data which is packed into the chain from the database for storing the transaction to be confirmed.
5. The method of claim 1, further comprising:
and when receiving a transaction information query instruction to be confirmed, feeding back the transaction information to be confirmed corresponding to the transaction query instruction to be confirmed.
6. A method for determining a to-be-confirmed transaction of a block chain is used for any block chain node in a plurality of block chain nodes located in different network segments and/or different geographic positions in a block chain network, wherein the plurality of block chain nodes located in different network segments and/or different geographic positions are respectively in communication connection with a to-be-confirmed transaction processing device, and the method comprises the following steps:
sending the existing transaction to be confirmed to the transaction processing equipment to be confirmed;
and when a new transaction to be confirmed is received, sending the new transaction data to be confirmed to the transaction processing equipment to be confirmed, so that the transaction processing equipment to be confirmed performs quantity statistics on the obtained transaction to be confirmed.
7. The method of claim 6, wherein the new transaction data to be validated includes a hash value of the new transaction to be validated; the method further comprises the following steps:
when a new transaction to be confirmed is received, sending the hash value of the new transaction to be confirmed to the transaction processing equipment to be confirmed;
and when receiving a transaction detail information acquisition instruction to be confirmed sent by the transaction processing equipment to be confirmed, sending new transaction detail data to be confirmed to the transaction processing equipment to be confirmed.
8. The method of claim 6, further comprising:
receiving a stored transaction record to be confirmed sent by transaction processing equipment to be confirmed;
when a new transaction to be confirmed is received, comparing the new transaction to be confirmed with the stored transaction record to be confirmed;
and when the new transaction to be confirmed is not contained in the stored transaction record to be confirmed, sending the new transaction data to be confirmed to the transaction processing center to be confirmed.
9. A blockchain transaction confirmation apparatus for a transaction processing device to be confirmed, the transaction processing device to be confirmed being communicatively connected to a plurality of blockchain nodes in a blockchain network, the plurality of blockchain nodes being located in different network segments and/or different geographical locations, the apparatus comprising:
the first execution module is used for acquiring and storing existing transaction data to be confirmed in each block chain node and carrying out quantity counting operation on the acquired transactions to be confirmed;
and the second execution module is used for repeatedly responding to the statistical operation of the transaction quantity to be confirmed in the block chain network when receiving the transaction data to be confirmed newly uploaded by any one of the block chain nodes.
10. A device for determining a transaction to be confirmed in a blockchain, the device being used for any one of a plurality of blockchain nodes located in different network segments and/or different geographical locations in a blockchain network, wherein the plurality of blockchain nodes located in different network segments and/or different geographical locations are respectively in communication connection with a transaction processing device to be confirmed, the device comprising:
the first sending module is used for sending the existing transaction to be confirmed to the transaction processing equipment to be confirmed;
and the second sending module is used for sending the new transaction data to be confirmed to the transaction processing equipment to be confirmed when a new transaction to be confirmed is received, so that the transaction processing equipment to be confirmed can carry out quantity statistics on the obtained transaction to be confirmed.
11. An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the blockchain transaction to be confirmed determination method as claimed in any one of claims 1 to 8.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the blockchain transaction to be confirmed determination method according to any one of claims 1 to 8.
CN202011644285.4A 2020-12-31 2020-12-31 Block chain transaction to be confirmed determining method and device and electronic equipment Pending CN112669156A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011644285.4A CN112669156A (en) 2020-12-31 2020-12-31 Block chain transaction to be confirmed determining method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011644285.4A CN112669156A (en) 2020-12-31 2020-12-31 Block chain transaction to be confirmed determining method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112669156A true CN112669156A (en) 2021-04-16

Family

ID=75412478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011644285.4A Pending CN112669156A (en) 2020-12-31 2020-12-31 Block chain transaction to be confirmed determining method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112669156A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114596092A (en) * 2022-02-24 2022-06-07 成都质数斯达克科技有限公司 Charging method, device and equipment based on block chain and readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107438003A (en) * 2016-05-27 2017-12-05 索尼公司 Electronic equipment, method and information processing system for electronic equipment
CN107563910A (en) * 2017-07-21 2018-01-09 广东工业大学 A kind of second-hand house method of commerce based on block chain technology
US20180293583A1 (en) * 2017-04-05 2018-10-11 Samsung Sds Co., Ltd. Method for calculating confirmation reliability for blockchain based transaction and blockchain network monitoring system for performing the method
CN109672661A (en) * 2018-10-09 2019-04-23 中南林业科技大学 A kind of anti-tamper concealed communication method, system and platform based on block chain
US20190327094A1 (en) * 2017-07-14 2019-10-24 Zhongan Information Technology Service Co., Ltd. Information authentication method and system
CN110380847A (en) * 2019-07-01 2019-10-25 阿里巴巴集团控股有限公司 A kind of block chain common recognition method and apparatus
CN110766402A (en) * 2019-06-27 2020-02-07 深圳市润鹏华通创新科技有限公司 Transaction sequence dependency vulnerability detection method, system, electronic device and storage medium
KR102088346B1 (en) * 2019-09-24 2020-03-12 엘에스웨어(주) Apparatus and method changing information of block chain linked to external storage
CN111242784A (en) * 2020-01-16 2020-06-05 深圳大学 Block pre-packing method, block node, device and storage medium
CN111507717A (en) * 2020-04-20 2020-08-07 腾讯科技(深圳)有限公司 Data processing method, device, block node and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107438003A (en) * 2016-05-27 2017-12-05 索尼公司 Electronic equipment, method and information processing system for electronic equipment
US20180293583A1 (en) * 2017-04-05 2018-10-11 Samsung Sds Co., Ltd. Method for calculating confirmation reliability for blockchain based transaction and blockchain network monitoring system for performing the method
US20190327094A1 (en) * 2017-07-14 2019-10-24 Zhongan Information Technology Service Co., Ltd. Information authentication method and system
CN107563910A (en) * 2017-07-21 2018-01-09 广东工业大学 A kind of second-hand house method of commerce based on block chain technology
CN109672661A (en) * 2018-10-09 2019-04-23 中南林业科技大学 A kind of anti-tamper concealed communication method, system and platform based on block chain
CN110766402A (en) * 2019-06-27 2020-02-07 深圳市润鹏华通创新科技有限公司 Transaction sequence dependency vulnerability detection method, system, electronic device and storage medium
CN110380847A (en) * 2019-07-01 2019-10-25 阿里巴巴集团控股有限公司 A kind of block chain common recognition method and apparatus
KR102088346B1 (en) * 2019-09-24 2020-03-12 엘에스웨어(주) Apparatus and method changing information of block chain linked to external storage
CN111242784A (en) * 2020-01-16 2020-06-05 深圳大学 Block pre-packing method, block node, device and storage medium
CN111507717A (en) * 2020-04-20 2020-08-07 腾讯科技(深圳)有限公司 Data processing method, device, block node and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114596092A (en) * 2022-02-24 2022-06-07 成都质数斯达克科技有限公司 Charging method, device and equipment based on block chain and readable storage medium
CN114596092B (en) * 2022-02-24 2024-05-28 成都质数斯达克科技有限公司 Charging method, device and equipment based on blockchain and readable storage medium

Similar Documents

Publication Publication Date Title
CN110866825B (en) Public link-based block chain information storage method and system
EP3758286B1 (en) Data offload and time synchronization for ubiquitous visual computing witness
CN109218352B (en) Consensus confirmation method and device for transaction information in blockchain network
CN112954045B (en) Data transmission method, device, medium and electronic equipment in node
CN103873507A (en) Data block uploading and storing system and method
CN112804661A (en) Map data transmission method, system, edge server and storage medium
CN111680108B (en) Data storage method and device and data acquisition method and device
CN110995513A (en) Data sending and receiving method in Internet of things system, Internet of things equipment and platform
CN103326958A (en) Method and system for monitoring data cache
CN103973421A (en) File transmitting method and device
CN112801301B (en) Asynchronous computing method, device, apparatus, storage medium, and program product
CN110445824B (en) NB-IoT data reporting method, device, system and computer readable storage medium
CN103281206A (en) System, method and device for determining connected relation
CN110930254A (en) Data processing method, device, terminal and medium based on block chain
CN110290168A (en) Data transmission method for uplink, device, server and storage medium
CN112351088A (en) CDN cache method, device, computer equipment and storage medium
CN107995128B (en) Data access method, device, host and storage medium of fully-mechanized mining centralized control system
CN112669156A (en) Block chain transaction to be confirmed determining method and device and electronic equipment
CN109547356A (en) A kind of data transmission method of electrical energy measurement, system, equipment and computer storage medium
CN106713512B (en) Efficient data transmission method and system for dynamically balancing network bandwidth of Internet of things
WO2017040604A1 (en) Systems and methods for remote network topology discovery
RU2586598C2 (en) Data replication
CN112019393B (en) Method and device for determining time delay
Becker et al. Deployment of coap in transport logistics
CN107529190B (en) User data acquisition system and method

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