Block chain transaction data migration method and device
A technology of transaction data and blockchain, which is applied in the field of financial technology, can solve the problem that the number and order of transactions cannot be guaranteed, and achieve the effect of improving execution efficiency and throughput and shortening execution time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example 1
[0076] In the client interface of the new chain, addresses of some system contracts are added and solidified; while in the client interface of the old chain, these addresses are randomly generated. In this case, it is necessary to replace the old address with the address of the system contract, and it is necessary to complete the work of translating the binary code.
[0077] still with image 3 Take the example of the deployment contract shown as an example, the original value of the dark part is 0x123, and the original meaning of this parameter represents the address of a certain business contract. Now, in the EVM of the new chain, the rules of the business state of the new system contract are defined. In all operations of deploying the contract, the address of 0x123 needs to be changed to the address of the system contract of 0x3.
[0078]At this time, it is necessary to first retrieve the binary code input by the client for transaction execution, and check whether there is...
example 2
[0080] The compiler version of the smart contract is upgraded in the new chain, and the binary code of the same smart contract in the old chain is different from the binary code generated by the compiler of the new chain.
[0081] In this scenario, it is necessary to obtain the codes of all smart contracts deployed on the old chain, and use the old chain’s smart contract compiler to compile the smart contracts to obtain the old chain’s smart contract binary code C1; then use the new chain’s smart The contract compiler compiles the smart contract to obtain the smart contract binary code C2 of the new chain; a mapping dictionary [C1, C2] is established between the two.
[0082] Next, it is necessary to retrieve the binary code of the transaction execution input obtained by the client, check whether there is a binary code containing the content of C1, and if it exists, replace the part of C1 with the part of C2. Finally, the replaced input binary code is used as the binary code t...
example 3
[0085] Different versions of blockchain node programs may have different rules for generating smart contract addresses. In the blockchain version, whether it is deploying a contract or calling a contract function, it will trigger the addition of the external account number. But in the new version, only deploying the contract will trigger the serial number increment. Since the generation rule of the contract address is the HASH value of information such as account address and serial number, different serial number increment rules will lead to different contract addresses after replay. For this reason, if it is detected that the execution is a blockchain migration operation, it is necessary to modify the increment rule of the serial number of the new version of the blockchain node to maintain forward compatibility.
[0086] The above are just three specific examples of input parameter changes, contract compilation structure changes, and smart contract address generation rules c...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


