CN109873861A - The exchange method and device, storage medium and electronic equipment of transregional piece of chain node - Google Patents
The exchange method and device, storage medium and electronic equipment of transregional piece of chain node Download PDFInfo
- Publication number
- CN109873861A CN109873861A CN201910025553.5A CN201910025553A CN109873861A CN 109873861 A CN109873861 A CN 109873861A CN 201910025553 A CN201910025553 A CN 201910025553A CN 109873861 A CN109873861 A CN 109873861A
- Authority
- CN
- China
- Prior art keywords
- node
- registration information
- block chain
- target topic
- under
- 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
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
This disclosure relates to block chain technical field, and in particular to a kind of exchange method and device, computer readable storage medium and electronic equipment of transregional piece of chain node, which comprises create target topic in theme server-side;Receive and store the registration information that the node on the first block chain is published under target topic by across chain server-side;And receive and store the current message that the second block chain is published under target topic;Read the node on the corresponding first block chain of registration information under target topic, destination node is determined according to the current attribute of the node on the corresponding first block chain of registration information under target topic, and current message is distributed to destination node by across chain server-side.The purpose for receiving the message of multiple second block chain publications simultaneously may be implemented in the technical solution of the embodiment of the present disclosure, client parallel multiple block chain nodes or the process constantly switched between each block chain node simultaneously are avoided, and then avoids aggravating the load of client.
Description
Technical field
This disclosure relates to block chain technical field, in particular to the exchange method and dress of a kind of transregional piece of chain node
It sets, computer readable storage medium and electronic equipment.
Background technique
Block chain technology is a kind of distributed data base technique for going neutralisation, and in same block chain, data, which have, is gone
Centralization, it is open and clear, can not distort, the various features such as trusted.However, these features are only applicable to single block chain, it is right
For client, if thinking to issue or subscribe to simultaneously the message of multiple block chains, need to become simultaneously the section of multiple block chains
Point.For this purpose, client needs registered respectively in multiple block chains, and then respectively as the node of some block chain publication or
Subscribe to the message of corresponding block chain.This method needs client while parallel multiple block chain nodes or in each block chain link
Constantly switch between point, has aggravated the load of client.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part
Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The exchange method and device, computer-readable storage medium for being designed to provide a kind of transregional piece of chain node of the disclosure
Matter and electronic equipment, and then overcome at least to a certain extent due to parallel multiple block chain nodes simultaneously or in each block chain
The problem of load caused by constantly switching between node increases.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure
Practice and acquistion.
According to the disclosure in a first aspect, providing a kind of exchange method of transregional piece of chain node, comprising: in theme service
Target topic is created on end;The node received and stored on the first block chain is published on the target topic by across chain server-side
Under registration information;And receive and store the current message that the second block chain is published under the target topic;Described in reading
The node on the corresponding first block chain of registration information under target topic, it is corresponding according to the registration information under the target topic
The first block chain on the current attribute of node determine destination node, and the current message is issued by across chain server-side
To the destination node.
In a kind of exemplary embodiment of the disclosure, aforementioned schemes are based on, the current attribute of the node includes being in
Active state is in non-active state;On the corresponding first block chain of registration information read under the target topic
Node determines target section according to the current attribute of the node on the corresponding first block chain of registration information under the target topic
Point, comprising: read the node on the corresponding first block chain of the registration information under the target topic and judge that the node is worked as
It is preceding whether to be in active state;If the node is currently at active state, destination node is configured by the node.
In a kind of exemplary embodiment of the disclosure, aforementioned schemes are based on, the registration information includes persistence registration
Information and perishability registration information, the method also includes: if the node is currently at non-active state, judge the section
The type of registration information of the point under target topic;If the registration information is persistence registration information, the registration is believed
It ceases corresponding first block chain node and is configured to target node to be sent;If the registration information is perishability registration information,
Then the first block chain node corresponding to the registration information does not execute configuration operation.
In a kind of exemplary embodiment of the disclosure, be based on aforementioned schemes, the method also includes: it is to be checked measure it is described
When target node to be sent is in active state, the current message is distributed to target node to be sent, and by the target
Knot removal to be sent.
In a kind of exemplary embodiment of the disclosure, aforementioned schemes are based on, the method also includes: if detection is to the end
One target node to be sent is deleted, then is deleted the current message.
In a kind of exemplary embodiment of the disclosure, aforementioned schemes are based on, are judging the node under target topic
Registration information type after, the method also includes: if judging, registration information of each node under target topic is equal
For perishability registration information, then the current message is deleted.
In a kind of exemplary embodiment of the disclosure, aforementioned schemes are based on, if detecting the note under the target topic
Node on the corresponding first block chain of volume information is both configured to destination node, then by the current message by being taken across chain
Business end is distributed to after destination node, and the current message is deleted;And if detecting and not registered under the target topic
Information then deletes the current message.
According to the second aspect of the disclosure, a kind of interactive device of transregional piece of chain node is provided, comprising: theme creates mould
Block, for creating target topic in theme server-side;Data reception module, for receiving and storing the section on the first block chain
The registration information that point is published under the target topic by across chain server-side;And it receives and stores the second block chain and is published on
Current message under the target topic;Data processing module, it is corresponding for reading the registration information under the target topic
Node on first block chain, according to the current of the node on the corresponding first block chain of registration information under the target topic
Attribute determines destination node, and the current message is distributed to destination node by across chain server-side.
According to the third aspect of the disclosure, a kind of computer readable storage medium is provided, is stored thereon with computer journey
Sequence realizes the interaction side of the transregional piece of chain node as described in first aspect in above-described embodiment when described program is executed by processor
Method.
According to a fourth aspect of embodiments of the present disclosure, a kind of electronic equipment is provided, comprising: processor;And storage dress
It sets, for storing one or more programs, when one or more of programs are executed by one or more of processors, makes
Obtain the exchange method for the transregional piece of chain node that one or more of processors are realized as described in first aspect in above-described embodiment.
The technical solution that the embodiment of the present disclosure provides can include the following benefits:
In the exchange method of transregional piece of chain node of one kind provided by a kind of embodiment of the disclosure, in theme server-side
After creating target topic, the node received and stored on the first block chain is published under the target topic by across chain server-side
Registration information, when receiving and storing the second block chain and being published on the current message under target topic, according under target topic
The corresponding first block chain of registration information on the attribute of node determine destination node, and the second block that will be received and stored
The current message that chain is published under target topic is distributed to destination node by across chain server-side.On the one hand, due to can be in master
Multiple themes are created in topic server-side, and receive and store what the node on the first block chain was issued by across chain server-side respectively
Registration information under each theme, therefore, when occurring the message of the second block chain publication under each theme, theme server-side will
Message under each theme is distributed on the corresponding first block chain of registration information under each theme respectively by across chain server-side
Node.It follows that can be realized while receiving multiple when any node on the first block chain registers multiple themes simultaneously
The purpose of the message of second block chain publication avoids client while parallel multiple block chain nodes or in each block chain link
The process constantly switched between point, and then avoid aggravating the load of client.On the other hand, by theme server-side actively by target
Node of the news release into the first block chain in target topic registration under theme, in the first block of target topic registration
Node in chain need not can be obtained new message by the method for activly request or poll theme, and the user experience is improved.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure
Some embodiments for those of ordinary skill in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 schematically shows a kind of flow chart of the exchange method of transregional piece of chain node in disclosure exemplary embodiment;
Fig. 2 schematically shows the registration information read under the target topic in disclosure exemplary embodiment corresponding
Node on one block chain, according to the current category of the node on the corresponding first block chain of registration information under the target topic
Property determines the flow chart of destination node method;
Fig. 3 is schematically shown in disclosure exemplary embodiment according to registration information Specific disposition target node side to be sent
The flow chart of method;
Fig. 4 schematically shows the first block chain described in disclosure exemplary embodiment and the second block chain includes more
Interworking architecture schematic diagram when a block chain;
Fig. 5 schematically shows the first block chain described in disclosure exemplary embodiment and the second block chain includes more
Interaction models schematic diagram when a block chain;
Fig. 6 schematically shows a kind of composition signal of the interactive device of transregional piece of chain node in disclosure exemplary embodiment
Figure;
Fig. 7 diagrammatically illustrates the computer system for being suitable for the electronic equipment for being used to realize disclosure exemplary embodiment
Structural schematic diagram;
Fig. 8 diagrammatically illustrates the schematic diagram of the computer readable storage medium according to some embodiments of the present disclosure.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes
Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more
Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot
Structure or characteristic can be incorporated in any suitable manner in one or more embodiments.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure
Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are function
Energy entity, not necessarily must be corresponding with physically or logically independent entity.These function can be realized using software form
Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place
These functional entitys are realized in reason device device and/or microcontroller device.
In the present example embodiment, the exchange method for providing firstly a kind of transregional piece of chain node, can be applied to across
Interaction between block chain node, the executing subject of the exchange method can be target topic server-side, be also possible to independence
Device.Refering to what is shown in Fig. 1, the exchange method of transregional piece of above-mentioned chain node may include steps of:
S110 creates target topic in theme server-side;
S120, the node received and stored on the first block chain are published under the target topic by across chain server-side
Registration information;
S130 receives and stores the current message that the second block chain is published under the target topic;
S140 reads the node on the corresponding first block chain of registration information under the target topic, according to the mesh
The current attribute of the node on the corresponding first block chain of registration information under mark theme determines destination node, and will be described current
Message is distributed to the destination node by across chain server-side.
The exchange method of transregional piece of chain node provided according to the present exemplary embodiment, on the one hand, due to this side
Method can create multiple themes in theme server-side, and receive and store the node on the first block chain respectively by taking across chain
The registration information being engaged under each theme of end publication, it is therefore, main when occurring the message of the second block chain publication under each theme
It is corresponding that message under each theme can be distributed to respectively registration information under each theme by across chain server-side by topic server-side
Node on first block chain.It follows that can be realized when any node on the first block chain registers multiple themes simultaneously
The purpose for receiving the message of multiple second block chains publication simultaneously, avoid client simultaneously parallel multiple block chain nodes or
The process constantly switched between each block chain node, and then avoid aggravating the load of client.On the other hand, by theme service
It actively by the news release under target topic to the node in the first block chain that target topic is registered, is infused in target topic at end
Node in first block chain of volume need not can be obtained new message by the method for activly request or poll theme, improve
User experience.
In the following, accompanying drawings and embodiments will be combined to each of the exchange method of transregional piece of chain node in the present exemplary embodiment
A step is described in detail.
In step s 110, target topic is created in theme server-side.
In a kind of example embodiment of the disclosure, it can be realized in theme server-side by a variety of application programming interfaces
Create multiple and different themes.For example, JMS (Java MessageService, Java Message Service) application programming interfaces,
A variety of application programming interfaces such as JDBC (Java DatabaseConnection, Java Message Service) application programming interfaces.With
For JMS application programming interfaces, JMS application programming interfaces are in a Java platform about Message Oriented Middleware (MOM)
API (Application Programming Interface, application programming interface), for two application programs it
Between or distributed system in send message, carry out asynchronous communication;Java Message Service is an API unrelated with platform specific,
Most MOM provide commercial city and provide support to JMS.It is standardized according to JMS, in this motion, class can be realized by Session interface
Example is passed to the title for needing the theme created and creates corresponding theme by calling its CreateTopic method.When
Before, the frame that mature JMS specification is realized includes Kafk, RabbitMQ, ActiveMQ, ZeroMQ, RocketMQ etc.;In theme
The target topic created in server-side can be arranged according to the publication demand of each node on the second block chain, for example, the second block
A certain node on chain is certain brand company, then can section using the brand of the said firm as target topic, on the first block chain
Commodity of the point if necessary to use the brand, then can be registered under the theme of the brand, to receive disappearing under the theme
Breath.
In the step s 120, the node received and stored on the first block chain is published on the target by across chain server-side
Registration information under theme.
In a kind of example embodiment of the disclosure, the node on the first block chain is published on by across chain server-side
The node in registration information and the first block chain under target topic corresponds, it can is looked into according to the registration information
Find the node on corresponding first block chain.For example, target topic is " mytopic ", the node 1 on the first block chain passes through
Across chain server-side can find corresponding firstth area to after issuing registration information 1 under " mytopic " according to registration information 1
Node 1 on block chain.
In step s 130, the current message that the second block chain is published under the target topic is received and stored.
In a kind of example embodiment of the disclosure, it can be realized by a variety of application programming interfaces and receive and store second
Block chain is published on the current message under target topic.For example, JMS application programming interfaces, JDBC application programming interfaces etc. are a variety of
Application programming interfaces.Still by taking above-mentioned JMS specification as an example, in this motion, the second block chain can be by MessageProducer interface
It realizes class example, by calling send method, the message " message 1 " of publication is published to the target specified in theme server-side
Theme, such as specify and be sent to " mytopic " theme.
In step S140, the node on the corresponding first block chain of registration information under the target topic, root are read
Destination node is determined according to the current attribute of the node on the corresponding first block chain of registration information under the target topic, and will
The current message is distributed to the destination node by across chain server-side.
In a kind of example embodiment of the disclosure, if the corresponding first block chain of registration information under the target topic
On node be both configured to destination node, then by the current message by across chain server-side be distributed to destination node it
Afterwards, the current message is deleted.In addition, the current message is deleted if not having registration message under the target topic.
In a kind of example embodiment of the disclosure, the current attribute of the node includes in active state or in not
Active state reads the node on the corresponding first block chain of registration information under the target topic, according to the target master
The current attribute of the node on the corresponding first block chain of registration information under topic determines destination node, referring to shown in Fig. 2, including
Following steps S210 to S220, is illustrated in detailed below:
In step S210, reads the node on the corresponding first block chain of the registration information under the target topic and sentence
The node break currently whether in active state.
In a kind of example embodiment of the disclosure, the registration information under target topic, which refers to, is receiving the second block chain hair
The registration message when message of cloth, under target topic.For example, having the first block chain node 1, the firstth area under " mytopic " theme
The registration message of block chain node 2, the first block chain node 3 receives the second block chain at this time and is published under " mytopic " theme
" message 1 ", then the registration information under " mytopic " theme for " message 1 " includes the first block chain node 1, the first block chain
Node 2, the first block chain node 3;If after receiving " message 1 " that the second block chain is published under " mytopic " theme,
It receives the first block chain node 4 and is published on " mytopic " theme registration information, the registration information of the first block chain node 4 is not
Belong to the registration information for " message 1 ", if but receiving the second block chain again after this and being published under " mytopic " theme
" message 2 ", the registration information of the first block chain node 4 belong to the registration information for " message 2 ".
In step S220, if the node is currently at active state, destination node is configured by the node.
In a kind of example embodiment of the disclosure, when there is the first block chain node under non-active state,
The method also includes following steps S310 to S330, are illustrated in detailed below:
In step s310, if the node is currently at non-active state, judge the node under target topic
The type of registration information.
In a kind of example embodiment of the disclosure, the node on the first block chain can be registered with persistence
(DeliveryMode.PERSISTENT) a certain target topic can also register (DeliveryMode.NON_ with perishability
PERSISTENT) a certain target topic.The persistence registration refers to that the node on the first block chain wishes to receive under target topic
All message of publication, but since block chain node must could receive message under active state, in the first block chain
On node when being in non-active state, the node on the first block chain is in active in the message under target topic by publication
It supplements and sends when state;The perishability registration then refers to that the node on the first block chain wishes to receive on the first block chain
The message issued under target topic when being in active state of node.Based on above content, the registration information is corresponded to be divided into and be held
Long property registration information and perishability registration information.By the way that perishability registration information is arranged, corresponding target message is not necessarily to quilt
It is recorded in stable storage, therefore reduces the load of client.
In step s 320, if the registration information is persistence registration information, by the registration information corresponding the
One block chain node is configured to target node to be sent.
It is to be checked when measuring target node to be sent and being in active state in a kind of example embodiment of the disclosure,
The current message is distributed to target node to be sent, and by target knot removal to be sent.For example, the first block chain
Node 1 issues in " mytopic " theme and is furnished with registration information, when receiving " message 1 " under " mytopic " theme, the first block
1 node of chain node is non-active state, if judging the registration information that the first block chain node 1 is issued under " mytopic " theme
When for persistence registration information, target node to be sent is configured by the first block chain node 1.When detecting the first block
When chain node 1 is that target node to be sent enlivens, it is pending that " message 1 " that receives under " mytopic " theme is distributed to target
Send node, and by target knot removal to be sent.
In a kind of example embodiment of the disclosure, if detecting, the last one target node to be sent is deleted, will
The current message is deleted.For example, the registration information under " mytopic " theme corresponds to the first block chain node 1, the first block
Chain node 2, the first block chain node 3, when receiving " message 1 ", the first block chain node 2, the first block chain node 3 are in
Non- active state judges that the first block chain node 2, the first block chain node 3 are published on the registration information under " mytopic " theme
It is persistence registration information, configures target node 2 to be sent and mesh for the first block chain node 2, the first block chain node 3
Mark node 3 to be sent.When target node 2 to be sent enlivens, " message 1 " is distributed to target node 2 to be sent and deletes mesh
Node 2 to be sent is marked, is not deleted at this time " message 1 " under " mytopic " theme, but it is active simultaneously to target node 3 to be sent
By " message 1 " to after wherein, then " message 1 " under " mytopic " theme deleted.
It is corresponding to the registration information if the registration information is perishability registration information in step S330
First block chain node does not execute configuration operation.
In a kind of example embodiment of the disclosure, if judging, registration information of each node under target topic is
Perishability registration information then deletes the current message.For example, registration information under " mytopic " theme corresponds to the
One block chain node 1, the first block chain node 2, the first block chain node 3, when receiving " message 1 ", the first block chain link
The 2, first block chain node 3 of point is in non-active state, judges that the first block chain node 2, the first block chain node 3 are published on
Registration information under " mytopic " theme is perishability registration information, then deletes the current message under target topic.
In a kind of example embodiment of the disclosure, the first block chain and the second block chain may include multiple
Block chain.When the first block chain and the second block chain include multiple block chains, disclosure exemplary embodiment
The overall architecture of the exchange method of transregional piece of chain node and whole interaction models are referring to shown in Fig. 4, Fig. 5.
It should be noted that above-mentioned attached drawing is only showing for the processing according to included by the method for disclosure exemplary embodiment
Meaning property explanation, rather than limit purpose.It can be readily appreciated that it is above-mentioned it is shown in the drawings processing do not indicate or limit these processing when
Between sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
The Installation practice of the disclosure introduced below can be used for executing the interaction of transregional piece of above-mentioned chain node of the disclosure
Method.
Referring to shown in Fig. 6, the interactive device 600 of the transregional piece of chain node includes: theme creation module 601, and data connect
Receive module 602 and data processing module 603.Wherein:
The theme creation module 601 can be used for creating target topic in theme server-side.
The node that the data reception module 602 can be used for receiving and storing on the first block chain passes through across chain server-side
The registration information being published under the target topic, and receive and store the second block chain and be published under the target topic
Current message.
The data processing module 603 can be used for reading corresponding first block of the registration information under the target topic
Node on chain is determined according to the current attribute of the node on the corresponding first block chain of registration information under the target topic
Destination node, and the current message is distributed to the destination node by across chain server-side.
In a kind of exemplary embodiment of the disclosure, aforementioned schemes are based on, the data processing module 603 can be used for
It reads the node on the corresponding first block chain of the registration information under the target topic and judges whether the node is currently located
In active state;If the node is currently at active state, destination node is configured by the node.
In a kind of exemplary embodiment of the disclosure, aforementioned schemes are based on, the data processing module 603 can be used for
If the node is currently at non-active state, the type of registration information of the node under target topic is judged;If described
Registration information is persistence registration information, then it is to be sent to configure target for the corresponding first block chain node of the registration information
Node;If the registration information is perishability registration information, the first block chain node corresponding to the registration information is not
Execute configuration operation.
In a kind of exemplary embodiment of the disclosure, aforementioned schemes are based on, the data processing module 603 can be used for
It is to be checked that the current message is distributed to target node to be sent when measuring target node to be sent and being in active state,
And by target knot removal to be sent.
In a kind of exemplary embodiment of the disclosure, aforementioned schemes are based on, the data processing module 603 can be used for
When detecting that the last one target node to be sent is deleted, the current message is deleted.
In a kind of exemplary embodiment of the disclosure, aforementioned schemes are based on, the data processing module 603 can be used for
When judging that registration information of each node under target topic is perishability registration information, the current message is deleted
It removes.
In a kind of exemplary embodiment of the disclosure, aforementioned schemes are based on, the data processing module 603 can be used for
If detecting, the node on the corresponding first block chain of the registration information under the target topic is both configured to destination node,
After the current message is distributed to destination node by across chain server-side, the current message is deleted;And if inspection
Measuring does not have registration information under the target topic, then the preceding message is deleted.
Due to transregional piece of chain node of the example embodiment of the disclosure interactive device each functional module and it is above-mentioned across
The step of example embodiment of the exchange method of block chain node, is corresponding, therefore for undisclosed in embodiment of the present disclosure
Details please refers to the embodiment of the exchange method of transregional piece of above-mentioned chain node of the disclosure.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description
Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more
Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould
The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, in an exemplary embodiment of the disclosure, additionally providing a kind of can be realized above-mentioned transregional piece of chain node
Interactive electronic equipment.
Person of ordinary skill in the field it is understood that various aspects of the disclosure can be implemented as system, method or
Program product.Therefore, various aspects of the disclosure can be with specific implementation is as follows, it may be assumed that complete hardware embodiment, completely
Software implementation (including firmware, microcode etc.) or hardware and software in terms of combine embodiment, may be collectively referred to as here
Circuit, " module " or " system ".
The electronic equipment 700 of this embodiment according to the disclosure is described below with reference to Fig. 7.The electronics that Fig. 7 is shown is set
Standby 700 be only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in fig. 7, electronic equipment 700 is showed in the form of universal computing device.The component of electronic equipment 700 can wrap
It includes but is not limited to: at least one above-mentioned processing unit 710, at least one above-mentioned storage unit 720, the different system components of connection
The bus 730 of (including storage unit 720 and processing unit 710), display unit 740.
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 710
Row, so that various according to the disclosure described in the execution of the processing unit 710 above-mentioned " illustrative methods " part of this specification
The step of exemplary embodiment.For example, the processing unit 710 can execute step S110 as shown in fig. 1: being taken in theme
Business creates target topic on end;S120: receive and store node on the first block chain be published on by across chain server-side it is described
Registration information under target topic;S130: the current message that the second block chain is published under the target topic is received and stored;
S140: the node on the corresponding first block chain of registration information under the target topic is read, according under the target topic
The corresponding first block chain of registration information on the current attribute of node determine destination node, and the current message is passed through
Across chain server-side is distributed to the destination node.
Storage unit 720 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit
(RAM) 721 and/or cache memory unit 722, it can further include read-only memory unit (ROM) 723.
Storage unit 720 can also include program/utility 724 with one group of (at least one) program module 725,
Such program module 725 includes but is not limited to: operating system, one or more application program, other program modules and
It may include the realization of network environment in program data, each of these examples or certain combination.
Bus 730 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage
Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures
Local bus.
Electronic equipment 700 can also be with one or more external equipments 770 (such as keyboard, sensing equipment, bluetooth equipment
Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 700 communicate, and/or with make
Any equipment (such as the router, modulation /demodulation that the electronic equipment 700 can be communicated with one or more of the other calculating equipment
Device etc.) communication.This communication can be carried out by input/output (I/O) interface 750.Also, electronic equipment 700 can be with
By network adapter 760 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network,
Such as internet) communication.As shown, network adapter 760 is communicated by bus 730 with other modules of electronic equipment 700.
It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 700, including but not
Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and
Data backup storage system etc..
By the description of above embodiment, those skilled in the art is it can be readily appreciated that example embodiment described herein
It can also be realized in such a way that software is in conjunction with necessary hardware by software realization.Therefore, implemented according to the disclosure
The technical solution of example can be embodied in the form of software products, which can store in a non-volatile memories
In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) or on network, including some instructions are so that a calculating equipment (can
To be personal computer, server, terminal installation or network equipment etc.) it executes according to the method for the embodiment of the present disclosure.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, energy is stored thereon with
Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the disclosure can be with
It is embodied as a kind of form of program product comprising program code, it is described when described program product is run on the terminal device
Program code is for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to the disclosure
The step of various exemplary embodiments.
With reference to Fig. 8, the program product 800 according to an embodiment of the present disclosure for realizing the above method is described, it can
To use portable compact disc read only memory (CD-ROM) and including program code, and can be in terminal device, such as individual
It is run on computer.However, the program product of the disclosure is without being limited thereto, in this document, readable storage medium storing program for executing can be any packet
Contain or store the tangible medium of program, which can be commanded execution system, device or device use or in connection
It uses.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or
System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive
List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only
Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory
(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal,
Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing
Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its
The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have
Line, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with any combination of one or more programming languages come write for execute the disclosure operation program
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating
Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far
Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network
(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP
To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of the processing according to included by the method for disclosure exemplary embodiment
It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable
Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
His embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or
Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim
It points out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the attached claims.
Claims (10)
1. a kind of exchange method of transregional piece of chain node characterized by comprising
Target topic is created in theme server-side;
Receive and store the registration information that the node on the first block chain is published under the target topic by across chain server-side;
And
Receive and store the current message that the second block chain is published under the target topic;
The node on the corresponding first block chain of registration information under the target topic is read, according under the target topic
The current attribute of node on the corresponding first block chain of registration information determines destination node, and by the current message by across
Chain server-side is distributed to the destination node.
2. the method according to claim 1, wherein the current attribute of the node include in active state or
In non-active state;Node on the corresponding first block chain of registration information read under the target topic, according to
The current attribute of the node on the corresponding first block chain of registration information under the target topic determines destination node, comprising:
It reads the node on the corresponding first block chain of the registration information under the target topic and judges that the node is currently
It is no to be in active state;
If the node is currently at active state, destination node is configured by the node.
3. according to the method described in claim 2, it is characterized in that, the registration information includes persistence registration information and non-holds
Long property registration information, the method also includes:
If the node is currently at non-active state, the type of registration information of the node under target topic is judged;
If the registration information is persistence registration information, configure the corresponding first block chain node of the registration information to
Target node to be sent.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
It is to be checked when measuring target node to be sent and being in active state, the current message is distributed to target section to be sent
Point, and by target knot removal to be sent.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
If detecting, the last one target node to be sent is deleted, and the current message is deleted.
6. according to the method described in claim 3, it is characterized in that, judging registration information of the node under target topic
Type after, the method also includes:
If judging, registration information of each node under target topic is perishability registration information, is currently disappeared described
Breath is deleted.
7. the method according to claim 1, wherein the method also includes:
If detecting, the node on the corresponding first block chain of the registration information under the target topic is both configured to target section
Point deletes the current message then after the current message is distributed to destination node by across chain server-side;And
If detecting under the target topic do not have registration information, the current message is deleted.
8. a kind of interactive device of transregional piece of chain node characterized by comprising
Theme creation module, for creating target topic in theme server-side;
Data reception module is published on the target by across chain server-side for receiving and storing the node on the first block chain
Registration information under theme;And receive and store the current message that the second block chain is published under the target topic;
Data processing module, for reading the node on the corresponding first block chain of the registration information under the target topic, root
Destination node is determined according to the current attribute of the node on the corresponding first block chain of registration information under the target topic, and will
The current message is distributed to the destination node by across chain server-side.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is by processor
The exchange method of the transregional piece of chain node as described in any one of claims 1 to 7 is realized when execution.
10. a kind of electronic equipment characterized by comprising
Processor;And
Memory, for storing one or more programs, when one or more of programs are by one or more of processors
When execution, so that one or more of processors realize the transregional piece of chain node as described in any one of claims 1 to 7
Exchange method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910025553.5A CN109873861B (en) | 2019-01-11 | 2019-01-11 | Cross-block chain node interaction method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910025553.5A CN109873861B (en) | 2019-01-11 | 2019-01-11 | Cross-block chain node interaction method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109873861A true CN109873861A (en) | 2019-06-11 |
CN109873861B CN109873861B (en) | 2022-04-12 |
Family
ID=66917557
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910025553.5A Active CN109873861B (en) | 2019-01-11 | 2019-01-11 | Cross-block chain node interaction method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109873861B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110602236A (en) * | 2019-09-20 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Node control method, node control device, and storage medium |
CN111131438A (en) * | 2019-12-20 | 2020-05-08 | 北京同邦卓益科技有限公司 | Method and apparatus for accessing block chains |
CN112511621A (en) * | 2020-11-26 | 2021-03-16 | 青岛海尔科技有限公司 | Data transmission method and device, storage medium, and electronic device |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108366105A (en) * | 2018-01-30 | 2018-08-03 | 百度在线网络技术(北京)有限公司 | Data access method, device, system and the computer-readable medium of transregional piece of chain |
CN108415784A (en) * | 2018-02-27 | 2018-08-17 | 阿里巴巴集团控股有限公司 | The exchange method and device, system, electronic equipment of transregional piece of chain |
CN108449410A (en) * | 2018-03-19 | 2018-08-24 | 深信服科技股份有限公司 | Information management method, system and relevant apparatus in a kind of cloud platform |
TW201835784A (en) * | 2016-12-30 | 2018-10-01 | 美商英特爾公司 | The internet of things |
CN108683630A (en) * | 2018-04-03 | 2018-10-19 | 阿里巴巴集团控股有限公司 | The authentication method and device, electronic equipment of transregional piece of chain |
CN108712257A (en) * | 2018-04-03 | 2018-10-26 | 阿里巴巴集团控股有限公司 | The authentication method and device, electronic equipment of transregional piece of chain |
CN108810148A (en) * | 2018-06-15 | 2018-11-13 | 青岛宇硕云联信息科技有限公司 | Cloud mobile phone interaction system, method and device based on block chain |
CN108848119A (en) * | 2018-04-03 | 2018-11-20 | 阿里巴巴集团控股有限公司 | The exchange method and device, system, electronic equipment of transregional piece of chain |
CN108900585A (en) * | 2018-06-15 | 2018-11-27 | 浙江华信区块链科技服务有限公司 | Across chain transaction consistency implementation method |
CN108984784A (en) * | 2018-07-26 | 2018-12-11 | 百度在线网络技术(北京)有限公司 | Application implementation method, device, equipment and storage medium based on block chain network |
CN108985774A (en) * | 2018-07-18 | 2018-12-11 | 百度在线网络技术(北京)有限公司 | A kind of motivational techniques, device, equipment and the storage medium of block chain network |
WO2018232493A1 (en) * | 2017-06-24 | 2018-12-27 | Zeu Crypto Networks Inc. | A network of doubly-chained blockchains capable of cross-chain transactions |
CN109167811A (en) * | 2018-07-27 | 2019-01-08 | 阿里巴巴集团控股有限公司 | A kind of across chain data access method and device based on block chain |
-
2019
- 2019-01-11 CN CN201910025553.5A patent/CN109873861B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201835784A (en) * | 2016-12-30 | 2018-10-01 | 美商英特爾公司 | The internet of things |
WO2018232493A1 (en) * | 2017-06-24 | 2018-12-27 | Zeu Crypto Networks Inc. | A network of doubly-chained blockchains capable of cross-chain transactions |
CN108366105A (en) * | 2018-01-30 | 2018-08-03 | 百度在线网络技术(北京)有限公司 | Data access method, device, system and the computer-readable medium of transregional piece of chain |
CN108415784A (en) * | 2018-02-27 | 2018-08-17 | 阿里巴巴集团控股有限公司 | The exchange method and device, system, electronic equipment of transregional piece of chain |
CN108449410A (en) * | 2018-03-19 | 2018-08-24 | 深信服科技股份有限公司 | Information management method, system and relevant apparatus in a kind of cloud platform |
CN108683630A (en) * | 2018-04-03 | 2018-10-19 | 阿里巴巴集团控股有限公司 | The authentication method and device, electronic equipment of transregional piece of chain |
CN108712257A (en) * | 2018-04-03 | 2018-10-26 | 阿里巴巴集团控股有限公司 | The authentication method and device, electronic equipment of transregional piece of chain |
CN108848119A (en) * | 2018-04-03 | 2018-11-20 | 阿里巴巴集团控股有限公司 | The exchange method and device, system, electronic equipment of transregional piece of chain |
CN108810148A (en) * | 2018-06-15 | 2018-11-13 | 青岛宇硕云联信息科技有限公司 | Cloud mobile phone interaction system, method and device based on block chain |
CN108900585A (en) * | 2018-06-15 | 2018-11-27 | 浙江华信区块链科技服务有限公司 | Across chain transaction consistency implementation method |
CN108985774A (en) * | 2018-07-18 | 2018-12-11 | 百度在线网络技术(北京)有限公司 | A kind of motivational techniques, device, equipment and the storage medium of block chain network |
CN108984784A (en) * | 2018-07-26 | 2018-12-11 | 百度在线网络技术(北京)有限公司 | Application implementation method, device, equipment and storage medium based on block chain network |
CN109167811A (en) * | 2018-07-27 | 2019-01-08 | 阿里巴巴集团控股有限公司 | A kind of across chain data access method and device based on block chain |
Non-Patent Citations (1)
Title |
---|
高飞: ""互联网非公开股权融资的风控及估值参数研究"", 《中国优秀硕士学位论文全文数据库(经济与管理科学辑)》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110602236A (en) * | 2019-09-20 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Node control method, node control device, and storage medium |
CN110602236B (en) * | 2019-09-20 | 2021-12-14 | 腾讯科技(深圳)有限公司 | Node control method, node control device, and storage medium |
CN111131438A (en) * | 2019-12-20 | 2020-05-08 | 北京同邦卓益科技有限公司 | Method and apparatus for accessing block chains |
CN111131438B (en) * | 2019-12-20 | 2023-04-07 | 北京同邦卓益科技有限公司 | Method and apparatus for accessing block chains |
CN112511621A (en) * | 2020-11-26 | 2021-03-16 | 青岛海尔科技有限公司 | Data transmission method and device, storage medium, and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN109873861B (en) | 2022-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111818136B (en) | Data processing method, device, electronic equipment and computer readable medium | |
CN103561168B (en) | A kind of method and apparatus sending voice messaging | |
CN112583931B (en) | Message processing method, message middleware, electronic device, and storage medium | |
CN109873861A (en) | The exchange method and device, storage medium and electronic equipment of transregional piece of chain node | |
US9201715B2 (en) | Event overflow handling by coalescing and updating previously-queued event notification | |
CN108965355A (en) | Method, apparatus and computer readable storage medium for data transmission | |
CN110750393B (en) | Method, device, medium and equipment for avoiding network service double-machine hot standby brain cracking | |
CN109634764A (en) | Work-flow control method, apparatus, equipment, storage medium and system | |
CN107635010A (en) | Traffic scheduling method, device, computer-readable recording medium and electronic equipment | |
CN112988223A (en) | Frame integration method and device, electronic equipment and storage medium | |
CN113553178A (en) | Task processing method and device and electronic equipment | |
US20220173977A1 (en) | Information processing method, computer-readable recording medium storing information processing program, information processing apparatus, and information processing system | |
CN113419841A (en) | Message scheduling method and device, electronic equipment and computer readable medium | |
CN109165261A (en) | Method of data synchronization, device, server and computer storage medium | |
US20230163998A1 (en) | Data processing method, device, electronic device and computer readable medium | |
CN112152879A (en) | Network quality determination method and device, electronic equipment and readable storage medium | |
CN104112056A (en) | Method and system for detecting data processing faults | |
CN109033235A (en) | A kind of data storage dual-active framework construction method, system, medium and electronic equipment | |
CN114036218A (en) | Data model switching method and device, server and storage medium | |
CN109639704B (en) | A kind of master-slave mode server system application method, system, server and storage medium | |
CN113709665A (en) | Network connection method, device, storage medium and electronic equipment | |
CN108134718B (en) | Method, apparatus, equipment and the computer storage medium of discovering device | |
CN112311842A (en) | Method and device for information interaction | |
CN109933432A (en) | Method and apparatus for sending data | |
CN110347509A (en) | Business framework access system, service request processing method, equipment and medium |
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 |