CN109669709A - A kind of data migration method and data mover system of the upgrading of block chain - Google Patents

A kind of data migration method and data mover system of the upgrading of block chain Download PDF

Info

Publication number
CN109669709A
CN109669709A CN201811416627.XA CN201811416627A CN109669709A CN 109669709 A CN109669709 A CN 109669709A CN 201811416627 A CN201811416627 A CN 201811416627A CN 109669709 A CN109669709 A CN 109669709A
Authority
CN
China
Prior art keywords
data
new
original
executable file
version
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
Application number
CN201811416627.XA
Other languages
Chinese (zh)
Other versions
CN109669709B (en
Inventor
郑森火
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Rivtower Technology Co Ltd
Original Assignee
Cryptape Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Cryptape Co ltd filed Critical Cryptape Co ltd
Priority to CN201811416627.XA priority Critical patent/CN109669709B/en
Publication of CN109669709A publication Critical patent/CN109669709A/en
Application granted granted Critical
Publication of CN109669709B publication Critical patent/CN109669709B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides the data mover systems of a kind of data migration method of block chain upgrading and the upgrading of block chain, the described method includes: configuration new version executable file, the original version executable file in original first class catalogue is replaced using new version executable file;New version executable file is executed, reads the original version historical data according to the corresponding revision scheme of original version executable file;It chooses from the original version historical data at least partly as new version historical data, is stored in new block.According to the technique and scheme of the present invention, in the later period upgrading of block chain, by block chain legacy data smooth migration to new block, so that user can still inherit the legacy data before upgrading after the upgrading of block chain;And ensure in alliance's chain, the inconsistent block chain of each block height can carry out Data Migration simultaneously.

Description

A kind of data migration method and data mover system of the upgrading of block chain
Technical field
This application involves data migration methods and Data Migration that network technique field more particularly to a kind of block chain upgrade System.
Background technique
Block chain technology is also referred to as distributed account book technology, is substantially a kind of distributed interconnection data of decentralization Library.Block chain network can be considered using the network of block chain Technical Architecture, include multiple block chain nodes in the block chain network, Either block chain node can correspond at least one block chain, and either block chain may include at least one block.
Block chain does not lose feature in the presence of never shutdown, data, can be used as a kind of distributed decentralization database pair User provides reliability services.In During Process of Long-term Operation, product has the demand repaired defect or increase new function, it is therefore desirable to right Block chain product is upgraded, but must guarantee the succession of legacy data while upgrading.The characteristics of public chain is that chain is unique , correspondingly, block height is also unique, therefore current public chain in escalation process using block height as front and back diacritical point, make It is soft bifurcated and hard branching method.
And in alliance's chain, different alliances can respectively run the block chain of oneself, and same alliance can also run a plurality of Block chain.The block height of each block chain is all since wound generation block height is zero, this is resulted in when upgrading in the later period, and block is high Degree is not unique, and there are data and logic incompatibility problem, the legacy data on chain is unable to smooth migration, therefore can not mention to user For normal service.
It needs to find a kind of data migration method, data mover system that block chain upgrades as a result, realizes the upgrading of block chain In the migration of original data smoothing, and safeguard and the query service of original chain be provided, overcome the above problem.
Summary of the invention
The embodiment of the present application provides data migration method, the data mover system of a kind of block chain upgrading, to realize area Block chain legacy data smooth migration during upgrading can be compatible with the block chain data of new early version, and safeguard and provide original chain Query service.
In order to solve the above-mentioned technical problem, the embodiment of the present application adopts the following technical solutions:
In a first aspect, providing a kind of data migration method of block chain upgrading, which comprises
New version executable file is configured, is replaced using the new version executable file original in original first class catalogue Version executable file, wherein the first class catalogue is the creation when establishing block chain for the first time, and for store on chain data and Storage address;
The new version executable file is executed, according to described in the corresponding revision scheme reading of original version executable file Original version historical data;
It chooses from the original version historical data at least partly as new version historical data, is stored in new block.
Second aspect provides a kind of data mover system of block chain upgrading, comprising:
Configuration module uses new version executable file replacement original one for configuring new version executable file Original version executable file in grade catalogue, wherein the first class catalogue is the creation when establishing block chain for the first time, and is used for Store data and storage address on chain;
Execution module, for executing the new version executable file, according to the corresponding version of original version executable file This rule reads the original version historical data;
Transferring module, for being chosen from the original version historical data at least partly as new version historical data, It is stored in new block.
The third aspect, the application provide a kind of electronic system, comprising: memory, processor and are stored in the memory Computer program that is upper and can running on the processor, the computer program execute first aspect institute by the processor The method stated.
Fourth aspect, the application provide a kind of computer readable storage medium, deposit in the computer readable storage medium Instruction is contained, when run on a computer, so that computer executes method described in first aspect.
The embodiment of the present application use at least one above-mentioned technical solution can reach it is following the utility model has the advantages that
It will be former in the later period upgrading of each block chain of alliance's chain according to the technical solution provided in the embodiment of the present application There is data smoothing to move in new block, so that user can still inherit the legacy data before upgrading after the upgrading of block chain; Ensure in alliance's chain, the inconsistent block chain of each block height can carry out Data Migration simultaneously.
Detailed description of the invention
In order to illustrate more clearly of this specification embodiment or technical solution in the prior art, below will to embodiment or Attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only The some embodiments recorded in this specification embodiment are not paying creative labor for those of ordinary skill in the art Under the premise of dynamic property, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the data migration method of block chain upgrading provided by the embodiments of the present application;
Fig. 2 is the structural schematic diagram of the data mover system of block chain provided by the embodiments of the present application upgrading;
Fig. 3 is the data flow figure of the data mover system of block chain provided by the embodiments of the present application upgrading.
Specific embodiment
To keep the purposes, technical schemes and advantages of this specification embodiment clearer, have below in conjunction with this specification The technical solution of this specification embodiment is clearly and completely described in body embodiment and corresponding attached drawing.Obviously, described Embodiment be only this specification a part of the embodiment, instead of all the embodiments.The embodiment of base in this manual, this Field those of ordinary skill every other embodiment obtained without making creative work, belongs to this explanation The range of book embodiment protection.
Below in conjunction with attached drawing, the technical solution that each embodiment of this specification provides is described in detail.
Block chain does not lose feature in the presence of never shutdown, data, can be used as a kind of distributed decentralization database pair User provides reliability services.In During Process of Long-term Operation, product has the demand repaired defect or increase new function, it is therefore desirable to right Block chain product is upgraded, but must guarantee the succession of legacy data while upgrading.The characteristics of public chain is that chain is unique , correspondingly, block height is also unique, therefore current public chain in escalation process using block height as front and back diacritical point, make It is soft bifurcated and hard branching method.
And in alliance's chain, different alliances can respectively run the block chain of oneself, and same alliance can also run a plurality of Block chain.The block height of each block chain is all since wound generation block height is zero, this is resulted in when upgrading in the later period, and block is high Degree is not unique, and there are data and logic incompatibility problem, the legacy data on chain is unable to smooth migration, therefore can not mention to user For normal service.
In view of the above problems, the embodiment of the present application provides the data migration method of block chain upgrading, decentralization application Device realizes block chain legacy data smooth migration during upgrading, and safeguards and provide the query service of original chain.
Embodiment one
Fig. 1 is a kind of flow chart of the data migration method of block chain upgrading provided by the embodiments of the present application, such as Fig. 1 institute Show, a kind of data migration method of block chain upgrading provided by the embodiments of the present application includes the following steps:
Step S1, new version executable file is configured, replaces original first class catalogue using the new version executable file In original version executable file, wherein the first class catalogue is the creation when establishing block chain for the first time, and for storing chain Upper data and storage address.
Step S2, the new version executable file is executed, according to the corresponding revision scheme of original version executable file Read the original version historical data.
Step S3, it is chosen from the original version historical data at least partly as new version historical data, deposit is new Block.
The technical solution of the present embodiment can be used for the upgrading of each block chain in alliance's chain, according to the technical side of the present embodiment Case, in the later period upgrading of each block chain of alliance's chain, by the legacy data smooth migration before block chain bifurcated to new block On, so that user can still inherit the legacy data before upgrading after the upgrading of block chain;And ensure in alliance's chain, each block Highly inconsistent block chain can carry out Data Migration simultaneously.Therefore after the upgrade, user still is able to using upgrading Preceding historical data.
Specifically, in the present embodiment, the detailed step of the data migration method of the block chain upgrading is as follows:
Block chain is established, the first class catalogue for establishing the corresponding block chain is put into the block in the first class catalogue Data and storage address on the chain of chain, and the executable text of the original version of data and storage address on the chain can be transferred Part, the block chain are operated using the original version executable file.
It should be noted that the steps necessary of the step of establishing block chain and first class catalogue and non-present invention, using this reality Apply the data migration method of example, can carry out Data Migration in the escalation process of established block chain, the present invention to this not It is limited.
New version executable file is configured, is replaced using the new version executable file original in original first class catalogue Version executable file.In the present embodiment, the original version executable file and new version executable file are block The operation file of chain manager, block chain manager replace the original in original first class catalogue using the new version executable file Beginning version executable file, the new version administrator right file can read all original versions according to original version rule Historical data.But the present invention is without limitation, the original version executable file and new version executable file may be used also Think that each node on block chain enjoys the operation file of permission jointly.
The new version executable file is executed, according to described in the corresponding revision scheme reading of original version executable file Original version historical data.Specifically, in the present embodiment, the friendship that all original version historical datas include original version is read Easy cryptographic Hash, transaction content and function of state.But the present invention is without limitation, and in other embodiments, the original of reading Beginning vncsion history data can also include transaction cryptographic Hash.
It should also be noted that, in the present embodiment, the original version rule include original version data format or Handle logic.
Specifically, in the present embodiment, the first class catalogue corresponds to multiple subdirectories, described to read according to original version rule The step of taking all original version historical datas includes: configuration text of the new version executable file in the first class catalogue Storage address is read in part, the historical data needed for being read according to the storage address to corresponding subdirectory, and by history number According to storing to the memory of current hosts, by the metadata information storage of the historical data to caching.
A kind of achievable part migration scheme, the new version executable file format that the historical data is converted into New data, and the step of being stored in new block includes: the unique identification that transaction is chosen from the historical data, by the transaction Unique identification be converted to the data of new version format, and be stored in new block.It is such to be advantageous in that, the data of conversion compared with Few, updating speed is very fast, only by the unique identification conversion of transaction, before capable of also allowing user to understand the upgrading of block chain after upgrading Important historical data.
Specifically, in the present embodiment, the unique identification is transaction cryptographic Hash.
The data of the new version executable file format in the present embodiment, and the step of being stored in new block includes: The historical data is converted according to the data format of new version.
Pass through and configure at block chain administrator end according to the data migration method that block chain provided in this embodiment upgrades New version executable file reads all original version historical datas according to original version rule;Historical data is converted into institute The new edition notebook data that new version can identify is stated, and is stored in new block, user terminal is enabled easily to retain block chain liter Historical data before grade, such as transaction data.
Especially in alliance's chain, different alliances can respectively run the block chain of oneself, and same alliance can also run A plurality of block chain.The block height of each block chain is all since wound generation block height is zero, this is resulted in when upgrading in the later period, area Block height is not unique, and there are data and logic incompatibility problem, the legacy data on chain is unable to smooth migration, and uses this implementation The data migration method for the block chain upgrading that example provides, administrator can unify to carry out history to the block chain that do not have in alliance's chain Data Migration, after the upgrade, user can easily inquire the historical data before upgrading, will not be because of user Different selections and cause Partial Block chain to be abandoned, improve the usage experience of user terminal in alliance's chain.
It should also be noted that, in the present embodiment, the new version executable file that historical data is converted into can be known Other new data, and be stored in after new block, original node on the block chain is converted into read-only node, it is described read-only Node is isolated with common recognition mechanism, trading processing and new block cochain, and maintains the query service of original node.
In the present embodiment, the data migration method of the block chain upgrading is used for the decentralization of block chain technology building Transaction system, such as bit coin electronic currency trade system, but the data migration method that the present invention upgrades the block chain Concrete application form with no restrictions.
Another achievable part migration scheme, will be chosen from the original version historical data at least partly as New version historical data, the step of being stored in new block include: the selection transaction content data from the historical data, will be described Transaction content data are converted to new edition notebook data, and are stored in new block, the transaction content data include at least transaction amount, One of intelligent contract type and creation contract type.
Such to be advantageous in that, after the upgrading of alliance's chain, user can be to the transaction content data before upgrading more Understand.
It can be seen that the above-mentioned part migration scheme being related to has carried out version conversion to partial history data, it is allowed into It is such to be advantageous in that for new version formatted data, in block chain administrator's level, for data on block chain calling with look into Ask it is more convenient, when user need call upgrading before historical data when, without the operation by administrator, can directly know Data after other version conversion.
Another achievable whole migration schemes, choose from the original version historical data at least partly as new Vncsion history data, the step of being stored in new block include: that whole historical datas are chosen from the historical data, will it is described entirely Portion's historical data is directly stored in new block as new version historical data.
As a result, when block chain upgrades, using whole historical datas as new version historical data, it is directly stored in new After block, user can still inquire the historical data.In this approach, when user has access to historical data every time, to Block chain administrator end sends inquiry request, and the history in file identification new block is executed by the new version at block chain administrator end Data provide query service for user.
Embodiment two
The embodiment of the present application provides a kind of data mover system of block chain upgrading, and Fig. 2 is provided by the embodiments of the present application The structural schematic diagram of the data mover system of block chain upgrading.With reference to Fig. 2, the data mover system of the present embodiment block chain upgrading 100, comprising:
Configuration module 10 is replaced original for configuring new version executable file using the new version executable file Original version executable file in first class catalogue., wherein the first class catalogue is the creation when establishing block chain for the first time, and For storing data and storage address on chain.
Execution module 11, it is corresponding according to original version executable file for executing the new version executable file Revision scheme reads the original version historical data.
Transferring module 12, for choosing from the original version historical data at least partly as new version history number According to being stored in new block.
The data mover system of block chain upgrading provided in this embodiment is convenient for the upgrading of each block chain in alliance's chain, According to the technical solution of the present embodiment, in the later period upgrading of each block chain of alliance's chain, using upgrade package by block chain bifurcated In legacy data smooth migration to new block before, so that user can still inherit the original before upgrading after the upgrading of block chain There are data;And ensure in alliance's chain, the inconsistent block chain of each block height can carry out Data Migration simultaneously.Therefore exist After upgrading, user still is able to using the historical data before upgrading.
Specifically, Fig. 3 is the data flow figure of the data mover system of block chain provided by the embodiments of the present application upgrading, knot The step of closing referring to figs. 2 and 3, the data mover system upgraded using block chain provided in this embodiment, carrying out Data Migration Are as follows:
Block chain 101 is established, the first class catalogue 102 of the corresponding block chain 101 is established, is deposited in the first class catalogue 102 There are data and storage address on the chain of the block chain 101, and the original of data and storage address on the chain can be transferred Version executable file 103, the block chain 101 can be operated using the original version executable file.
Specifically, in the present embodiment, institute in the present embodiment, the original version executable file 103 and new version Executable file 104 is the operation file of block chain manager, and block chain manager uses the new version executable file Original version executable file 103 in the 104 original first class catalogues 102 of replacement, the new version executable file 104 can be by All original version historical datas are read according to original version rule.But the present invention is without limitation, the original version can The operation text of permission can also be enjoyed jointly for each node on block chain by executing file 103 and new version executable file 104 Part.
The new version executable file 104 is executed, is read according to the corresponding revision scheme of original version executable file 103 Take the original version historical data.Specifically, in the present embodiment, reading all original version historical datas includes original version This transaction cryptographic Hash, transaction content and function of state.But the present invention is without limitation, in other embodiments, reads The original version historical data taken can also be only included including cryptographic Hash of trading.
It should also be noted that, in the present embodiment, the original version rule include original version data format or Handle logic.
Specifically, in the present embodiment, the corresponding multiple subdirectories of the first class catalogue 102, read according to original version rule The specifically step for taking all original version historical datas includes: the new version executable file 104 in the first class catalogue In configuration file in read storage address, according to the storage address to corresponding subdirectory read needed for historical data, And by the memory of history data store to current hosts, by the metadata information storage of the historical data to caching.
The new data for the new version executable file format that the historical data is converted into, and it is stored in the step of new block Suddenly include: the unique identification for choosing transaction from the historical data, the unique identification of the transaction is converted into new version lattice The data of formula, and it is stored in new block.Such to be advantageous in that, the data of conversion are less, and updating speed is very fast, only pass through transaction Unique identification conversion, can also be allowed after upgrading user understand block chain upgrading before important historical data.
Specifically, in the present embodiment, the unique identification is transaction cryptographic Hash.
The data of the new version executable file format in the present embodiment, and the step of being stored in new block includes: The historical data is converted according to the data format of new version.
The data mover system upgraded using block chain, at block chain administrator end, by configuring the executable text of new version Part reads all original version historical datas according to original version rule;Historical data, which is converted into the new version, to be known Other new edition notebook data, and it is stored in new block, enable user terminal easily to retain the history number before the upgrading of block chain According to, such as transaction data.
Especially in alliance's chain, different alliances can respectively run the block chain of oneself, and same alliance can also run A plurality of block chain.The block height of each block chain is all since wound generation block height is zero, this is resulted in when upgrading in the later period, area Block height is not unique, and there are data and logic incompatibility problem, the legacy data on chain is unable to smooth migration, and uses this implementation The data mover system for the block chain upgrading that example provides, administrator can unify to carry out history to the block chain that do not have in alliance's chain Data Migration, after the upgrade, user can easily inquire the historical data before upgrading, will not be because of user Different selections and cause Partial Block chain to be abandoned, improve the usage experience of user terminal in alliance's chain.
It should also be noted that, in the present embodiment, the data mover system of block chain upgrading further includes a conversion module (not shown), for being chosen from the original version historical data at least partly as new version history number in transferring module 12 After being stored in new block, original node on the block chain is converted into read-only node.
Wherein, the read-only node is isolated with common recognition mechanism, trading processing and new block cochain, and maintains original section The new data that the query service of point can identify the new version executable file that historical data is converted into, and it is stored in new block Later, original node on the block chain is converted into read-only node, the read-only node and common recognition mechanism, trading processing with And new block cochain is isolated, and maintains the query service of original node.
In the present embodiment, the data migration method of the block chain upgrading is used for the decentralization of block chain technology building Transaction system, such as bit coin electronic currency trade system, but the data migration method that the present invention upgrades the block chain Concrete application form with no restrictions.
Therefore, passed through according to the data mover system that block chain provided in this embodiment upgrades at block chain administrator end New version executable file is configured, reads all original version historical datas according to original version rule;By part or all of institute It states historical data and is converted into the new edition notebook data that the new version user right file can identify, and be stored in new block, make User terminal can easily retain the historical data before the upgrading of block chain, such as transaction data.Especially in alliance's chain, Different alliances can respectively run the block chain of oneself, and same alliance can also run a plurality of block chain.The area of each block chain Block height is all since wound generation block height is zero, this is resulted in when upgrading in the later period, and block height is not unique, there are data and patrols Incompatibility problem is collected, the legacy data on chain is unable to smooth migration, and uses the data of block chain provided in this embodiment upgrading Moving method, administrator can unify to carry out historical data migration to the block chain that do not have in alliance's chain, after the upgrade, also not Partial Block chain can be caused to be abandoned because of the different selections of user, improve the usage experience of user terminal in alliance's chain, After upgrading, user still is able to using the historical data before upgrading.
Embodiment three
The electronic system of this specification embodiment is described in detail below.In hardware view, which includes processor, Optionally further comprising internal bus, network interface, memory.Wherein, memory may include memory, such as high random access Memory (Random-Access Memory, RAM), it is also possible to further include nonvolatile memory (Non-Volatile Memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible that required for other business firmly Part.
Processor, network interface and memory can be connected with each other by internal bus, which can be industry Standard architecture (Industry Standard Architecture, ISA) bus, Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The bus can be divided into address bus, data/address bus, Control bus etc..For convenient for expression, memory, for storing program.Specifically, program may include program code, the journey Sequence code includes computer operation instruction.Memory may include memory and nonvolatile memory, and refer to processor offer Order and data.
Processor is from the then operation into memory of corresponding computer program is read in nonvolatile memory, in logical layer Decentralization application account recovery device is formed on face.Processor executes the program that memory is stored, and is specifically used for executing Performed method operation when server described previously is as executing subject.
Method disclosed in the above-mentioned embodiment embodiment illustrated in fig. 1 such as this specification can be applied in processor, Huo Zheyou Processor is realized.Processor may be a kind of IC chip, the processing capacity with signal.It is above-mentioned during realization Each step of method can be completed by the integrated logic circuit of the hardware in processor or the instruction of software form.Above-mentioned Processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;Can also be digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate Array (Field-Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or crystalline substance Body pipe logical device, discrete hardware components.It may be implemented or execute disclosed each method, the step in this specification embodiment And logic diagram.General processor can be microprocessor or the processor is also possible to any conventional processor etc..Knot The step of closing method disclosed in this specification embodiment can be embodied directly in hardware decoding processor and execute completion, Huo Zheyong Hardware and software module combination in decoding processor execute completion.Software module can be located at random access memory, flash memory, read-only The storage medium of this fields such as memory, programmable read only memory or electrically erasable programmable memory, register maturation In.The storage medium is located at memory, and processor reads the information in memory, and the step of the above method is completed in conjunction with its hardware Suddenly.
The method that the electronic system can also carry out Fig. 1, and realize the function of decentralization application system embodiment shown in Fig. 1 Can, details are not described herein for this specification embodiment.
Certainly, other than software realization mode, other realization sides are not precluded in the electronic system of this specification embodiment Formula, such as logical device or the mode of software and hardware combining etc., that is to say, that the executing subject of following process flow is simultaneously unlimited Due to each logic unit, it is also possible to hardware or logical device.
Example IV
This specification embodiment also provides a kind of computer readable storage medium, the computer-readable recording medium storage One or more programs, one or more of programs are when the electronic system for being included multiple application programs executes, so that institute It states electronic system and executes method described in embodiment one.Details are not described herein.
Wherein, the computer readable storage medium, such as read-only memory (Read-Only Memory, ROM), at random Access memory (Random Access Memory, RAM), magnetic or disk etc..
In short, being not intended to limit this specification the foregoing is merely the preferred embodiment of this specification embodiment The protection scope of embodiment.It is all this specification embodiment spirit and principle within, made any modification, equivalent replacement, Improve etc., it should be included within the protection scope of this specification embodiment.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment The combination of equipment.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
Various embodiments are described in a progressive manner in this specification embodiment, identical phase between each embodiment As partially may refer to each other, each embodiment focuses on the differences from other embodiments.Especially for For system embodiment, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to method The part of embodiment illustrates.

Claims (10)

1. a kind of data migration method of block chain upgrading, which is characterized in that the described method includes:
New version executable file is configured, the original version in original first class catalogue is replaced using the new version executable file Executable file, wherein the first class catalogue is the creation when establishing block chain for the first time, and for storing data and storage on chain Address;
The new version executable file is executed, is read according to the corresponding revision scheme of original version executable file described original Vncsion history data;
It chooses from the original version historical data at least partly as new version historical data, is stored in new block.
2. the method as described in claim 1, which is characterized in that choose from the original version historical data and at least partly make For new version historical data, it is stored in new block, is specifically included:
The unique identification that transaction is chosen from the original version historical data is converted to the unique identification of the transaction described The data of new version executable file format, and it is stored in new block;
Alternatively,
It all regard the original version historical data as new version historical data, is stored in new block.
3. method according to claim 1 or 2, which is characterized in that chosen at least from the original version historical data Part is used as new version historical data, is stored in after new block, the method also includes:
Original node on the block chain is converted into read-only node;Wherein, the read-only node and common recognition mechanism, at transaction Reason and new block cochain are isolated, and maintain the query service of original node.
4. the method as described in claim 1, which is characterized in that read according to the corresponding revision scheme of original version executable file When taking the original version historical data, reading of content is included at least:
One of transaction cryptographic Hash, transaction content and function of state or combination.
5. method according to claim 2, which is characterized in that the corresponding revision scheme of the original version executable file is extremely It less include: the data format or processing logic of original version executable file.
6. a kind of data mover system of block chain upgrading, which is characterized in that the system comprises:
Configuration module replaces original level-one mesh using the new version executable file for configuring new version executable file Original version executable file in record, wherein the first class catalogue is the creation when establishing block chain for the first time, and for storing Data and storage address on chain;
Execution module is advised for executing the new version executable file according to the corresponding version of original version executable file Then read the original version historical data;
Transferring module, for being chosen from the original version historical data at least partly as new version historical data, deposit New block.
7. system as claimed in claim 6, which is characterized in that the transferring module is specifically used for:
The unique identification that transaction is chosen from the original version historical data is converted to the unique identification of the transaction described The data of new version executable file format, and it is stored in new block;
Alternatively,
It all regard the original version historical data as new version historical data, is stored in new block.
8. system as claimed in claims 6 or 7, which is characterized in that the system also includes:
Conversion module, for being chosen from the original version historical data at least partly as new version history in transferring module Data are stored in after new block, and original node on the block chain is converted to read-only node;
Wherein, the read-only node is isolated with common recognition mechanism, trading processing and new block cochain, and maintains original node Query service.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor, memory and is stored on the memory And the computer program that can be run on the processor, such as claim 1- is realized when which is executed by the processor The step of any one of 5 the method.
10. a kind of computer readable storage medium, which is characterized in that computer program is stored on computer readable storage medium, It is realized when the computer program is executed by processor such as the step of any one of claim 1-5 the method.
CN201811416627.XA 2018-11-26 2018-11-26 Data migration method and data migration system for block chain upgrading Active CN109669709B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811416627.XA CN109669709B (en) 2018-11-26 2018-11-26 Data migration method and data migration system for block chain upgrading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811416627.XA CN109669709B (en) 2018-11-26 2018-11-26 Data migration method and data migration system for block chain upgrading

Publications (2)

Publication Number Publication Date
CN109669709A true CN109669709A (en) 2019-04-23
CN109669709B CN109669709B (en) 2022-04-08

Family

ID=66143299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811416627.XA Active CN109669709B (en) 2018-11-26 2018-11-26 Data migration method and data migration system for block chain upgrading

Country Status (1)

Country Link
CN (1) CN109669709B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134668A (en) * 2019-04-28 2019-08-16 阿里巴巴集团控股有限公司 Data migration method, device and equipment applied to block chain
CN110287170A (en) * 2019-06-28 2019-09-27 杭州复杂美科技有限公司 Database upgrade method, status data call method, equipment and storage medium
CN110392042A (en) * 2019-06-19 2019-10-29 深圳壹账通智能科技有限公司 System environments resource allocation information acquisition methods, device and block chain node
CN111506327A (en) * 2020-04-15 2020-08-07 深圳市网心科技有限公司 Block chain node hot upgrading method and related equipment
CN111522561A (en) * 2020-03-06 2020-08-11 杜晓楠 Method, computer-readable storage medium, and DBFT network for smooth backward compatible upgrades in DBFT distributed networks
US10789222B2 (en) 2019-06-28 2020-09-29 Alibaba Group Holding Limited Blockchain-based hierarchical data storage
WO2020258855A1 (en) * 2019-06-28 2020-12-30 创新先进技术有限公司 Blockchain-based hierarchical storage method and apparatus, and electronic device
CN112540969A (en) * 2020-11-26 2021-03-23 南京纯白矩阵科技有限公司 Data migration method for intelligent contracts among heterogeneous block chains
US11036720B2 (en) 2019-06-28 2021-06-15 Advanced New Technologies Co., Ltd. Blockchain-based hierarchical data storage
CN113065867A (en) * 2021-03-30 2021-07-02 上海万向区块链股份公司 System, method and medium for data playback-based incompatible blockchain upgrade
CN113761063A (en) * 2021-08-26 2021-12-07 浙商银行股份有限公司 Block chain migration method and equipment without shutdown and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850427A (en) * 2015-04-22 2015-08-19 深圳市元征科技股份有限公司 Method and device for upgrading code
US20150379510A1 (en) * 2012-07-10 2015-12-31 Stanley Benjamin Smith Method and system to use a block chain infrastructure and Smart Contracts to monetize data transactions involving changes to data included into a data supply chain.
CN106406940A (en) * 2016-09-05 2017-02-15 广东欧珀移动通信有限公司 System upgrading method, system upgrading apparatus, and terminal
CN107577427A (en) * 2017-08-31 2018-01-12 上海保险交易所股份有限公司 For the data migration method of block catenary system, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150379510A1 (en) * 2012-07-10 2015-12-31 Stanley Benjamin Smith Method and system to use a block chain infrastructure and Smart Contracts to monetize data transactions involving changes to data included into a data supply chain.
CN104850427A (en) * 2015-04-22 2015-08-19 深圳市元征科技股份有限公司 Method and device for upgrading code
CN106406940A (en) * 2016-09-05 2017-02-15 广东欧珀移动通信有限公司 System upgrading method, system upgrading apparatus, and terminal
CN107577427A (en) * 2017-08-31 2018-01-12 上海保险交易所股份有限公司 For the data migration method of block catenary system, equipment and storage medium

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134668A (en) * 2019-04-28 2019-08-16 阿里巴巴集团控股有限公司 Data migration method, device and equipment applied to block chain
CN110392042A (en) * 2019-06-19 2019-10-29 深圳壹账通智能科技有限公司 System environments resource allocation information acquisition methods, device and block chain node
US11036720B2 (en) 2019-06-28 2021-06-15 Advanced New Technologies Co., Ltd. Blockchain-based hierarchical data storage
CN110287170A (en) * 2019-06-28 2019-09-27 杭州复杂美科技有限公司 Database upgrade method, status data call method, equipment and storage medium
US11386054B2 (en) 2019-06-28 2022-07-12 Advanced New Technologies Co., Ltd. Blockchain-based hierarchical data storage
US10789222B2 (en) 2019-06-28 2020-09-29 Alibaba Group Holding Limited Blockchain-based hierarchical data storage
WO2020258855A1 (en) * 2019-06-28 2020-12-30 创新先进技术有限公司 Blockchain-based hierarchical storage method and apparatus, and electronic device
US11042518B2 (en) 2019-06-28 2021-06-22 Advanced New Technologies Co., Ltd. Blockchain-based hierarchical data storage
CN110287170B (en) * 2019-06-28 2021-05-11 杭州复杂美科技有限公司 Database upgrading method, state data calling method, device and storage medium
CN111522561A (en) * 2020-03-06 2020-08-11 杜晓楠 Method, computer-readable storage medium, and DBFT network for smooth backward compatible upgrades in DBFT distributed networks
CN111522561B (en) * 2020-03-06 2023-06-06 杜晓楠 Method for smooth backward compatible upgrade in DBFT distributed network, computer readable storage medium and DBFT network
CN111506327A (en) * 2020-04-15 2020-08-07 深圳市网心科技有限公司 Block chain node hot upgrading method and related equipment
CN111506327B (en) * 2020-04-15 2023-04-21 深圳市迅雷网络技术有限公司 Block chain node hot upgrading method and related equipment
CN112540969A (en) * 2020-11-26 2021-03-23 南京纯白矩阵科技有限公司 Data migration method for intelligent contracts among heterogeneous block chains
CN112540969B (en) * 2020-11-26 2023-07-14 南京纯白矩阵科技有限公司 Data migration method of intelligent contracts among heterogeneous block chains
CN113065867A (en) * 2021-03-30 2021-07-02 上海万向区块链股份公司 System, method and medium for data playback-based incompatible blockchain upgrade
CN113761063A (en) * 2021-08-26 2021-12-07 浙商银行股份有限公司 Block chain migration method and equipment without shutdown and storage medium
CN113761063B (en) * 2021-08-26 2024-04-16 浙商银行股份有限公司 Non-stop blockchain migration method, equipment and storage medium

Also Published As

Publication number Publication date
CN109669709B (en) 2022-04-08

Similar Documents

Publication Publication Date Title
CN109669709A (en) A kind of data migration method and data mover system of the upgrading of block chain
KR102226257B1 (en) Method and device for writing service data to a blockchain system
CN110020542B (en) Data reading and writing method and device and electronic equipment
US10496627B2 (en) Consistent ring namespaces facilitating data storage and organization in network infrastructures
CN107577427B (en) data migration method, device and storage medium for blockchain system
CN110032599B (en) Data structure reading and updating method and device, and electronic equipment
WO2020023828A1 (en) Blockchain-based cross-chain data operation method and apparatus
CN110032598B (en) Method and device for updating field and electronic equipment
CN107453896A (en) Multiple sector chain network data processing method, device and server
US20180089249A1 (en) Remote policy validation for managing distributed system resources
CN109658238A (en) Data processing method and device
CN107577420B (en) File processing method and device and server
CN103647850B (en) Data processing method, device and system of distributed version control system
CN109582473A (en) Across chain data access method and device based on block chain
TWI724570B (en) Method, device, electronic equipment and storage medium for reading and updating data structure
CN108595451A (en) Service request processing method and device
CN110020859A (en) A kind of block chain common recognition method, apparatus and electronic equipment executed parallel
US20200127959A1 (en) Architecture for large data management in communication applications through multiple mailboxes
CN109903163A (en) A kind of block bonusing method, device and the electronic equipment out of block chain
CN110992039B (en) Transaction processing method, device and equipment
CN108776670A (en) A kind of strange disaster recovery method, system and electronic equipment
CN110879900A (en) Data processing method and device based on block chain system
CN115983997A (en) Block chain-based collection management method, block chain node and system
CN110046194A (en) A kind of method, apparatus and electronic equipment of expanding node relational graph
CN108959403A (en) A kind of distributed transaction processing method and device

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
TA01 Transfer of patent application right

Effective date of registration: 20200311

Address after: 310012 no.1001, 10 / F, block a, Huaxing Times Square, No.478, Wensan Road, Xihu District, Hangzhou City, Zhejiang Province

Applicant after: Hangzhou Xita Technology Co.,Ltd.

Address before: 310013 A 1301, Huaxing Times Square, 478 Wensanlu Road, Xihu District, Hangzhou, Zhejiang.

Applicant before: CRYPTAPE Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant