Electronic commerce payment and evidence storage method based on block chain

By dividing the blockchain network into local networks and optimizing its throughput, the problems of large data upload volume and low throughput in the existing technology are solved, and more efficient payment and evidence storage services are achieved.

CN119444216APending Publication Date: 2025-02-14YUNNAN HUAWU TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411512676.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

When using blockchain for e-commerce payment and evidence storage, the data upload volume is large, the throughput is low, and the upload method is rigid, so it cannot flexibly cope with the computing power of the blockchain network.

Method used

By dividing the blockchain network into several local networks, and obtaining the local centers of each local network, the throughput of each local network is monitored and optimized in real time, sharding the processing based on device information and deployment location, building an electronic payment contract and converting it into Upload to the local network with the lowest real-time calculation coefficient for storage.

Benefits of technology

It reduces the data processing volume of the blockchain network, improves throughput, and can promptly discover and optimize abnormal blockchain nodes to ensure the quality of storage service of electronic transaction contracts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119444216A_ABST
    Figure CN119444216A_ABST
Patent Text Reader

Abstract

An e-commerce payment and evidence storage method based on a block chain relates to the technical field of e-commerce, and comprises the following steps: carrying out fragmentation processing on block chain nodes to obtain a plurality of block chain local networks and a block chain local center, obtaining a real-time calculation coefficient according to the actual throughput and the theoretical throughput of each block chain local network, collecting seller information and buyer information, constructing an electronic payment contract of the seller information and the buyer information, and uploading the electronic payment contract to the block chain local network for storage. Monitoring the first uploading speed to judge whether an abnormal block chain node exists or not, and monitoring the second uploading speed to realize optimization of a block chain local network; through the technical scheme of the invention, the data processing amount of the whole block chain network can be reduced, the throughput of the block chain network is improved, and the balance degree of different block chain local networks is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of e-commerce, and in particular to an e-commerce payment evidence storage method based on blockchain. Background Art

[0002] E-commerce payment evidence storage method refers to the use of specific technical means to record and store payment information in order to ensure the security and traceability of e-commerce transactions, so as to verify and prove the occurrence and details of transactions when necessary. Among them, storage through blockchain is the most commonly used technical means. Blockchain is a decentralized and distributed database technology that can record transaction information to ensure that it cannot be tampered with;

[0003] In the prior art, data is often uploaded to the entire blockchain network, which not only causes the entire blockchain to process too much data, but also causes low throughput. In addition, in the prior art, the data uploading method is mostly too rigid and fails to form a flexible uploading method based on the actual computing power of the blockchain network. In view of the shortcomings of the prior art, the present invention provides an e-commerce payment notarization method based on blockchain. Summary of the invention

[0004] The purpose of the present invention is to provide an e-commerce payment evidence storage method based on blockchain.

[0005] The purpose of the present invention can be achieved through the following technical solution: A blockchain-based e-commerce payment evidence storage method, comprising the following steps:

[0006] Step S1: respectively collect device information and deployment locations of blockchain nodes, shard blockchain nodes according to the collected deployment locations to obtain several blockchain local networks, and obtain blockchain local centers of each blockchain local network;

[0007] Step S2: monitor the actual throughput of each blockchain local network in real time, obtain the theoretical throughput of each blockchain local network according to the collected device information, and obtain the real-time calculation coefficient of each blockchain local network according to the obtained actual throughput and theoretical throughput;

[0008] Step S3: Collect the seller information and the buyer information respectively, build the electronic payment contract of the two according to the collected seller information and buyer information, verify the electronic payment contract, and upload the verified electronic payment contract to the blockchain local network for storage;

[0009] Step S4: monitor the first upload speed of the same electronic payment contract in different blockchain nodes, determine whether there is an abnormal blockchain node based on the first upload speed, monitor the second upload speed of different electronic payment contracts in different blockchain local networks, and optimize the blockchain local network based on the second upload speed.

[0010] Furthermore, the process of collecting the device information and deployment location of the blockchain node includes:

[0011] The device information of the blockchain nodes is collected, and the device information includes the operating system, processor, memory, network connection, network configuration, blockchain software version, and running status of the computer equipment. The deployment location of the blockchain nodes is collected, and the deployment location refers to the geographical location of the computer equipment. A GIS distribution map of the blockchain nodes is constructed based on the collected deployment locations.

[0012] Furthermore, the process of sharding the blockchain nodes according to the collected deployment locations to obtain a plurality of blockchain local networks and obtaining the blockchain local centers of each blockchain local network includes:

[0013] The sharding process refers to dividing the entire blockchain network into several smaller blockchain local networks. In the GIS distribution map, the current blockchain node is used as the initial sharding point. The initial sharding points of different merchants are also different, and the probability values ​​of other blockchain nodes being selected as the next sharding point are obtained respectively;

[0014] The blockchain node corresponding to the maximum probability value is selected as the subsequent sharding point, and the steps of selecting subsequent sharding points are repeated until several sharding points are selected. The corresponding blockchain local network is constructed with each sharding point as the blockchain local center, and the other blockchain nodes except the blockchain local center are connected to the blockchain local center closest to them.

[0015] Furthermore, the actual throughput of each blockchain local network is monitored in real time, the theoretical throughput of each blockchain local network is obtained according to the collected device information, and the process of obtaining the real-time calculation coefficient of each blockchain local network according to the obtained actual throughput and theoretical throughput includes:

[0016] A node monitoring unit is respectively set at each blockchain node, and the node monitoring unit is used to monitor the actual throughput of each blockchain node in real time, and the sum of the actual throughput of each blockchain node belonging to the same blockchain local network is used as the actual throughput of the blockchain local network;

[0017] The theoretical throughput of the blockchain node is obtained according to the device information of the blockchain node, the sum of the theoretical throughputs of each blockchain node belonging to the same blockchain local network is used as the theoretical throughput of the blockchain local network, and the ratio between the actual throughput and the theoretical throughput of the same blockchain local network is used as the real-time calculation coefficient of the blockchain local network.

[0018] Furthermore, the process of collecting the seller information and the buyer information respectively and constructing the electronic payment contract between the two according to the collected seller information and buyer information includes:

[0019] The seller's information is collected, and the seller's information is the merchant's business information. The buyer's information is collected, and the buyer's information is the user's personal information. An electronic payment unit is set up, and a temporary transaction platform is built between the merchant and the user through the electronic payment unit. A corresponding electronic payment contract is built according to the collected seller's information and buyer's information.

[0020] Furthermore, the process of verifying the electronic payment contract and uploading the verified electronic payment contract to the blockchain local network for storage includes:

[0021] The electronic transaction contract is fed back to the merchant and the user respectively. The merchant and the user verify the electronic payment contract. The verified electronic payment contract is uploaded to the merchant's various blockchain local centers for storage, and the real-time calculation coefficients of each blockchain local network are obtained. The blockchain local network with the lowest real-time calculation coefficient is used as the target blockchain network of the electronic payment contract, and the electronic payment contract is uploaded to each blockchain node in its target blockchain network for storage.

[0022] Furthermore, the process of monitoring the first upload speed of the same electronic payment contract on different blockchain nodes and determining whether there is an abnormal blockchain node according to the first upload speed includes:

[0023] When an electronic transaction contract is uploaded to each blockchain node of its target blockchain network, the first upload speed of the electronic transaction contract on each blockchain node is monitored, the upload coefficient of each blockchain node is obtained, the upload threshold is set, the upload coefficient is compared with the upload threshold, and abnormal blockchain nodes are obtained based on the comparison results, and abnormal node information is generated and fed back to users and merchants.

[0024] Furthermore, the second upload speeds of different electronic payment contracts in different blockchain local networks are monitored, and the process of optimizing the blockchain local network according to the second upload speed includes:

[0025] The second upload speed refers to the average of the first upload speeds of all blockchain nodes of the electronic payment contract in its target blockchain network, obtain the second upload speeds of different electronic payment contracts in their target blockchain network in the same time period, set the upload speed range, compare the second upload speed with the upload speed range, and mark each blockchain local network as normal, high or low according to the comparison result;

[0026] The blockchain local networks that are in a relatively high state and a relatively low state in the same time period are optimized, and all blockchain nodes in the blockchain local network that is in a relatively high state whose first upload speed is higher than the second upload speed of the blockchain local network are marked as optimized nodes, and each optimized node is connected to the blockchain local network that is closest to it and is in a relatively low state to achieve optimization of each blockchain local network.

[0027] Compared with the prior art, the present invention has the following beneficial effects:

[0028] 1. The present invention divides the entire blockchain network into several blockchain local networks, obtains the blockchain local centers of each blockchain local network, uploads the generated electronic transaction contracts to each blockchain local center for storage, obtains the real-time calculation coefficient of each blockchain local network, and uploads the electronic transaction contract to the blockchain local network corresponding to the lowest real-time calculation coefficient for storage. This method can reduce the data processing volume of the entire blockchain network on the one hand, and only stores data in a single local network and the centers of each local network. On the other hand, it can greatly improve the throughput of the blockchain network;

[0029] 2. By monitoring the first upload speed of each blockchain node, it is possible to determine whether there are abnormal blockchain nodes, which is conducive to timely discovery of abnormal blockchain nodes and avoidance of storage failures for electronic transaction contracts. By monitoring the second upload speeds of different blockchain local networks, the blockchain nodes with significantly higher first upload speeds in each blockchain local network are optimized and allocated to the blockchain local network with significantly lower second upload speeds, which can ensure the balance of different blockchain local networks and provide better storage services for electronic transaction contracts. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0031] like Figure 1 As shown, a blockchain-based e-commerce payment evidence storage method includes the following steps:

[0032] Step S1: respectively collect device information and deployment locations of blockchain nodes, shard blockchain nodes according to the collected deployment locations to obtain several blockchain local networks, and obtain blockchain local centers of each blockchain local network;

[0033] Step S2: monitor the actual throughput of each blockchain local network in real time, obtain the theoretical throughput of each blockchain local network according to the collected device information, and obtain the real-time calculation coefficient of each blockchain local network according to the obtained actual throughput and theoretical throughput;

[0034] Step S3: Collect the seller information and the buyer information respectively, build the electronic payment contract of the two according to the collected seller information and buyer information, verify the electronic payment contract, and upload the verified electronic payment contract to the blockchain local network for storage;

[0035] Step S4: monitor the first upload speed of the same electronic payment contract in different blockchain nodes, determine whether there is an abnormal blockchain node based on the first upload speed, monitor the second upload speed of different electronic payment contracts in different blockchain local networks, and optimize the blockchain local network based on the second upload speed.

[0036] It should be further explained that, in the specific implementation process, the process of collecting the device information and deployment location of the blockchain node includes:

[0037] The blockchain node refers to a computer device that participates in verifying and maintaining the blockchain in the blockchain network. In the embodiment of the present invention, collecting device information of the blockchain node refers to collecting the software and hardware conditions of the computer device therein. The device information includes but is not limited to the operating system, processor, memory, network connection, network configuration, blockchain software version, running status, etc. of the computer device;

[0038] In an embodiment of the present invention, collecting the deployment locations of blockchain nodes refers to collecting the geographical locations of computer devices therein, and constructing a GIS distribution map of blockchain nodes based on the collected deployment locations, wherein GIS is the abbreviation of Geographic Information System. In the constructed GIS distribution map, the deployment locations of various blockchain nodes can be viewed.

[0039] It should be further explained that, in the specific implementation process, the process of sharding the blockchain nodes according to the collected deployment locations to obtain several blockchain local networks and obtaining the blockchain local centers of each blockchain local network includes:

[0040] The sharding process is a method to solve the scalability problem of blockchain. By dividing the entire blockchain network into several smaller blockchain local networks, each blockchain local network can independently process transactions, and it is not necessary for all blockchain nodes to verify and record each transaction, thereby improving the overall throughput and processing capacity.

[0041] In the constructed GIS distribution map, the current blockchain node is used as the initial sharding point. The current blockchain node refers to the computer equipment used by different merchants when processing transactions. The initial sharding points of different merchants are also different. The shortest distance between other blockchain nodes and the current existing sharding point is obtained, recorded as d, and the probability value of other blockchain nodes being selected as the next sharding point is obtained, recorded as P;

[0042]

[0043] Select the blockchain node corresponding to the maximum probability value as the subsequent sharding point, repeat the steps of selecting the subsequent sharding points until n sharding points are selected, build the corresponding blockchain local network with each sharding point as the center, and mark each sharding point as the blockchain local center of its corresponding blockchain local network;

[0044] Connect other blockchain nodes except the blockchain local center to the blockchain local center closest to them respectively. Take any other blockchain node as an example, obtain the shortest distance between the blockchain node and each blockchain local center, and connect the blockchain node to the blockchain local center corresponding to the smallest shortest distance.

[0045] The same method is adopted to connect each other blockchain node to its corresponding blockchain local center, and the blockchain local network of the blockchain local center is constructed according to the blockchain nodes connected to the same blockchain local center. The number of blockchain local networks is the same as the number of blockchain local centers.

[0046] It should be further explained that, in the specific implementation process, the actual throughput of each blockchain local network is monitored in real time, the theoretical throughput of each blockchain local network is obtained according to the collected device information, and the real-time calculation coefficient of each blockchain local network is obtained according to the actual throughput and theoretical throughput. The process includes:

[0047] In the field of blockchain technology, the throughput generally refers to the amount of transaction data that a blockchain network can process per unit time. In the embodiment of the present invention, a node monitoring unit is provided at each blockchain node, and the node monitoring unit is used to monitor the actual throughput of each blockchain node in real time. The sum of the actual throughputs of each blockchain node in the same blockchain local network is taken as the actual throughput of the blockchain local network, and the actual throughput of each blockchain local network is obtained by the same method.

[0048] The theoretical throughput of the blockchain node is obtained according to the collected device information of the blockchain node. The theoretical throughput refers to the maximum throughput that the blockchain node can handle under ideal conditions. The sum of the theoretical throughputs of each blockchain node belonging to the same blockchain local network is used as the theoretical throughput of the blockchain local network. The same method is adopted to obtain the theoretical throughput of each blockchain local network. The ratio between the actual throughput of the same blockchain local network and the theoretical throughput is used as the real-time calculation coefficient of the blockchain local network.

[0049] It should be further explained that, in the specific implementation process, the seller information and the buyer information are collected respectively, and the process of constructing the electronic payment contract between the two based on the collected seller information and buyer information includes:

[0050] Collect seller information, which refers to the business information of the merchant, including but not limited to the merchant name, registered address, contact information, legal representative, business scope, merchandise, commodity prices, etc.; collect buyer information, which refers to the user's personal information, including but not limited to name, gender, age, contact information, purchased commodities, etc.;

[0051] An electronic payment unit is set up. When a user needs to make an electronic payment, a temporary transaction platform is built between the merchant and the user through the electronic payment unit. In the temporary transaction platform, both parties can view each other's seller information and buyer information respectively, and build a corresponding electronic payment contract based on the collected seller information and buyer information. The electronic payment contract is automatically generated by the electronic payment unit. At this time, the generated electronic payment contract is an initial version that has not been verified. Both parties can modify the initial version of the electronic payment contract and mark the electronic transaction contract obtained after the last modification as the final version.

[0052] It should be further explained that, in the specific implementation process, the process of verifying the electronic payment contract and uploading the verified electronic payment contract to the blockchain local network for storage includes:

[0053] Feedback the final version of the electronic transaction contract to the merchant and the user respectively, and the merchant and the user verify the electronic payment contract. When both parties have passed the verification, the electronic payment contract is marked as a verified state. When one party fails to pass the verification or both parties fail to pass the verification, the electronic payment contract is marked as a verified unsuccessful state.

[0054] The electronic payment contract marked as verified is uploaded to the various blockchain local centers of the merchant for storage. At this time, only the various blockchain local centers are uploaded, not the various blockchain local networks. The real-time calculation coefficients of the various blockchain local networks are obtained, and the blockchain local network with the lowest real-time calculation coefficient is used as the target blockchain network of the electronic payment contract. The electronic payment contract is further uploaded to the various blockchain nodes in its target blockchain network for storage. Different electronic payment contracts are only uploaded to the various blockchain local centers and the various blockchain nodes in its target blockchain network for storage.

[0055] It should be further explained that, in the specific implementation process, the first upload speed of the same electronic payment contract on different blockchain nodes is monitored, and the process of determining whether there is an abnormal blockchain node according to the first upload speed includes:

[0056] When the electronic transaction contract is uploaded to each blockchain node of its target blockchain network, the first upload speed of the electronic transaction contract on each blockchain node is monitored. The first upload speed refers to the ratio of the file size of the electronic transaction contract to its upload time on each blockchain node. The obtained first upload speed is marked and recorded as S i , i = 1, 2, ..., n, n represents the number of blockchain nodes in the target blockchain network, and the upload coefficient of each blockchain node is obtained, which is C i ;

[0057]

[0058] Set the upload threshold C0, compare the obtained upload coefficient with the set upload threshold, and obtain the abnormal blockchain node according to the comparison result. i ≤C0, the blockchain node corresponding to the upload coefficient is judged to be uploaded normally, and no other operations are performed on it. i ≤C0, the blockchain node corresponding to the upload coefficient is judged to have uploaded abnormally, and it is marked as an abnormal blockchain node. The corresponding abnormal node information is generated and fed back to users and merchants.

[0059] It should be further explained that, in the specific implementation process, the second upload speeds of different electronic payment contracts in different blockchain local networks are monitored, and the process of optimizing the blockchain local network according to the second upload speed includes:

[0060] The second upload speed refers to the average of the first upload speeds of all blockchain nodes of the electronic payment contract in its target blockchain network, which is used to represent the average upload speed of the electronic payment contract in its target blockchain network. The same method is used to obtain the second upload speeds of different electronic payment contracts in their corresponding target blockchain networks in the same time period, and the obtained second upload speeds are marked and recorded as Q j , j = 1, 2, ..., m, where m represents the number of electronic payment contracts in this time period;

[0061] Set the upload speed range [Q min , Q max ], compare the obtained second upload speed with the set upload speed range, if Q min ≤Q j ≤Q max , then the blockchain local network corresponding to the second upload speed is marked as normal. If Q j >Q max , then the blockchain local network corresponding to the second upload speed is marked as a high state. If Q j <Q min , then the blockchain local network corresponding to the second upload speed is marked as being in a low state;

[0062] The blockchain local networks that are in a relatively high state and a relatively low state in the same time period are optimized, and all blockchain nodes in the blockchain local network that is in a relatively high state whose first upload speed is higher than the second upload speed of the blockchain local network are marked as optimized nodes, and each optimized node is connected to the blockchain local network that is closest to it and is in a relatively low state to achieve optimization of each blockchain local network.

[0063] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.

Claims

1. A blockchain-based e-commerce payment evidence storage method, characterized in that: The following steps are involved: Step S1: respectively collect device information and deployment locations of blockchain nodes, shard blockchain nodes according to the collected deployment locations to obtain several blockchain local networks, and obtain blockchain local centers of each blockchain local network; Step S2: monitor the actual throughput of each blockchain local network in real time, obtain the theoretical throughput of each blockchain local network according to the collected device information, and obtain the real-time calculation coefficient of each blockchain local network according to the obtained actual throughput and theoretical throughput; Step S3: Collect the seller information and the buyer information respectively, build the electronic payment contract of the two according to the collected seller information and buyer information, verify the electronic payment contract, and upload the verified electronic payment contract to the blockchain local network for storage; Step S4: monitor the first upload speed of the same electronic payment contract in different blockchain nodes, determine whether there is an abnormal blockchain node based on the first upload speed, monitor the second upload speed of different electronic payment contracts in different blockchain local networks, and optimize the blockchain local network based on the second upload speed.

2. According to claim 1, a blockchain-based e-commerce payment evidence storage method is characterized in that: The process of collecting the device information and deployment location of the blockchain node includes: The device information of the blockchain nodes is collected, and the device information includes the operating system, processor, memory, network connection, network configuration, blockchain software version, and running status of the computer equipment. The deployment location of the blockchain nodes is collected, and the deployment location refers to the geographical location of the computer equipment. A GIS distribution map of the blockchain nodes is constructed based on the collected deployment locations.

3. According to claim 2, a blockchain-based e-commerce payment evidence storage method is characterized in that: The process of sharding the blockchain nodes according to the collected deployment locations to obtain several blockchain local networks and obtaining the blockchain local centers of each blockchain local network includes: The sharding process refers to dividing the entire blockchain network into several smaller blockchain local networks. In the GIS distribution map, the current blockchain node is used as the initial sharding point. The initial sharding points of different merchants are also different, and the probability values ​​of other blockchain nodes being selected as the next sharding point are obtained respectively; The blockchain node corresponding to the maximum probability value is selected as the subsequent sharding point, and the steps of selecting subsequent sharding points are repeated until several sharding points are selected. The corresponding blockchain local network is constructed with each sharding point as the blockchain local center, and the other blockchain nodes except the blockchain local center are connected to the blockchain local center closest to them.

4. The blockchain-based e-commerce payment evidence storage method according to claim 3 is characterized in that: The actual throughput of each blockchain local network is monitored in real time, the theoretical throughput of each blockchain local network is obtained according to the collected device information, and the process of obtaining the real-time calculation coefficient of each blockchain local network according to the obtained actual throughput and theoretical throughput includes: A node monitoring unit is respectively set at each blockchain node, and the node monitoring unit is used to monitor the actual throughput of each blockchain node in real time, and the sum of the actual throughput of each blockchain node belonging to the same blockchain local network is used as the actual throughput of the blockchain local network; The theoretical throughput of the blockchain node is obtained according to the device information of the blockchain node, the sum of the theoretical throughputs of each blockchain node belonging to the same blockchain local network is used as the theoretical throughput of the blockchain local network, and the ratio between the actual throughput and the theoretical throughput of the same blockchain local network is used as the real-time calculation coefficient of the blockchain local network.

5. According to claim 4, a blockchain-based e-commerce payment evidence storage method is characterized in that: The process of collecting the seller information and the buyer information respectively and constructing the electronic payment contract between the two based on the collected seller information and buyer information includes: The seller's information is collected, and the seller's information is the merchant's business information. The buyer's information is collected, and the buyer's information is the user's personal information. An electronic payment unit is set up, and a temporary transaction platform is built between the merchant and the user through the electronic payment unit. A corresponding electronic payment contract is built according to the collected seller's information and buyer's information.

6. According to claim 5, a blockchain-based e-commerce payment evidence storage method is characterized in that: The process of verifying the electronic payment contract and uploading the verified electronic payment contract to the blockchain local network for storage includes: The electronic transaction contract is fed back to the merchant and the user respectively. The merchant and the user verify the electronic payment contract. The verified electronic payment contract is uploaded to the merchant's various blockchain local centers for storage, and the real-time calculation coefficients of each blockchain local network are obtained. The blockchain local network with the lowest real-time calculation coefficient is used as the target blockchain network of the electronic payment contract, and the electronic payment contract is uploaded to each blockchain node in its target blockchain network for storage.

7. The blockchain-based e-commerce payment evidence storage method according to claim 6 is characterized in that: The process of monitoring the first upload speed of the same electronic payment contract on different blockchain nodes and determining whether there is an abnormal blockchain node according to the first upload speed includes: When an electronic transaction contract is uploaded to each blockchain node of its target blockchain network, the first upload speed of the electronic transaction contract on each blockchain node is monitored, the upload coefficient of each blockchain node is obtained, the upload threshold is set, the upload coefficient is compared with the upload threshold, and abnormal blockchain nodes are obtained based on the comparison results, and abnormal node information is generated and fed back to users and merchants.

8. The blockchain-based e-commerce payment evidence storage method according to claim 7 is characterized in that: The second upload speed of different electronic payment contracts in different blockchain local networks is monitored, and the process of optimizing the blockchain local network according to the second upload speed includes: The second upload speed refers to the average of the first upload speeds of all blockchain nodes of the electronic payment contract in its target blockchain network, obtain the second upload speeds of different electronic payment contracts in their target blockchain network in the same time period, set the upload speed range, compare the second upload speed with the upload speed range, and mark each blockchain local network as normal, high or low according to the comparison result; The blockchain local networks that are in a relatively high state and a relatively low state in the same time period are optimized, and all blockchain nodes in the blockchain local network that is in a relatively high state whose first upload speed is higher than the second upload speed of the blockchain local network are marked as optimized nodes, and each optimized node is connected to the blockchain local network that is closest to it and is in a relatively low state to achieve optimization of each blockchain local network.