CN109559225A - A kind of method of commerce and device - Google Patents
A kind of method of commerce and device Download PDFInfo
- Publication number
- CN109559225A CN109559225A CN201811405661.7A CN201811405661A CN109559225A CN 109559225 A CN109559225 A CN 109559225A CN 201811405661 A CN201811405661 A CN 201811405661A CN 109559225 A CN109559225 A CN 109559225A
- Authority
- CN
- China
- Prior art keywords
- transaction
- transaction results
- event server
- information
- results
- 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
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- 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
-
- 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/50—Network services
- H04L67/55—Push-based network services
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- General Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Economics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Development Economics (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides a kind of method of commerce and device, it is related to field of computer technology, suitable for including the block platform chain of N number of block chain node and event server, method includes: that event server receives the transaction results for same transaction information that multiple block chain nodes are sent, Transaction Information is that application server is sent after getting Transaction Information to N number of block chain node, and N is more than or equal to 3;After the completion of if event server determines the transaction results processing of Transaction Information, determine push according to multiple transaction results for receiving as a result, and push result is sent to Subscriber, Subscriber is registered using preset subscription rules with event server.Compared with prior art, Subscriber is able to receive directly the transaction results that event server has carried out decision, so that Subscriber is enable to respond quickly transaction results, additionally it is possible to realize the function that customization is sent.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of method of commerce and device.
Background technique
Block chain technology is that algorithm of knowing together with storing data, using distributed node is verified using block linked data structure
Guarantee the safety of data transmission and access with more new data, in the way of cryptography, using by automatized script generation to generate
The intelligent contract of code composition programs the completely new distributed basis framework and calculation paradigm of one kind with operation data.Block chain skill
Art itself has many advantages: on the one hand, since block chain network can realize selfdiscipline, any malice deception by algorithm
The behavior of system all can be by the repulsion and inhibition of other nodes in network, therefore, and block catenary system is without relying on central authority
Safe network trading can be realized in mechanism supports and credit endorsement.On the other hand, since block chain takes one-way hash function algorithm,
Each newly generated block is promoted in strict accordance with time linear sequence simultaneously, the irreversibility of time cause it is any attempt to invade usurp
The behavior for changing data information in block chain is all easy to be traced, and causes by the repulsion of other nodes, so as to limit correlation
Malfeasance.Therefore, block chain technology has obtained increasingly extensive application in various fields such as finance, banks.
When handling the transaction of block chain, since the transaction of block chain is multi-node asynchronous processing model, application server is initiated
To block platform chain, each block chain node in block platform chain handles the transaction for one or more transactions, and by
The processing result of transaction is pushed to application server by the event module in each node, carries out subsequent business processing.
It finds in practical applications, application server may receive different nodes for same transaction and send not
With processing result, cause application server be difficult to decision transaction processing result, influence the response efficiency of application server with
And the accuracy of block chain transaction.
In conclusion cannot provide in the prior art, a kind of accuracy is high, block chain method of commerce of fast response time.
Summary of the invention
The present invention provides a kind of method of commerce and device, for solve cannot to provide in the prior art a kind of accuracy it is high,
The problem of block chain method of commerce of fast response time.
A kind of method of commerce of the embodiment of the present invention, suitable for including the block of N number of block chain node and event server
Platform chain, which comprises
The event server receives the transaction results for same transaction information that multiple block chain nodes are sent, institute
Stating Transaction Information is that application server is sent after getting the Transaction Information to N number of block chain node, and N is greater than 3;
If multiple according to what is received after the completion of the event server determines the transaction results processing of the Transaction Information
Transaction results determine push as a result, and the push result is sent to Subscriber, the Subscriber uses default
Subscription rules registered with the event server.
In the embodiment of the present invention, multiple block chain nodes are had received in event server for same transaction information
After transaction results, after determining that the Transaction Information has been the Transaction Information being disposed, believed according to the transaction having been received
The transaction results of breath come determine to Subscriber push the Transaction Information final transaction results, with prior art phase
Than Subscriber is able to receive directly the transaction results that event server has carried out decision, enables Subscriber
Quick response transaction results, and the event server of the method in the embodiment of the present invention can connect the subscription clothes of multiple registrations
Transaction results, can be sent to multiple Subscribers by business device, compared with prior art, can be realized the function that customization is sent
Energy.
Further, multiple transaction results that the basis receives determine push result, comprising:
The event server, which determines, whether there is inconsistent transaction results in the multiple transaction results, if so,
Determine the corresponding number of each transaction results;
Transaction results any in the largest number of transaction results are determined as the push result by the event server.
In the embodiment of the present invention, if having in the received result of event server inconsistent as a result, then will be inconsistent
As a result the more result of number in is pushed to Subscriber as transaction results, that is to say, that in embodiments of the present invention,
Event server can carry out decision according to voting mechanism, determine the transaction results of push.
Further, multiple transaction results that the basis receives determine push result, comprising:
If the event server determines that there is no inconsistent transaction results in the multiple transaction results, will be any
Transaction results are determined as the push result.
In the embodiment of the present invention, when event server determines that the transaction results received are all consistent, then select wherein
Any one result is pushed to Subscriber as transaction results, by the transaction results, and event server only ties a transaction
Fruit is pushed to Subscriber, reduces the bandwidth utilization rate of Subscriber.
Further, the event server determines that the transaction results processing of the Transaction Information is completed, comprising:
Believe if the event server has received the same transaction that is directed to that P block chain node is sent within the set time
The transaction results of breath, and P/N is more than or equal to preset threshold, then the event server determines the transaction results of the Transaction Information
Processing is completed, and wherein P is less than or equal to N.
In the embodiment of the present invention, due to having used block chain node processing, the characteristic of block chain is asynchronous independent process, institute
It, then can be no longer after obtaining transaction results to have been completed processing Transaction Information when the block chain node for determining setting quantity
Receive the transaction results for being directed to the Transaction Information, it is believed that the transaction results of the Transaction Information have handled completion.
The embodiment of the present invention also provides a kind of the transaction device, comprising:
Receiving unit, the transaction results for same transaction information sent for receiving multiple block chain nodes, institute
Stating Transaction Information is that application server is sent after getting the Transaction Information to N number of block chain node, and N is greater than 3;
Push result determination unit, for if it is determined that the Transaction Information transaction results processing after the completion of, according to reception
To multiple transaction results determine push as a result, and the push result is sent to Subscriber, the Subscriber
It is registered using preset subscription rules with event server.
In the embodiment of the present invention, the transaction that multiple block chain nodes are directed to same transaction information is had received in receiving unit
As a result after, result determination unit is pushed after determining that the Transaction Information has been the Transaction Information being disposed, according to having connect
The transaction results of the Transaction Information received come determine to Subscriber push the Transaction Information final transaction results, with
The prior art is compared, and Subscriber is able to receive directly the transaction results that push result determination unit has carried out decision, is made
It obtains Subscriber and is enable to respond quickly transaction results, and can connect the subscription service of multiple registrations in the embodiment of the present invention
Transaction results can be sent to multiple Subscribers by device, compared with prior art, can be realized the function that customization is sent.
Further, the push result determination unit is specifically used for:
It determines with the presence or absence of inconsistent transaction results in the multiple transaction results, if so, determining each transaction results
Corresponding number;
Transaction results any in the largest number of transaction results are determined as the push result.
Further, the push result determination unit is specifically used for:
If it is determined that inconsistent transaction results are not present in the multiple transaction results, then any transaction results are determined as
The push result.
Further, the push result determination unit is specifically used for:
If having received the transaction results for same transaction information of P block chain node transmission within the set time,
And P/N is more than or equal to preset threshold, it is determined that the transaction results of the Transaction Information, which are handled, to be completed, and wherein P is less than or equal to N.
Further, the receiving unit is specifically used for:
Receive the subscription information of the Subscriber;
According to the identification information of the subscription Transaction Information in the subscription information and the mark letter of the Subscriber
Breath determines the Subscriber and the binding relationship for subscribing to Transaction Information.
The embodiment of the present invention also provides a kind of electronic equipment, comprising:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
A processor executes, so that at least one described processor is able to carry out any method in above-described embodiment.
The embodiment of the present invention also provides a kind of non-transient computer readable storage medium, and the non-transient computer is readable to deposit
Storage media stores computer instruction, and the computer instruction is for making the computer execute any side in above-described embodiment
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 any creative labor, it can also be obtained according to these attached drawings
His attached drawing.
Fig. 1 is a kind of flow diagram of method of commerce provided in an embodiment of the present invention;
Fig. 2 is the structural schematic diagram of application server provided in an embodiment of the present invention and block platform chain;
Fig. 3 is the structural schematic diagram of application server provided in an embodiment of the present invention and block platform chain;
Fig. 4 (a) is the structural schematic diagram of application server provided in an embodiment of the present invention and block platform chain;
Fig. 4 (b) is the structural schematic diagram of application server provided in an embodiment of the present invention and block platform chain;
Fig. 5 is a kind of flow diagram of method of commerce provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of the transaction device provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of a kind of electronic equipment 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 the described embodiments are only some 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.
The present invention provides a kind of method of commerce, as described in Figure 1, is suitable for including N number of block chain node and Event Service
The block platform chain of device, comprising:
Step 101, the event server receives the friendship for same transaction information that multiple block chain nodes are sent
Easily as a result, the Transaction Information is that application server is sent after getting the Transaction Information to N number of block chain node
, N is greater than 3;
Step 102, if the event server determine the Transaction Information transaction results processing after the completion of, according to reception
To multiple transaction results determine push as a result, and the push result is sent to Subscriber, the Subscriber
It is registered using preset subscription rules and the event server.
In a step 101, event server is connected with each block chain node, constitutes block platform chain, block platform chain
Be connected with application server, as shown in Fig. 2, Transaction Information is sent to block platform chain by application server, block platform chain into
Row processing.
Optionally, as shown in figure 3, event server is connected with each block chain node, application server and Event Service
Device and block chain node are connected, and Transaction Information is sent to block chain node by application server, and block chain node is directed to the friendship
Easy information is handled, and result is sent to event server by treated.
In a step 102, completion has been handled for the transaction results of the Transaction Information when event server is determined, then root
Push is determined according to the multiple transaction results received as a result, and push result is sent to Subscriber.
In embodiments of the present invention, Subscriber refers to being infused by preset subscription rules with event server
The server of volume, optionally, in embodiments of the present invention, each Subscriber requires to be registered with event server,
The process of registration can be Subscriber and send subscription message to event server, and event server, which determines, to be subscribed in message
The identification information of Transaction Information and the identification information of Subscriber, that is to say, that Subscriber can will need which is received
The case where transaction results of a little Transaction Informations, tells event server, and then event server is according to ordering in the subscription information
The identification information of the identification information and the Subscriber of readding Transaction Information determines the Subscriber and described orders
The binding relationship for readding Transaction Information, after event server has determined the transaction results of some Transaction Information, according to binding relationship
It determines the corresponding Subscriber of the transaction results, which is pushed to corresponding Subscriber.
Optionally, in embodiments of the present invention, Subscriber can be multiple servers, is also possible to transmission transaction and disappears
The application server of breath.Such as application server, Subscriber and block platform chain in Fig. 4 (a), application server will
Transaction Information is sent to block platform chain, and block platform chain carries out decision after treatment, by event server, and will be after decision
Transaction results be sent to application server and Subscriber 1 and Subscriber 2;Or it as shown in Fig. 4 (b), answers
Transaction Information is sent to block platform chain with server, block platform chain carries out decision after treatment, by event server,
And the transaction results after decision are sent to Subscriber 1.
In embodiments of the present invention, event server by which Subscriber is transaction results be sent to is advised according to subscription
Then and the application server Transaction Information that sends determines, so in embodiments of the present invention, can be realized customization service.
Optionally, in embodiments of the present invention, event server carries out there are many ways to decision, can be by different
Decision configuration information or decision configuration-direct carry out decision switching,
In embodiments of the present invention, the decision-making technique that event server can be used can have event server according to reception
To the tandem of block chain node determine that the transaction results of the Transaction Information or event server determine time threshold,
When time threshold reaches, using newest received transaction results as push as a result, event server according to receiving
Multiple transaction results determine the transaction results pushed in multiple transaction results by strobe utility.
In embodiments of the present invention, event server can be push knot in the transaction results for determining some reception sequence
Fruit, for example, the event server transaction results that definitely 2 block chain nodes are sent are push result;Event server can be with
Timer is set, when at a time reaching, using recently received transaction results as push result.
In embodiments of the present invention, event server is determined according to the multiple transaction results received by strobe utility
The transaction results pushed in multiple transaction results, specifically, when event server receives multiple transaction results, event clothes
Business device determines whether there are inconsistent transaction results in transaction results, and inconsistent transaction results may be due in block chain
It is that node of doing evil generates as a result, so correctness in order to guarantee result, will be filtered processing in embodiments of the present invention.
In embodiments of the present invention, event server is then said if it is determined that there are inconsistent transaction results in transaction results
There is node of doing evil in the block chain node of area pellucida, then there are two types of results for the transaction results that event server determines;The first is to work as thing
Part server can determine the transaction results in transaction results more than number, then event server will be in the transaction results more than number
Any result is pushed to Subscriber as transaction results, for example, being directed to Transaction Information A, event server has obtained first
Transaction results, the second transaction results and third transaction results, and event server has determined the number of the first transaction results
It is 9, the number of the second transaction results is 2, and the number of third transaction results is 1, then event server determines the first transaction results
In any transaction results as transaction results, be pushed to Subscriber;It is for second, when event server can not determine
Transaction results in transaction results more than number, it is determined that the Fail Transaction sends Fail Transaction information to Subscriber, example
Such as, for Transaction Information A, event server has obtained the first transaction results, the second transaction results and third transaction results, and
And event server has determined that the number of the first transaction results is 3, the number of the second transaction results is 4, third transaction results
Number is 4, and event server determines Transaction Information A Fail Transaction, and event server sends Fail Transaction information to subscription service
Device.
Optionally, in embodiments of the present invention, for the first situation, when event server can determine in transaction results
Transaction results more than number, and it is pre- to determine that the ratio between the number of the largest number of transaction results and the number of All Activity result are greater than
If threshold value, then any result in the transaction results more than number is pushed to subscription service as transaction results by event server
Device.
When event server determines that there is no inconsistent as a result, then event server is gone in received all results
It operates again, any one transaction results is selected to be sent to Subscriber, compared with prior art, subscription service as push result
Device or application server do not need to receive multiple transaction results, but directly receive a determining transaction results, provide
The response speed of application server or Subscriber, and it is not take up excessive bandwidth.
In the present invention is implemented, event server has decision making function, can be further reduced different application servers
Need to carry out the development process of decision making function, so that block platform chain is in being linked into different application servers, it can be real
Existing decision making function.
Optionally, in embodiments of the present invention, due to the process that block chain is asynchronous independent process, event server is being connect
After receiving the transaction results that a certain number of block chain nodes are sent, so that it may think that the transaction results of the Transaction Information have been located
Reason finishes, and then no longer receives the transaction results for being directed to the Transaction Information later, has on the one hand been to speed up the processing speed of Transaction Information
Degree and feedback speed, are on the other hand to have saved Internet resources.
In embodiments of the present invention, if event server has received the needle of P block chain node transmission within the set time
To the transaction results of same transaction information, and P/N is more than or equal to preset threshold, then event server determines the friendship of Transaction Information
Easy result treatment is completed, and wherein P is less than or equal to N.
For example, in embodiments of the present invention, event server and block chain node when being attached, available block
The quantity N of chain node, event server determine that P/N is greater than after the Transaction Information for receiving the transmission of the P block chain node
In preset threshold, then it is assumed that the transaction results of the Transaction Information, which are handled, to be completed.
In embodiments of the present invention, if event server is when setting time reaches, it is not connected to P block chain node hair
The transaction results for same transaction information sent, it is determined that transaction information trading failure, event server, which is sent, to be handed over
Easy failure information is to Subscriber.
One of embodiment method of commerce to facilitate the understanding of the present invention, herein for example, as shown in figure 5, block
Platform chain includes 4 block chain nodes and an event server, preset threshold 0.75, comprising:
Step 501, event server receives the note that application server A, application server B and application server C are sent
It is Transaction Information A that volume message, which includes the Transaction Information subscribed in registration message, event server by application server A, using clothes
Business device B and application server C and Transaction Information A establish binding relationship;
Step 502, application server A sends Transaction Information A to block chain node;
Step 503, each block chain node processing Transaction Information A, obtains transaction results;
Step 504, event server receives the transaction results that each block chain node is sent;
Step 505, event server determines the number for the transaction results that the block chain node received is sent within the set time
Whether the ratio between amount and block chain node total number are more than or equal to preset threshold 0.75, if so, thening follow the steps 506, otherwise return to step
Rapid 504;
Step 506, whether event server determines inconsistent transaction results in transaction results, if so, then executing step
Rapid 507, it is no to then follow the steps 508;
Step 507, event server determines the number of every kind of transaction results, by any knot in the transaction results more than number
Fruit is determined as push as a result, executing step 509;
Step 508, any result in transaction results is determined as push as a result, executing step 509 by event server;
Step 509, the transaction results of Transaction Information A are sent to application server A, application server B by event server
And application server C.
Based on same design, the embodiment of the present invention also provides a kind of the transaction device, is suitable for including N number of block chain node
And the block platform chain of event server, as shown in Figure 6, comprising:
Receiving unit 601, the transaction results for same transaction information sent for receiving multiple block chain nodes,
The Transaction Information is that application server is sent after getting the Transaction Information to N number of block chain node, and N is greater than
3;
Result determination unit 602 is pushed, for if it is determined that after the completion of the transaction results processing of the Transaction Information, according to connecing
The multiple transaction results received determine push as a result, and the push result is sent to Subscriber, the subscription service
Device is registered using preset subscription rules with event server.
Further, the push result determination unit 602 is specifically used for:
It determines with the presence or absence of inconsistent transaction results in the multiple transaction results, if so, determining each transaction results
Corresponding number;
Transaction results any in the largest number of transaction results are determined as the push result.
Further, the push result determination unit 602 is specifically used for:
If it is determined that inconsistent transaction results are not present in the multiple transaction results, then any transaction results are determined as
The push result.
Further, the push result determination unit 602 is specifically used for:
If having received the transaction results for same transaction information of P block chain node transmission within the set time,
And P/N is more than or equal to preset threshold, it is determined that the transaction results of the Transaction Information, which are handled, to be completed, and wherein P is less than or equal to N.
Further, the receiving unit specific 601 is used for:
Receive the subscription information of the Subscriber;
According to the identification information of the subscription Transaction Information in the subscription information and the mark letter of the Subscriber
Breath determines the Subscriber and the binding relationship for subscribing to Transaction Information.
The embodiment of the invention provides a kind of electronic equipment, including at least one processing unit and at least one storage list
Member, wherein the storage unit is stored with computer program, when described program is executed by the processing unit, so that described
Processing unit executes the step of operation method.As shown in fig. 7, for the hardware configuration of electronic equipment described in the embodiment of the present invention
Schematic diagram, the electronic equipment are specifically as follows desktop computer, portable computer, smart phone, tablet computer etc..Specifically
Ground, the electronic equipment may include memory 701, the computer program of processor 702 and storage on a memory, the processing
The step of device 702 realizes any method of commerce in above-described embodiment when executing described program.Wherein, memory 701 can wrap
Read-only memory (ROM) and random access memory (RAM) are included, and the program stored in memory 701 is provided to processor 702
Instruction and data.
Further, electronic equipment described in the embodiment of the present application can also include input unit 703 and output dress
Set 704 etc..Input unit 703 may include keyboard, mouse, touch screen etc.;Output device 704 may include display equipment, such as
Liquid crystal display, cathode-ray tube (Cathode Ray Tube, CRT), touch screen etc..Memory 701, processor 702, input
Device 703 can be connected with output device 704 by bus or other modes, in Fig. 7 for being connected by bus.Processing
Device 702 calls the program instruction of the storage of memory 701 and executes operation provided by the above embodiment according to the program instruction of acquisition
Method.
The embodiment of the present application provides a kind of computer program product, and the computer program product is non-temporary including being stored in
Calculation procedure on state computer readable storage medium, the computer program include program instruction, when described program instructs quilt
When computer executes, the computer is made to execute any of the above-described method of commerce.
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 (12)
1. a kind of method of commerce, which is characterized in that the block chain suitable for including N number of block chain node and event server is flat
Platform, which comprises
The event server receives the transaction results for same transaction information that multiple block chain nodes are sent, the friendship
Easy information is that application server is sent after getting the Transaction Information to N number of block chain node, and N is greater than 3;
If after the completion of the event server determines the transaction results processing of the Transaction Information, according to the multiple transaction received
As a result determine push as a result, and the push result is sent to Subscriber, the Subscriber is ordered using preset
Rule is read to be registered with the event server.
2. the method according to claim 1, wherein multiple transaction results that the basis receives determine push
As a result, comprising:
The event server is determined with the presence or absence of inconsistent transaction results in the multiple transaction results, if so, determining
The corresponding number of each transaction results;
Transaction results any in the largest number of transaction results are determined as the push result by the event server.
3. the method according to claim 1, wherein multiple transaction results that the basis receives determine push
As a result, comprising:
If the event server determines that there is no inconsistent transaction results in the multiple transaction results, by any transaction
As a result it is determined as the push result.
4. the method according to claim 1, wherein the event server determines the transaction of the Transaction Information
Result treatment is completed, comprising:
If the event server have received that P block chain node send within the set time for same transaction information
Transaction results, and P/N is more than or equal to preset threshold, then the event server determines the transaction results processing of the Transaction Information
It completes, wherein P is less than or equal to N.
5. the method according to claim 1, wherein the preset subscription rules include subscribing to Transaction Information
Identification information, the Subscriber are registered using preset subscription rules and the event server, comprising:
The event server receives the subscription information of the Subscriber;
Identification information and the subscription service of the event server according to the subscription Transaction Information in the subscription information
The identification information of device determines the Subscriber and the binding relationship for subscribing to Transaction Information.
6. a kind of the transaction device, which is characterized in that the block chain suitable for including N number of block chain node and event server is flat
Platform, including
Receiving unit, the transaction results for same transaction information sent for receiving multiple block chain nodes, the friendship
Easy information is that application server is sent after getting the Transaction Information to N number of block chain node, and N is greater than 3;
Push result determination unit, for if it is determined that the Transaction Information transaction results processing after the completion of, according to what is received
Multiple transaction results determine push as a result, and the push result is sent to Subscriber, the Subscriber use
Preset subscription rules are registered with event server.
7. device according to claim 6, which is characterized in that the push result determination unit is specifically used for:
It determines with the presence or absence of inconsistent transaction results in the multiple transaction results, if so, determining that each transaction results are corresponding
Number;
Transaction results any in the largest number of transaction results are determined as the push result.
8. device according to claim 6, which is characterized in that the push result determination unit is specifically used for:
If it is determined that inconsistent transaction results are not present in the multiple transaction results, then any transaction results are determined as described
Push result.
9. device according to claim 6, which is characterized in that the push result determination unit is specifically used for:
If having received the transaction results for same transaction information of P block chain node transmission within the set time, and P/N
More than or equal to preset threshold, it is determined that the transaction results of the Transaction Information, which are handled, to be completed, and wherein P is less than or equal to N.
10. the method according to claim 1, wherein the receiving unit is specifically used for:
Receive the subscription information of the Subscriber;
Identification information according to the identification information of the subscription Transaction Information in the subscription information and the Subscriber is true
The fixed Subscriber and the binding relationship for subscribing to Transaction Information.
11. a kind of terminal device, which is characterized in that including at least one processing unit and at least one storage unit,
In, the storage unit is stored with computer program, when described program is executed by the processing unit, so that the processing is single
First perform claim requires the step of 1~5 any claim the method.
12. a kind of computer-readable medium, which is characterized in that it is stored with the computer program that can be executed by terminal device, when
When described program is run on the terminal device, so that the terminal device perform claim requires the step of 1~5 any the method
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811405661.7A CN109559225B (en) | 2018-11-23 | 2018-11-23 | Transaction method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811405661.7A CN109559225B (en) | 2018-11-23 | 2018-11-23 | Transaction method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109559225A true CN109559225A (en) | 2019-04-02 |
CN109559225B CN109559225B (en) | 2021-12-21 |
Family
ID=65867328
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811405661.7A Active CN109559225B (en) | 2018-11-23 | 2018-11-23 | Transaction method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109559225B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111190754A (en) * | 2019-12-30 | 2020-05-22 | 联动优势(北京)数字科技有限公司 | Block chain event notification method and block chain system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106485495A (en) * | 2016-09-18 | 2017-03-08 | 江苏通付盾科技有限公司 | Transaction Information method for subscribing, device, server and system |
CN106611061A (en) * | 2016-12-29 | 2017-05-03 | 北京众享比特科技有限公司 | Database write-in method and system based on block chain network |
CN107358417A (en) * | 2017-06-23 | 2017-11-17 | 现在(北京)支付股份有限公司 | The method of payment supervised based on block chain technology |
CN108256859A (en) * | 2018-01-02 | 2018-07-06 | 中国工商银行股份有限公司 | Financial product transaction common recognition method, node and system based on block chain |
CN108615152A (en) * | 2018-04-25 | 2018-10-02 | 合肥惠科金扬科技有限公司 | A kind of transaction system based on block chain |
US20180308161A1 (en) * | 2017-04-20 | 2018-10-25 | The Bank of lwate, Ltd. | Trading information providing system that provides trading information provided by plural financial institutions to business operator, server apparatus, and node apparatus |
CN108776929A (en) * | 2018-04-02 | 2018-11-09 | 成都云创智融科技有限公司 | Bill processing method, system based on block chain database and readable storage medium storing program for executing |
-
2018
- 2018-11-23 CN CN201811405661.7A patent/CN109559225B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106485495A (en) * | 2016-09-18 | 2017-03-08 | 江苏通付盾科技有限公司 | Transaction Information method for subscribing, device, server and system |
CN106611061A (en) * | 2016-12-29 | 2017-05-03 | 北京众享比特科技有限公司 | Database write-in method and system based on block chain network |
US20180308161A1 (en) * | 2017-04-20 | 2018-10-25 | The Bank of lwate, Ltd. | Trading information providing system that provides trading information provided by plural financial institutions to business operator, server apparatus, and node apparatus |
CN107358417A (en) * | 2017-06-23 | 2017-11-17 | 现在(北京)支付股份有限公司 | The method of payment supervised based on block chain technology |
CN108256859A (en) * | 2018-01-02 | 2018-07-06 | 中国工商银行股份有限公司 | Financial product transaction common recognition method, node and system based on block chain |
CN108776929A (en) * | 2018-04-02 | 2018-11-09 | 成都云创智融科技有限公司 | Bill processing method, system based on block chain database and readable storage medium storing program for executing |
CN108615152A (en) * | 2018-04-25 | 2018-10-02 | 合肥惠科金扬科技有限公司 | A kind of transaction system based on block chain |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111190754A (en) * | 2019-12-30 | 2020-05-22 | 联动优势(北京)数字科技有限公司 | Block chain event notification method and block chain system |
CN111190754B (en) * | 2019-12-30 | 2023-08-11 | 联动优势科技有限公司 | Block chain event notification method and block chain system |
Also Published As
Publication number | Publication date |
---|---|
CN109559225B (en) | 2021-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110276182B (en) | API distributed current limiting realization method | |
CN107483418A (en) | Login process method, method for processing business, device and server | |
CN108510389A (en) | Intelligent contract call method, equipment and readable storage medium storing program for executing based on block chain | |
CN107707488A (en) | Pay on-line transaction flow control methods, current limliting service end and client | |
CN105933266A (en) | Verification method and server | |
CN105468302B (en) | A kind of method, apparatus and system of processing data | |
CN108280761A (en) | Increase letter side's distribution method, device, computer equipment and storage medium | |
CN111163130A (en) | Network service system and data transmission method thereof | |
CN110458559A (en) | Transaction data processing method, device, server and storage medium | |
CN110400217A (en) | The regular changing process method and device of intelligent contract | |
AU2014414041A1 (en) | Techniques for contextual mobile data access | |
CN109325744B (en) | Payment processing method, payment processing device, payment processing medium and electronic equipment | |
CN104618388B (en) | Fast registration login method and corresponding resetting server, information server | |
CN107807935B (en) | Using recommended method and device | |
CN104899482A (en) | Batch request service restricting method and apparatus | |
CN105515884B (en) | A kind of method and apparatus counting flow | |
CN106899564A (en) | A kind of login method and device | |
CN106470200A (en) | A kind of auth method and relevant apparatus | |
CN111415146A (en) | Resource data processing method, device and equipment | |
CN108961034A (en) | System and method, storage medium based on user behavior certification | |
CN109559225A (en) | A kind of method of commerce and device | |
CN110084578A (en) | Method, apparatus and storage medium based on Third-party payment platform payment | |
CN114070847B (en) | Method, device, equipment and storage medium for limiting current of server | |
CN106933873A (en) | A kind of cross-platform data querying method and equipment | |
CN108833500A (en) | Service calling method, service providing method, data transferring method and server |
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 |