CN110099108A - A kind of block chain event De-weight method, device, computer equipment and storage medium - Google Patents
A kind of block chain event De-weight method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110099108A CN110099108A CN201910342419.8A CN201910342419A CN110099108A CN 110099108 A CN110099108 A CN 110099108A CN 201910342419 A CN201910342419 A CN 201910342419A CN 110099108 A CN110099108 A CN 110099108A
- Authority
- CN
- China
- Prior art keywords
- event
- catenary system
- block catenary
- contract
- released
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3827—Use of message hashing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Computer Security & Cryptography (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of block chain event De-weight method, device, computer equipment and storage mediums, wherein, method includes, block catenary system receives the transaction request that publisher server is sent, wherein transaction request is for requesting publication event, transaction request includes the distribution indicator of event to be released, block catenary system calls duplicate removal contract, however, it is determined that is stored with the corresponding event identifier of distribution indicator in block catenary system, then the corresponding event identifier of distribution indicator is sent to publisher server.The technical solution avoids publisher server from repeatedly issuing similar events into block catenary system, to reduce the pressure of block catenary system.
Description
Technical field
The present embodiments relate to the financial technology field (Fintech) more particularly to a kind of block chains (BlockChain)
Event De-weight method, device, computer equipment and storage medium.
Background technique
A series of chain that block chain is made of blocks, the data of each block minute book block and upper one piece of Hash
Value, all blocks form a chain before and after successive in this way.The cryptological technique and decentralization that block chain is based on
Thought be tampered the historical information on chain can not.
With the development of computer technology, more and more technical applications are in financial field, and traditional financial industry is gradually
Change to financial technology, block chain message, event transmission technology are no exception, but due to finance, the safety of payment industry, reality
The requirement of when property, the higher requirement that also technology is proposed.
In event distribution subscription, block catenary system is written in event to be released by the producer, and consumer is from block catenary system
Read event to be obtained.After the producer issues event to block catenary system, if not receiving block catenary system in preset period of time
Response message, then can issue similar events again into block catenary system, but block catenary system can handle the thing of event simultaneously
Part limited amount, if the producer repeatedly issues similar events into block catenary system, it will cause block catenary system is unnecessary
Pressure.
Summary of the invention
The embodiment of the present invention provides a kind of block chain event De-weight method, device, computer equipment and storage medium, avoids
Publisher server repeatedly issues similar events into block catenary system, to reduce the pressure of block catenary system.
A kind of block chain event De-weight method provided in an embodiment of the present invention, comprising:
Block catenary system receives the transaction request that publisher server is sent;The transaction request is for requesting publication event;
The transaction request includes the distribution indicator of event to be released;
The block catenary system calls duplicate removal contract, determines in the block catenary system whether be stored with the distribution indicator
Corresponding event identifier;The event identifier has issued event for unique identification;
The block catenary system if it is determined that be stored with the corresponding event identifier of the distribution indicator in the block catenary system,
The corresponding event identifier of the distribution indicator is then sent to the publisher server.
In above-mentioned technical proposal, after block catenary system receives the transaction request that publisher server is sent, note is not directly generated
Record has the transaction log of event to be released, but first passes through and call duplicate removal contract, judges whether have existed in block catenary system
There is the corresponding event identifier of the distribution indicator of event to be released, and if it exists, can then determine that the event to be released has succeeded
It is distributed in block catenary system, without issuing again, that is, avoids publisher server from repeatedly issuing into block catenary system and mutually work together
Part handles the event number of event, reduces the operating pressure of block catenary system, and avoids disappearing between reducing block catenary system at the same time
Expense person subscribes to similar events, improves user experience.
Optionally, further includes:
The block catenary system is if it is determined that not stored in the block catenary system have the corresponding event mark of the distribution indicator
Know, then calls the theme contract of the affiliated theme of event to be released;The theme contract in transaction log for recording institute
State the event identifier of event to be released and the event to be released;
The event identifier of the event to be released is sent to the publisher server by the block catenary system, and will be described
The event identifier of event to be released and the distribution indicator correspond in the memory space for storing and indicating to the duplicate removal contract.
In above-mentioned technical proposal, after block catenary system receives the transaction request that publisher server is sent, however, it is determined that not stored
There is the corresponding event identifier of distribution indicator, it is determined that go out the event to be released and be not yet successfully distributed in block catenary system, needed
The theme contract for calling the affiliated theme of event to be released, executes publication, to ensure the transaction request that publisher server is sent
In event to be released be successfully distributed in block catenary system.
Optionally, the duplicate removal contract is provided with maximum storage duration;
The method also includes:
The block catenary system deletes the hair for reaching maximum storage duration from the memory space that the duplicate removal contract indicates
The corresponding relationship of cloth mark and event identifier.
In above-mentioned technical proposal, it is contemplated that for storing distribution indicator and event identifier corresponding relationship in block catenary system
Limited storage space, and the interval time of publisher server publication similar events is shorter, is provided with maximum in duplicate removal contract and deposits
Store up duration, periodically remove duplicate removal contract in corresponding relationship, avoid the occurrence of the insufficient memory of duplicate removal contract, cause function by
The problem of limit.And setting maximum storage duration, it is possible to reduce duplicate removal contract is when searching the corresponding event identifier of distribution indicator
Workload further increases the working efficiency of block catenary system.
Optionally, the block catenary system includes multiple memory spaces;
The block catenary system stores the event identifier of the event to be released and distribution indicator correspondence to described
In the memory space of duplicate removal contract instruction, comprising:
The block catenary system is determined from the multiple memory space according to the distribution indicator of the event to be released
The memory space of the duplicate removal contract instruction;By the event identifier of the event to be released and the distribution indicator it is corresponding store to
In the duplicate removal contract instruction memory space.
In above-mentioned technical proposal, it is arranged in block catenary system and stores multiple memory spaces, and according to event to be released, setting
Different events to be released are mapped in corresponding memory space, press the corresponding relationship of distribution indicator and event identifier to realize
According to rule classification into multiple memory spaces, more corresponding relationships for storing distribution indicator and event identifier.
Optionally, the block catenary system calls duplicate removal contract, comprising:
The block catenary system calls the theme contract of the affiliated theme of event to be released, passes through the event to be released
The theme contract of affiliated theme calls the duplicate removal contract.
In above-mentioned technical proposal, block catenary system first calls the affiliated theme of event to be released after receiving transaction request
Theme contract, and duplicate removal contract is called from theme contract again, improves block catenary system order in actual operation.
Correspondingly, the embodiment of the invention also provides a kind of block chain event De-weight methods, comprising:
Publisher server sends deployment request to block catenary system;The deployment request in the deployment of block catenary system for going
It is overlapped about;The duplicate removal contract is used to determine that the distribution indicator that event to be released whether is stored in the block catenary system to be corresponding
Event identifier;The event identifier has issued event for unique identification;
The publisher server receives deployment response, and the deployment response is used to indicate the duplicate removal contract deployment success.
In above-mentioned technical proposal, publisher server disposes duplicate removal contract into block catenary system in advance, for block
When sending transaction request in catenary system, block catenary system can fall identical event filtering, while feed back to publisher server
The corresponding event identifier of distribution indicator, avoids publisher server from repeatedly issuing the transaction request of similar events to block catenary system,
Improve the working efficiency of publisher server.
Correspondingly, the embodiment of the invention also provides a kind of block chain event duplicate removal devices, comprising:
Transmit-Receive Unit, for receiving the transaction request of publisher server transmission;The transaction request is for requesting publication thing
Part;The transaction request includes the distribution indicator of event to be released;
Processing unit determines that the distribution indicator whether is stored in block catenary system to be corresponded to for calling duplicate removal contract
Event identifier;The event identifier has issued event for unique identification;
The processing unit is also used to if it is determined that being stored with the corresponding event of the distribution indicator in the block catenary system
Mark, then control the Transmit-Receive Unit for the corresponding event identifier of the distribution indicator and be sent to the publisher server.
Optionally, the processing unit, is also used to:
If it is determined that not stored in the block catenary system have the corresponding event identifier of the distribution indicator, then call it is described to
The theme contract of the affiliated theme of publication event;The theme contract in transaction log for recording the event to be released and institute
State the event identifier of event to be released;
It controls the Transmit-Receive Unit and the event identifier of the event to be released is sent to the publisher server, and by institute
The event identifier and the distribution indicator for stating event to be released correspond in the memory space for storing and indicating to the duplicate removal contract.
Optionally, the duplicate removal contract is provided with maximum storage duration;
The processing unit, is also used to:
The distribution indicator and event mark for reaching maximum storage duration are deleted from the memory space that the duplicate removal contract indicates
The corresponding relationship of knowledge.
Optionally, the block catenary system includes multiple memory spaces;
The processing unit, is specifically used for:
According to the distribution indicator of the event to be released, determine that the duplicate removal contract refers to from the multiple memory space
The memory space shown;Corresponding store to the duplicate removal contract of the event identifier of the event to be released and the distribution indicator is referred to
Show in memory space.
Optionally, the processing unit is specifically used for:
The theme contract for calling the affiliated theme of event to be released passes through the theme of the affiliated theme of event to be released
Contract calls the duplicate removal contract.
Correspondingly, the embodiment of the invention also provides a kind of block chain event duplicate removal devices, comprising:
Transmission unit, for sending deployment request to block catenary system;The deployment request is in block catenary system portion
Affix one's name to duplicate removal contract;The duplicate removal contract is for the distribution indicator for whether being stored with event to be released in the block catenary system to be determined
Corresponding event identifier;The event identifier has issued event for unique identification;
Receiving unit, for receiving deployment response, the deployment response is used to indicate the duplicate removal contract deployment success.
Correspondingly, the embodiment of the invention also provides a kind of computer equipments, comprising:
Memory, for storing program instruction;
Processor executes above-mentioned block according to the program of acquisition for calling the program instruction stored in the memory
Chain event De-weight method.
Correspondingly, the embodiment of the invention also provides a kind of computer-readable non-volatile memory medium, including computer
Readable instruction, when computer is read and executes the computer-readable instruction, so that computer executes above-mentioned block chain event
De-weight method.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this
For the those of ordinary skill in field, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of schematic diagram of system architecture provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of block chain event De-weight method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of block chain event duplicate removal device provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of block chain event duplicate removal device provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into
It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
All other embodiment, shall fall within the protection scope of the present invention.
Fig. 1 illustratively shows the embodiment of the present invention and provides the system architecture that block chain event De-weight method is applicable in,
The system architecture may include the producer 100, publisher server 200, block catenary system 300, Subscriber 400, consumer
500.Wherein, the producer 100 is used to the event to be released block chain is written for generating event to be released, publisher server 200
In system 300, consumer 500 is used to subscribe to event from block catenary system 300 by Subscriber 400.
When the producer 100 needs to issue event, event to be released is sent to publisher server 200, publisher server 200
Transaction request is generated according to event to be released, transaction request is sent to block catenary system 300, block chain by publisher server 200
System 300 executes contract according to transaction request and records the event to be released, i.e. the event publication of the completion producer 100.
When consumer 500 needs to obtain event, acquisition request, 400 basis of Subscriber are sent to Subscriber 400
The acquisition request received determines the corresponding event of acquisition request from block catenary system 300, feeds back to consumer 500, i.e.,
Complete the event subscription of consumer 500.
Publisher server 200 and Subscriber 400 in this system framework can be a service on physical entity
Device, the server complete publication and subscribe to function, or two sseparated servers are respectively completed issuing function and subscription
Function, herein with no restrictions.
Block catenary system 300 executes contract according to transaction request and records the event to be released, and event to be released is issued
Afterwards, it is stored in block catenary system 300, since block catenary system 300 is chain structure, there is the spy for being not easy to be tampered and delete
Property, ensure the safety that publication event is stored in block catenary system 300.
Publisher server 200 is after sending transaction request to block catenary system 300, if publisher server 200 can be from area
Block catenary system 300 gets the response message of publication event, and record has the event identifier of publication event in the response message, then
Publisher server 200 assert that event to be released is successfully distributed in block catenary system 300, and otherwise, publisher server 200 then can
Assert that event to be released is not yet successfully distributed to block catenary system 300, needs to issue this again to block catenary system 300 pending
Cloth event, in conjunction with the description, the present embodiments relate to scenes to have:
Scene one: publisher server sends transaction request to block catenary system, and block catenary system is successfully generated transaction log,
And feeding back response information, there are the event identifier of publication event in the response message, publisher server receives the response message, really
Determine event to issue successfully.
Scene two: publisher server sends transaction request to block catenary system, and block catenary system is successfully generated transaction log,
But publisher server, which does not receive, is not present publication event in the response message of block catenary system feedback, or the response message of feedback
Event identifier, then publisher server thinks that event publication is failed, needs to be issued again, similar events are stored to transaction
Block catenary system is sent in request, block catenary system determines the event mark that publication event has been stored in block catenary system
Know, then to the event identifier of publisher server feedback publication event, to inform the issued success of publisher server event.
Scene three: publisher server sends transaction request to block catenary system, and block catenary system generates the day of trade not successfully
Will, publisher server, which does not receive, is not present publication event in the response message of block catenary system feedback, or the response message of feedback
Event identifier, then publisher server thinks that event publication is failed, needs to be issued again, similar events are stored best friend
It easily is sent to block catenary system in request, block catenary system determines the not stored event mark for having publication event in block catenary system
Know, then call the theme contract of the affiliated theme of event to be released, generates transaction log, and feedback record has the event of publication event
Mark acknowledges message to publisher server, to inform the issued success of publisher server event.
In conjunction with above-mentioned scene, Fig. 2 illustratively shows a kind of block chain event removing repeat provided in an embodiment of the present invention
The process of method, the process can be executed by block chain event duplicate removal device, which can be located in block catenary system, can be
The block catenary system.As shown in Fig. 2, the process, which is related to executing subject, publisher server, block catenary system, detailed process is such as
Under.
Step 201, publisher server sends transaction request to block catenary system.
Publisher server receives the posting request that the producer sends, and generates transaction request according to posting request, and be sent to
In block catenary system, wherein transaction request is for requesting publication event, the publication mark including event to be released in transaction request
Know.The distribution indicator of event to be released may include event to be released producer IP (Internet Protocol, network it
Between the agreement that interconnects) address, Thread Id (Identification, identity number), timestamp, increment value etc. is believed in the time
Breath, for uniquely determining the event to be released, illustratively, the distribution indicator of event to be released can be event to be released
UUID (Universally Unique Identifier, Universally Unique Identifier).
Further, the distribution indicator of event to be released can be producer's generation, and it is raw to be also possible to publisher server
At, it is all pending by what is received according to certain rule when publisher server generates the distribution indicator of event to be released
Cloth event is identified, to ensure the distribution indicator of event to be released for uniquely determining the event to be released.
Step 202, block catenary system calls duplicate removal contract.
Duplicate removal contract can be disposed in block catenary system, the duplicate removal contract is for preventing publisher server will be identical pending
Cloth event is distributed in block catenary system, specifically, determined by duplicate removal contract whether be stored in block catenary system it is to be released
Identical event to be released is distributed to block catenary system to avoid publisher server by the corresponding event identifier of the distribution indicator of event
In.
In the embodiment of the present invention, publisher server can dispose the duplicate removal contract in advance, specifically, publisher server is to area
Block catenary system sends deployment request, and i.e. for disposing duplicate removal contract in block catenary system, block catenary system exists for deployment request
After receiving deployment request, i.e., the duplicate removal contract is disposed in block catenary system according to deployment request, block catenary system is by duplicate removal
After the completion of contract deployment, deployment response is sent to publisher server, to notify publisher server deployment success.
Step 203, block catenary system determines in block catenary system whether be stored with event identifier.
If event to be released is issued successfully in block catenary system, block catenary system, which can generate record, the event to be released
Transaction log, the generation of the transaction log records in transaction log this means that the event to be released becomes having issued event
There is event identifier, which has issued event for unique identification, also closes with the distribution indicator of event to be released in corresponding
System.
In the embodiment of the present invention, the distribution indicator of event and the corresponding relationship of event identifier be can store in duplicate removal contract institute
In the memory space of instruction, block catenary system can call directly duplicate removal contract, determine memory space indicated by duplicate removal contract
In whether be stored with the corresponding event identifier of distribution indicator of event to be released.The affiliated theme of event to be released can also be passed through
The theme contract that theme contract calling duplicate removal contract, i.e. block catenary system call the affiliated theme of event to be released, by be released
The theme contract of the affiliated theme of event calls duplicate removal contract.
In the embodiment of the present invention, due to the limited storage space that duplicate removal contract indicates in block catenary system, and issuing service
The interval time that device issues similar events is shorter, then maximum storage duration can be arranged in duplicate removal contract, if being stored in duplicate removal
The distribution indicator of event in contract and the corresponding relationship of event identifier are more than maximum storage duration, then delete the corresponding of the two and close
System.
Step 204, the corresponding event identifier of distribution indicator is sent to publisher server by block catenary system.
If being stored with the corresponding event identifier of distribution indicator in block catenary system, it is determined that event publication to be released is completed,
The corresponding event identifier of the distribution indicator determined is sent to publisher server, to inform the publisher server event to be released
Issued completion.
Certainly, in the embodiment of the present invention, it is also possible to which there are block catenary systems to determine not stored in block catenary system having event
Mark, it is determined that do not issue the event to be released also, block catenary system need to execute contract and issue the event to be released, specifically,
Block catenary system calls the theme contract of the affiliated theme of event to be released, has the event to be released and thing to be released to generate record
The event identifier of event to be released is sent to publisher server by the transaction log of the event identifier of part, block catenary system, and will
The event identifier and distribution indicator of event to be released are corresponding to be stored into duplicate removal contract in indicated memory space.
Further, to improve system performance, can also be arranged includes multiple memory spaces in block catenary system.In block
After catenary system generates event identifier according to distribution indicator, the corresponding relationship of the two can be stored according to distribution indicator to going to be overlapped
About in indicated memory space.Optionally, tile system can be according to the timestamp of the distribution indicator of event to be released, from more
Determine memory space indicated by duplicate removal contract in a memory space, and by the event identifier and distribution indicator of event to be released
It is corresponding to store in the memory space indicated to duplicate removal contract.Correspondingly, whether being stored with publication mark in judging block catenary system
When knowing corresponding event identifier, it can also determine that duplicate removal contract is signified first according to the timestamp of the distribution indicator of event to be released
The memory space shown, and search whether to be stored with the corresponding event identifier of the distribution indicator from the memory space.In addition, the party
Case can also calculate the modes such as the cryptographic Hash of distribution indicator, the critical field for taking distribution indicator, to determine indicated by duplicate removal contract
Memory space.Illustratively, the mapping of duplicate removal contract and multiple memory spaces can be realized using mapping structure mapping.
The program can expand in block catenary system for storing the space of distribution indicator and event identifier corresponding relationship, further increase
System performance.
In above-described embodiment, after block catenary system receives the transaction request that publisher server is sent, record is not directly generated
There is the transaction log of event to be released, but first pass through and call duplicate removal contract, judges whether had existed in block catenary system
The corresponding event identifier of the distribution indicator of event to be released, and if it exists, can then determine that the event to be released is successfully sent out
Cloth is into block catenary system, without issuing again, that is, publisher server is avoided to issue similar events into block catenary system, reduces
Block catenary system at the same time between handle the event number of event, reduce the operating pressure of block catenary system, and consumer avoided to order
Similar events are read, user experience is improved.
Based on the same inventive concept, Fig. 3 illustratively shows a kind of block chain event provided in an embodiment of the present invention and goes
The structure set is reset, which can execute the process of block chain event De-weight method.
Transmit-Receive Unit 301, for receiving the transaction request of publisher server transmission;The transaction request is for requesting publication
Event;The transaction request includes the distribution indicator of event to be released;
Processing unit 302 determines the distribution indicator pair whether is stored in block catenary system for calling duplicate removal contract
The event identifier answered;The event identifier has issued event for unique identification;
The processing unit 302 is also used to if it is determined that be stored with the distribution indicator in the block catenary system corresponding
Event identifier then controls the Transmit-Receive Unit 301 for the corresponding event identifier of the distribution indicator and is sent to the issuing service
Device.
Optionally, the processing unit 302, is also used to:
If it is determined that not stored in the block catenary system have the corresponding event identifier of the distribution indicator, then call it is described to
The theme contract of the affiliated theme of publication event;The theme contract in transaction log for recording the event to be released and institute
State the event identifier of event to be released;
It controls the Transmit-Receive Unit 301 and the event identifier of the event to be released is sent to the publisher server, and
The event identifier of the event to be released and the distribution indicator are corresponded into the memory space for storing and indicating to the duplicate removal contract
In.
Optionally, the duplicate removal contract is provided with maximum storage duration;
The processing unit 302, is also used to:
The distribution indicator and event mark for reaching maximum storage duration are deleted from the memory space that the duplicate removal contract indicates
The corresponding relationship of knowledge.
Optionally, the block catenary system includes multiple memory spaces;
The processing unit 302, is specifically used for:
According to the distribution indicator of the event to be released, determine that the duplicate removal contract refers to from the multiple memory space
The memory space shown;Corresponding store to the duplicate removal contract of the event identifier of the event to be released and the distribution indicator is referred to
Show in memory space.
Optionally, the processing unit 302 is specifically used for:
The theme contract for calling the affiliated theme of event to be released passes through the theme of the affiliated theme of event to be released
Contract calls the duplicate removal contract.
Based on the same inventive concept, Fig. 4 illustratively shows a kind of block chain event provided in an embodiment of the present invention and goes
The structure set is reset, which can execute the process of block chain event De-weight method.
Transmission unit 401, for sending deployment request to block catenary system;The deployment request is in block catenary system
Dispose duplicate removal contract;The duplicate removal contract is for the publication mark for whether being stored with event to be released in the block catenary system to be determined
Know corresponding event identifier;The event identifier has issued event for unique identification;
Receiving unit 402, for receiving deployment response, the deployment response is used to indicate the duplicate removal contract and is deployed to
Function.
Based on the same inventive concept, the embodiment of the invention also provides a kind of computer equipments, comprising:
Memory, for storing program instruction;
Processor executes above-mentioned block according to the program of acquisition for calling the program instruction stored in the memory
Chain event De-weight method.
Based on the same inventive concept, the embodiment of the invention also provides a kind of computer-readable non-volatile memory medium,
Including computer-readable instruction, when computer is read and executes the computer-readable instruction, so that computer execution is above-mentioned
Block chain event De-weight method.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (14)
1. a kind of block chain event De-weight method characterized by comprising
Block catenary system receives the transaction request that publisher server is sent;The transaction request is for requesting publication event;It is described
Transaction request includes the distribution indicator of event to be released;
The block catenary system calls duplicate removal contract, determines that the distribution indicator whether is stored in the block catenary system to be corresponded to
Event identifier;The event identifier has issued event for unique identification;
The block catenary system then will if it is determined that be stored with the corresponding event identifier of the distribution indicator in the block catenary system
The corresponding event identifier of the distribution indicator is sent to the publisher server.
2. the method as described in claim 1, which is characterized in that further include:
The block catenary system is if it is determined that not stored in the block catenary system have the corresponding event identifier of the distribution indicator, then
Call the theme contract of the affiliated theme of event to be released;The theme contract is described pending for recording in transaction log
The event identifier of cloth event and the event to be released;
The event identifier of the event to be released is sent to the publisher server by the block catenary system, and will be described pending
The event identifier of cloth event and the distribution indicator correspond in the memory space for storing and indicating to the duplicate removal contract.
3. method according to claim 2, which is characterized in that the duplicate removal contract is provided with maximum storage duration;
The method also includes:
The block catenary system deletes the publication mark for reaching maximum storage duration from the memory space that the duplicate removal contract indicates
Know the corresponding relationship with event identifier.
4. method according to claim 2, which is characterized in that the block catenary system includes multiple memory spaces;
The block catenary system stores the event identifier of the event to be released and distribution indicator correspondence to the duplicate removal
In the memory space of contract instruction, comprising:
The block catenary system is determined described according to the distribution indicator of the event to be released from the multiple memory space
The memory space of duplicate removal contract instruction;The event identifier of the event to be released and distribution indicator correspondence are stored to described
In the memory space of duplicate removal contract instruction.
5. such as the described in any item methods of Claims 1-4, which is characterized in that the block catenary system calls duplicate removal contract, packet
It includes:
The block catenary system calls the theme contract of the affiliated theme of event to be released, by belonging to the event to be released
The theme contract of theme calls the duplicate removal contract.
6. a kind of block chain event De-weight method characterized by comprising
Publisher server sends deployment request to block catenary system;The deployment request in the deployment of block catenary system for going to be overlapped
About;The duplicate removal contract is for the corresponding thing of distribution indicator for whether being stored with event to be released in the block catenary system to be determined
Part mark;The event identifier has issued event for unique identification;
The publisher server receives deployment response, and the deployment response is used to indicate the duplicate removal contract deployment success.
7. a kind of block chain event duplicate removal device characterized by comprising
Transmit-Receive Unit, for receiving the transaction request of publisher server transmission;The transaction request is for requesting publication event;Institute
State the distribution indicator that transaction request includes event to be released;
Processing unit determines the corresponding thing of the distribution indicator whether is stored in block catenary system for calling duplicate removal contract
Part mark;The event identifier has issued event for unique identification;
The processing unit is also used to if it is determined that being stored with the corresponding event mark of the distribution indicator in the block catenary system
Know, then controls the Transmit-Receive Unit for the corresponding event identifier of the distribution indicator and be sent to the publisher server.
8. device as claimed in claim 7, which is characterized in that the processing unit is also used to:
If it is determined that not stored in the block catenary system have the corresponding event identifier of the distribution indicator, then call described to be released
The theme contract of the affiliated theme of event;The theme contract for recorded in transaction log the event to be released and it is described to
The event identifier of publication event;
Control the Transmit-Receive Unit and the event identifier of the event to be released be sent to the publisher server, and will it is described to
The event identifier of publication event and the distribution indicator correspond in the memory space for storing and indicating to the duplicate removal contract.
9. device as claimed in claim 8, which is characterized in that the duplicate removal contract is provided with maximum storage duration;
The processing unit, is also used to:
The distribution indicator and event identifier for reaching maximum storage duration are deleted from the memory space that the duplicate removal contract indicates
Corresponding relationship.
10. device as claimed in claim 8, which is characterized in that the block catenary system includes multiple memory spaces;
The processing unit, is specifically used for:
According to the distribution indicator of the event to be released, the duplicate removal contract instruction is determined from the multiple memory space
Memory space;Corresponding store to duplicate removal contract instruction of the event identifier of the event to be released and the distribution indicator is deposited
It stores up in space.
11. such as the described in any item devices of claim 7 to 10, which is characterized in that the processing unit is specifically used for:
The theme contract for calling the affiliated theme of event to be released passes through the theme contract of the affiliated theme of event to be released
Call the duplicate removal contract.
12. a kind of block chain event duplicate removal device characterized by comprising
Transmission unit, for sending deployment request to block catenary system;The deployment request in the deployment of block catenary system for going
It is overlapped about;The duplicate removal contract is used to determine that the distribution indicator that event to be released whether is stored in the block catenary system to be corresponding
Event identifier;The event identifier has issued event for unique identification;
Receiving unit, for receiving deployment response, the deployment response is used to indicate the duplicate removal contract deployment success.
13. a kind of computer equipment characterized by comprising
Memory, for storing program instruction;
Processor requires 1 to 6 according to the program execution benefit of acquisition for calling the program instruction stored in the memory
Described in any item methods.
14. a kind of computer-readable non-volatile memory medium, which is characterized in that including computer-readable instruction, work as computer
When reading and executing the computer-readable instruction, so that computer executes such as method as claimed in any one of claims 1 to 6.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910342419.8A CN110099108B (en) | 2019-04-26 | 2019-04-26 | Block chain event duplicate removal method and device, computer equipment and storage medium |
PCT/CN2020/084282 WO2020216077A1 (en) | 2019-04-26 | 2020-04-10 | Blockchain event deduplication method and apparatus, and computer device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910342419.8A CN110099108B (en) | 2019-04-26 | 2019-04-26 | Block chain event duplicate removal method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110099108A true CN110099108A (en) | 2019-08-06 |
CN110099108B CN110099108B (en) | 2022-04-01 |
Family
ID=67445904
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910342419.8A Active CN110099108B (en) | 2019-04-26 | 2019-04-26 | Block chain event duplicate removal method and device, computer equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110099108B (en) |
WO (1) | WO2020216077A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110471933A (en) * | 2019-08-16 | 2019-11-19 | 腾讯科技(深圳)有限公司 | A kind of information processing method, device, computer equipment and storage medium |
CN111275553A (en) * | 2020-01-20 | 2020-06-12 | 联动优势(北京)数字科技有限公司 | Data storage method of block chain and block chain system |
WO2020216077A1 (en) * | 2019-04-26 | 2020-10-29 | 深圳前海微众银行股份有限公司 | Blockchain event deduplication method and apparatus, and computer device and storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114363162B (en) * | 2021-12-31 | 2024-05-03 | 支付宝(杭州)信息技术有限公司 | Block chain log generation method and device, electronic equipment and storage medium |
Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170134161A1 (en) * | 2015-11-06 | 2017-05-11 | Cable Television Laboratories, Inc | Blockchaining for media distribution |
CN107295002A (en) * | 2017-07-12 | 2017-10-24 | 联动优势科技有限公司 | The method and server of a kind of high in the clouds data storage |
CN107301536A (en) * | 2017-06-12 | 2017-10-27 | 腾讯科技(深圳)有限公司 | Resource transfers method and device |
US20170330179A1 (en) * | 2016-05-16 | 2017-11-16 | Coinplug, Inc. | Method for issuing authentication information and blockchain-based server using the same |
CN107464117A (en) * | 2017-08-04 | 2017-12-12 | 平安科技(深圳)有限公司 | Data managing method and block catenary system based on block chain |
CN108062671A (en) * | 2017-11-03 | 2018-05-22 | 深圳市轱辘车联数据技术有限公司 | Data trade method, block chain node server and data submit terminal |
WO2018144302A1 (en) * | 2017-01-31 | 2018-08-09 | Rush Thomas Jay | Blockchain data-processing engine |
CN108573741A (en) * | 2017-12-25 | 2018-09-25 | 北京金山云网络技术有限公司 | Business datum recording method, device, equipment and storage medium |
CN108614878A (en) * | 2018-04-27 | 2018-10-02 | 腾讯科技(深圳)有限公司 | protocol data management method, device, storage medium and system |
US20180285869A1 (en) * | 2017-03-28 | 2018-10-04 | Alibaba Group Holding Limited | Method and apparatus for processing transaction requests |
CN108647974A (en) * | 2018-05-11 | 2018-10-12 | 北京奇虎科技有限公司 | A kind of Information Authentication method, apparatus and system based on block chain |
CN108681572A (en) * | 2018-05-04 | 2018-10-19 | 蔷薇信息技术有限公司 | Date storage method, device and the electronic equipment of block chain |
CN108769751A (en) * | 2018-05-02 | 2018-11-06 | 中广热点云科技有限公司 | A kind of network video based on intelligent contract listens Management Support System |
CN108805569A (en) * | 2018-05-29 | 2018-11-13 | 阿里巴巴集团控股有限公司 | Transaction processing method and device, electronic equipment based on block chain |
CN108846752A (en) * | 2018-06-06 | 2018-11-20 | 北京京东金融科技控股有限公司 | Data processing method, system, block platform chain and readable storage medium storing program for executing |
CN108961052A (en) * | 2018-06-25 | 2018-12-07 | 百度在线网络技术(北京)有限公司 | Verification method, storage method, device, equipment and the medium of block chain data |
EP3432240A1 (en) * | 2017-07-20 | 2019-01-23 | Chicago Mercantile Exchange, Inc. | Blockchain including linked digital assets |
CN109615383A (en) * | 2018-10-26 | 2019-04-12 | 阿里巴巴集团控股有限公司 | Data based on block chain deposit card, acquisition methods and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110099108B (en) * | 2019-04-26 | 2022-04-01 | 深圳前海微众银行股份有限公司 | Block chain event duplicate removal method and device, computer equipment and storage medium |
-
2019
- 2019-04-26 CN CN201910342419.8A patent/CN110099108B/en active Active
-
2020
- 2020-04-10 WO PCT/CN2020/084282 patent/WO2020216077A1/en active Application Filing
Patent Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170134161A1 (en) * | 2015-11-06 | 2017-05-11 | Cable Television Laboratories, Inc | Blockchaining for media distribution |
US20170330179A1 (en) * | 2016-05-16 | 2017-11-16 | Coinplug, Inc. | Method for issuing authentication information and blockchain-based server using the same |
WO2018144302A1 (en) * | 2017-01-31 | 2018-08-09 | Rush Thomas Jay | Blockchain data-processing engine |
US20180285869A1 (en) * | 2017-03-28 | 2018-10-04 | Alibaba Group Holding Limited | Method and apparatus for processing transaction requests |
CN107301536A (en) * | 2017-06-12 | 2017-10-27 | 腾讯科技(深圳)有限公司 | Resource transfers method and device |
CN107295002A (en) * | 2017-07-12 | 2017-10-24 | 联动优势科技有限公司 | The method and server of a kind of high in the clouds data storage |
EP3432240A1 (en) * | 2017-07-20 | 2019-01-23 | Chicago Mercantile Exchange, Inc. | Blockchain including linked digital assets |
CN107464117A (en) * | 2017-08-04 | 2017-12-12 | 平安科技(深圳)有限公司 | Data managing method and block catenary system based on block chain |
CN108062671A (en) * | 2017-11-03 | 2018-05-22 | 深圳市轱辘车联数据技术有限公司 | Data trade method, block chain node server and data submit terminal |
CN108573741A (en) * | 2017-12-25 | 2018-09-25 | 北京金山云网络技术有限公司 | Business datum recording method, device, equipment and storage medium |
CN108614878A (en) * | 2018-04-27 | 2018-10-02 | 腾讯科技(深圳)有限公司 | protocol data management method, device, storage medium and system |
CN108769751A (en) * | 2018-05-02 | 2018-11-06 | 中广热点云科技有限公司 | A kind of network video based on intelligent contract listens Management Support System |
CN108681572A (en) * | 2018-05-04 | 2018-10-19 | 蔷薇信息技术有限公司 | Date storage method, device and the electronic equipment of block chain |
CN108647974A (en) * | 2018-05-11 | 2018-10-12 | 北京奇虎科技有限公司 | A kind of Information Authentication method, apparatus and system based on block chain |
CN108805569A (en) * | 2018-05-29 | 2018-11-13 | 阿里巴巴集团控股有限公司 | Transaction processing method and device, electronic equipment based on block chain |
CN108846752A (en) * | 2018-06-06 | 2018-11-20 | 北京京东金融科技控股有限公司 | Data processing method, system, block platform chain and readable storage medium storing program for executing |
CN108961052A (en) * | 2018-06-25 | 2018-12-07 | 百度在线网络技术(北京)有限公司 | Verification method, storage method, device, equipment and the medium of block chain data |
CN109615383A (en) * | 2018-10-26 | 2019-04-12 | 阿里巴巴集团控股有限公司 | Data based on block chain deposit card, acquisition methods and device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020216077A1 (en) * | 2019-04-26 | 2020-10-29 | 深圳前海微众银行股份有限公司 | Blockchain event deduplication method and apparatus, and computer device and storage medium |
CN110471933A (en) * | 2019-08-16 | 2019-11-19 | 腾讯科技(深圳)有限公司 | A kind of information processing method, device, computer equipment and storage medium |
CN110555625A (en) * | 2019-08-16 | 2019-12-10 | 腾讯科技(深圳)有限公司 | information processing method and device, computer equipment and storage medium |
CN110471933B (en) * | 2019-08-16 | 2024-03-26 | 腾讯科技(深圳)有限公司 | Information processing method, device, computer equipment and storage medium |
CN110555625B (en) * | 2019-08-16 | 2024-04-26 | 腾讯科技(深圳)有限公司 | Information processing method, device, computer equipment and storage medium |
CN111275553A (en) * | 2020-01-20 | 2020-06-12 | 联动优势(北京)数字科技有限公司 | Data storage method of block chain and block chain system |
CN111275553B (en) * | 2020-01-20 | 2023-08-11 | 联动优势科技有限公司 | Block chain data storage method and block chain system |
Also Published As
Publication number | Publication date |
---|---|
WO2020216077A1 (en) | 2020-10-29 |
CN110099108B (en) | 2022-04-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110099108A (en) | A kind of block chain event De-weight method, device, computer equipment and storage medium | |
JP7264918B2 (en) | RESOURCE TRANSFER DATA MANAGEMENT METHOD AND APPARATUS, AND COMPUTER PROGRAM | |
CN110032571A (en) | Business flow processing method, apparatus, storage medium and calculating equipment | |
CN109584063A (en) | Transaction processing method and device, electronic equipment based on block chain | |
CN109598504A (en) | Transaction processing method and device, electronic equipment based on block chain | |
CN110289999B (en) | Data processing method, system and device | |
CN104601696A (en) | Service processing method and service invoking frame, device and architecture | |
CN110188112A (en) | A kind of retroactive method and device of the change record of block chain intelligence contract | |
CN109491765B (en) | Method and device for processing cross-domain service request | |
CN109670879A (en) | A kind of distribution billing method and system | |
CN110083629A (en) | A kind of method and device of the event subscription based on block chain | |
CN111915298A (en) | Method and device for generating and verifying linkable ring signature in block chain | |
CN111641563B (en) | Flow self-adaption method and system based on distributed scene | |
CN110908812B (en) | Service data processing method, device, readable storage medium and computer equipment | |
CN111476572A (en) | Data processing method and device based on block chain, storage medium and equipment | |
CN103246996A (en) | Method, system, price enquiring system, terminal and checking system for realizing discount consumption | |
CN110097363A (en) | It is a kind of based on block chain event publication, event subscription method and device | |
CN105025102B (en) | The network storage call method and storage system of a kind of 3D printing model file | |
CN111488372A (en) | Data processing method, device and storage medium | |
CN113505260A (en) | Face recognition method and device, computer readable medium and electronic equipment | |
CN112804360A (en) | Method and apparatus for providing cross-chain private data | |
CN108459929A (en) | A kind of data back up method based on cloud computing | |
CN108494780A (en) | A kind of method for secure storing based on cloud computing | |
CN105740278A (en) | Data processing method and apparatus | |
CN107800806B (en) | Storage resource recovery method, shared memory systems and cloud service system under cloud environment |
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 |