Method for optimizing parallel processing of blockchain transactions
By dynamically adjusting the number of concurrent transactions based on processing and block creation times, and using dummy transactions to manage loads, the method optimizes blockchain transaction processing, addressing inefficiencies and improving performance and stability.
Patent Information
- Application Number
- PCT/KR2023/007405
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-26
- Filing Date
- 2023-05-31
- Publication Date
- 2024-10-31
AI Technical Summary
Current blockchain systems face inefficiencies in processing transactions due to the lack of an optimized method for determining the optimal number of concurrent transactions, leading to potential delays and performance issues.
A method that dynamically adjusts the number of concurrent transactions by measuring average processing and block creation times, reducing or increasing the number of transactions based on these metrics, and utilizing dummy transactions to predict and manage processing loads.
This approach optimizes transaction processing speed, improves system stability, and prevents unnecessary adjustments in concurrent processing, thereby reducing delays and enhancing overall network performance.
Smart Images

Figure KR2023007405_31102024_PF_FP_ABST
Abstract
Description
Optimizing Parallel Processing of Blockchain Transactions
[0001] The present invention relates to a method for optimizing parallel processing of blockchain transactions.
[0002] Once a transaction is submitted to a blockchain network, a block must ultimately be created. For example, block creation on the Ethereum network takes approximately 10 to 20 seconds, and other networks may have similar, shorter, or longer block creation times.
[0003]
[0004] Therefore, from a transaction processing perspective, it's advantageous to process multiple transactions simultaneously to improve performance. In other words, the more transactions processed within the same block, the faster processing time can be. However, if the number of transactions exceeds processing capacity, delays can occur for various reasons, such as waiting for additional block generation time, making it difficult to efficiently operate a system that includes transactions.
[0005]
[0006] Finding the optimal number of concurrent transactions to process is crucial for ensuring both performance and stability, but no specific algorithm or optimization method is known to date.
[0007] The present invention has been devised to solve the above-mentioned conventional problems, and the purpose of the present invention is to provide a method for optimizing parallel processing of blockchain transactions.
[0008] The method for optimizing parallel processing of a blockchain transaction according to the present invention includes a transaction processing request step (S100) for requesting parallel processing of n transactions in a transaction processing unit (100), a processing time measurement step (S210) for measuring the average processing time (AvgTx) for completing n transactions in a time measurement unit (200), a generation time measurement step (S220) for measuring the average block generation time (B_t) of transactions in the time measurement unit (200), a simultaneous processing number reduction step (S310) for reducing the n value when the average processing time (AvgTx) is greater than the average block generation time (B_t) in a simultaneous optimization unit (300), and a simultaneous processing number increase step (S320) for increasing the n value when the average processing time (AvgTx) is less than the average block generation time (B_t) in a simultaneous optimization unit (300).
[0009] In one embodiment, the value of n may be characterized as being an integer greater than or equal to 0.
[0010] In one embodiment, the simultaneous processing number reduction step (S310) may be characterized by including a ratio reduction step (S311) that reduces the n value by the ratio of the average processing time (AvgTx) to the average block generation time (B_t).
[0011] In one embodiment, the concurrent processing number reduction step (S310) may be characterized by including a designated reduction step (S312) that reduces the n value by a designated reduction value (reduce_Interval) from the existing value when the n value reduced in the ratio reduction step (S311) is equal to the n value of the parallel processing step (S100).
[0012] In one embodiment, the reduce_Interval may be characterized as being 1.
[0013] In one embodiment, the step of reducing the number of concurrent processing steps (S310) may be characterized by including a minimum correction step (S313) of returning the n value to the specified minimum value when the reduced n value is less than the specified minimum value.
[0014] In one embodiment, the step of increasing the number of concurrent processes (S320) may be characterized by including a step of increasing the ratio (S321) of increasing the n value by an increase ratio (increase_ratio).
[0015] In one embodiment, the step of increasing the number of concurrent processes (S320) may be characterized by including a designated increase step (S322) that increases the n value by a designated increase value (increase_interval).
[0016] In one embodiment, the designated increase step (S322) may be characterized by having a condition that is applied when the value of n before being increased is less than a designated minimum range (increase_min_range).
[0017] In one embodiment, the transaction processing request step (S100) may be characterized by including a general transaction processing request step (S101) for requesting processing of a general transaction, and a dummy transaction processing request step (S102) for requesting processing of a dummy transaction.
[0018] In one embodiment, the general transaction processing request step (S101) and the dummy transaction processing request step (S102) may be characterized as being executed non-sequentially.
[0019] In one embodiment, in the transaction processing request step (S100), the value of n may be characterized by counting only the number of transactions performed in the general transaction processing request step (S101).
[0020] In one embodiment, in the transaction processing request step (S100), when the dummy transaction processing request step (S102) is performed, the average processing time (AvgTx) measured in the processing time measurement step (S210) is calculated by including the processing times of both general transactions and dummy transactions, and the concurrent processing number increase step (S320) may be characterized by increasing the n value when both the condition that the average processing time (AvgTx) of the previous round in which the dummy transaction processing request step (S102) is not performed is smaller than the average block generation time (B_t) and the condition that the average processing time (AvgTx) of the current round in which the dummy transaction processing request step (S102) is performed is smaller than the average block generation time (B_t) are satisfied.
[0021] In one embodiment, when one cycle including a transaction processing request step (S100), a processing time measurement step (S210), a generation time measurement step (S220), a simultaneous processing number reduction step (S310), and a simultaneous processing number increase step (S320) is defined as one round, the dummy transaction processing request step (S102) may be characterized in that it is performed discontinuously based on the round.
[0022] In one embodiment, the dummy transaction processing request step (S102) may be characterized in that it is performed at a specified interval (round_interval) based on a round.
[0023] Therefore, according to the present invention,
[0024] First, by calculating the optimal number of transaction parallel processing requests in the current blockchain network, the overall transaction processing speed can be improved.
[0025] Second, by applying different methods to reduce and increase the number of concurrent processes, it is possible to find a more effective optimal number in a blockchain network.
[0026] Third, when reducing the number of simultaneous processes, there are steps for reducing according to a ratio, reducing by a specified value, and compensating for a minimum specified value, so that, if necessary, it can be controlled to quickly reduce by a ratio or gradually reduce by a quantity.
[0027] Fourth, dummy transactions are used to predict situations where transactions have already increased, and this is used to increase the number of concurrent processes. Therefore, unnecessary adjustment steps, such as increasing the number of concurrent processes and then quickly decreasing them, can be omitted. This also prevents delays in processing time during optimization.
[0028] FIG. 1 is a flowchart illustrating a method for optimizing parallel processing of blockchain transactions according to one embodiment of the present invention.
[0029] FIG. 2 is a schematic diagram showing a system that uses a parallel processing optimization method for blockchain transactions according to the embodiment of FIG. 1.
[0030] FIG. 3 is a drawing for explaining a processing time measurement step (S210) among the parallel processing optimization methods of blockchain transactions according to the embodiment of FIG. 1.
[0031] FIG. 4 is a flowchart showing a step (S310) for reducing the number of concurrent processing operations among the methods for optimizing parallel processing of blockchain transactions according to the embodiment of FIG. 1.
[0032] FIG. 5 is a flowchart showing a step (S320) of increasing the number of concurrent processing steps among the methods for optimizing parallel processing of blockchain transactions according to the embodiment of FIG. 1.
[0033] FIG. 6 is a flowchart showing a transaction processing request step (S100) according to another embodiment of the present invention.
[0034] FIG. 7 is a diagram for explaining a method for optimizing parallel processing of blockchain transactions according to the embodiment of FIG. 6.
[0035] FIG. 8 is a diagram for explaining a processing time measurement step (S210) among the parallel processing optimization methods of blockchain transactions according to the embodiment of FIG. 6.
[0036] Hereinafter, preferred embodiments will be described with reference to the attached drawings. In this process, the thickness of lines and the sizes of components depicted in the drawings may be exaggerated for clarity and convenience. Furthermore, the terms described below are defined based on their functions in the present invention and may vary depending on the intent or custom of the user or operator. Therefore, the definitions of these terms should be based on the contents throughout this specification.
[0037] In addition, the following examples are not intended to limit the scope of the present invention, but are merely presented as examples, and there may be various embodiments implemented through the present technical idea.
[0038]
[0039]
[0040]
[0041] Steps of the optimization method
[0042]
[0043] FIG. 1 is a flowchart illustrating a method for optimizing parallel processing of blockchain transactions according to one embodiment of the present invention. FIG. 2 is a configuration diagram illustrating a system utilizing the method for optimizing parallel processing of blockchain transactions according to the embodiment of FIG. 1.
[0044]
[0045] Referring to FIGS. 1 and 2, the method for optimizing parallel processing of a blockchain transaction according to the present embodiment includes a transaction processing request step (S100), a processing time measurement step (S210), a generation time measurement step (S220), a simultaneous processing number reduction step (S310), and a simultaneous processing number increase step (S320).
[0046]
[0047] Meanwhile, this is driven within a system for optimizing the sequential processing of blockchain transactions, and this system includes a transaction processing unit (100), a time measurement unit (200), and a simultaneous optimization unit (300), and transactions are performed by multiple workers.
[0048]
[0049] Let's look at which components interact and how the process is performed at each step.
[0050]
[0051] (a) Transaction processing request step (S100)
[0052]
[0053] Referring back to Figure 2, the transaction processing request step (S100) first requests parallel processing of n transactions in the transaction processing unit (100). Through the optimization process performed in the future, the transaction processing request step (S100) is continuously and repeatedly performed.
[0054]
[0055] The transaction processing unit (100) allocates the number of transactions to be processed in parallel among the pending transactions and performs this. At this time, the number of workers is set equal to the number of tasks, and the processing work for each transaction is performed. If n transactions are to be processed in parallel, n workers are allocated and processed. In terms of managing the number of workers, the transaction processing unit (100) may be referred to as a worker manipulator.
[0056]
[0057] The repeatedly performed transaction processing request step (S100) is set to optimize the number of transactions to be processed for each round, n. Rather than applying the optimized number of transactions, n can be incrementally adjusted to accommodate the load that can be processed.
[0058]
[0059] As will be described later, this optimization method adjusts the value of n in round units. A round is defined as starting when n transactions begin to be requested in parallel, and ending when all transactions are processed.
[0060]
[0061] While each transaction begins simultaneously, they do not all end at the same time. Since the blocks of the blockchain they apply to may be completed at different times, transactions may complete at different times. Several transactions may complete at the same time if they are processed in the same block.
[0062]
[0063] Typically, the n value is applied as an integer greater than or equal to 0, and the initial value can be set to 32. The minimum value can be adjusted from 1 to the maximum value of 1024. However, the initial, minimum, and maximum values can be flexibly changed and applied depending on the type of blockchain.
[0064]
[0065]
[0066] (b) Processing time measurement step (S210)
[0067]
[0068] FIG. 3 is a drawing for explaining a processing time measurement step (S210) among the parallel processing optimization methods of blockchain transactions according to the embodiment of FIG. 1.
[0069]
[0070] In the processing time measurement step (S210), the time measurement unit (200) measures the average processing time (AvgTx) required to complete n transactions requested in the transaction processing request step (S100). As previously explained, since the processing completion time of each transaction may be different, the processing time is calculated as the average value of the processing completion times of n transactions.
[0071]
[0072] Typically, when a transaction is requested for processing, it is submitted to the blockchain network and broadcast to all nodes on the network. Typically, nodes verify the transaction and add it to a candidate block. Workers on the network perform computations to verify the block and add it to the blockchain. Once the block is completed and added to the blockchain, the transaction is considered complete.
[0073]
[0074] Therefore, to measure the time it takes for a transaction to be completed, one can measure the time from when the transaction is broadcast to the blockchain network until it is finally added to the blockchain as a block. This is commonly referred to as the transaction confirmation time.
[0075]
[0076] This confirmation time can vary depending on several factors, including the network's mining difficulty, the number of network nodes, and the transaction volume, and can take a wide range of times. This confirmation time can vary depending on the processing environment, and the present invention determines the optimal number of transaction parallel processing operations based on the changing environment.
[0077]
[0078] Referring to Figure 3, the round end point can be identified, which is the point from when a transaction is requested to when the final transaction is processed. As shown in the figure, five transactions were performed, with the first transaction completing first and the fifth transaction completing last, marking the end point of one round.
[0079]
[0080] The average processing time (AvgTx) is measured as the average of the confirmation times of the first to fifth transactions, as shown in the drawing.
[0081]
[0082]
[0083] (c) Generation time measurement step (S220)
[0084]
[0085] In the generation time measurement step (S220), the time measurement unit (200) measures the average block generation time (B_t) of the transaction.
[0086]
[0087] First, we obtain the creation time information for blocks created within a specific time range or number of blocks based on the blockchain network. The creation time is calculated by obtaining the timestamp information generated within the block.
[0088]
[0089] As mentioned, the creation times of all blocks within a time range or count range are obtained based on a specific reference time, and the average block creation time (B_t) is calculated using this. The average block creation time (B_t) is compared with the previously calculated average processing time (AvgTx) and used as a criterion for the increase and decrease of the n value during parallel processing.
[0090]
[0091]
[0092] (d) Step for reducing the number of simultaneous processing (S310)
[0093]
[0094] FIG. 4 is a flowchart showing a step (S310) for reducing the number of concurrent processing operations among the methods for optimizing parallel processing of blockchain transactions according to the embodiment of FIG. 1.
[0095]
[0096] Referring to FIG. 4, the concurrent processing number reduction step (S310) includes a ratio reduction step (S311), a designated reduction step (S312), and a minimum correction step (S313). The concurrent processing number reduction step (S310) reduces the n value in the concurrent optimization unit (300) when the average processing time (AvgTx) is greater than the average block generation time (B_t). When the average processing time (AvgTx) is greater than the average block generation time (B_t), the blockchain network has received requests that exceed its processing capacity. Therefore, the concurrent processing number is reduced.
[0097]
[0098] The ratio reduction step (S311) reduces the n value by the ratio of the average processing time (AvgTx) to the average block generation time (B_t). This can be expressed in a formula as follows.
[0099]
[0100] [Mathematical Formula 1]
[0101] n' ≒ n * B_t / AvgTx
[0102] (where n' and n are integers)
[0103]
[0104] In addition, if the n value reduced in the ratio reduction step (S311) is the same as the n value in the parallel processing step (S100), that is, if it is reduced by the ratio, there may be a case where there is no change in the n value. In this case, a designated reduction step (S312) is added to compensate for this after the ratio reduction step (S311), and the n value is reduced by a designated reduction value (reduce_Interval) in the designated reduction step (S312). This reduction value (reduce_Interval) may be 1. If the n value is no longer reduced in the ratio reduction step (S311), the n value may be reduced by 1 in one round.
[0105]
[0106] [Equation 2]
[0107] n' = n - reduce_Interval
[0108] (where n' and n are integers)
[0109]
[0110]
[0111] Meanwhile, in the step of reducing the number of concurrent processes (S310), if the value of n is less than the specified minimum value (min_Value), a minimum correction step (S313) is included to return the value of n to the specified minimum value. The specified minimum value may be 1.
[0112]
[0113] [Equation 3]
[0114] n' = n - reduce_Interval
[0115] (where n' is an integer, n'>min_Value)
[0116]
[0117]
[0118] (e) Step to increase the number of simultaneous processing (S320)
[0119]
[0120] FIG. 5 is a flowchart showing a step (S320) of increasing the number of concurrent processing steps among the methods for optimizing parallel processing of blockchain transactions according to the embodiment of FIG. 1.
[0121]
[0122] Referring to FIG. 5, the concurrent processing number increasing step (S320) includes a ratio increasing step (S321) and a designated increasing step (S322). In the concurrent processing number increasing step (S320), the concurrent optimization unit (300) increases the n value if the average processing time (AvgTx) is less than the average block generation time (B_t). If the average processing time (AvgTx) is less than the average block generation time (B_t), the blockchain network has room to utilize additional processing power. Therefore, the number of concurrent processing is increased.
[0123]
[0124] In the ratio increase step (S321), the n value is increased by the increase ratio (increase_ratio). At this time, the increase ratio can use a pre-defined value. For example, the increase ratio can be 0.1. This can be expressed as a formula as follows.
[0125]
[0126] [Equation 4]
[0127] n' = n + n * increase_ratio
[0128] (where n' and n are integers)
[0129]
[0130] Meanwhile, this increase ratio (increase_ratio) can be modified according to the progress after specifying the initial value. The increase ratio (increase_ratio) can include an increase ratio modification step (S323) so that it can be adjusted according to the result after the initial application. The increase ratio (increase_ratio) can have an initial value, and if the execution speed increases after the initial value and fails, the decrease weight (decrease_weight) of the previous increase ratio can be applied to the increase ratio (increase_ratio) applied next. However, this increase ratio cannot be smaller than 1 / n because the n value cannot be smaller than 1.
[0131]
[0132] For example, if the initial increase ratio (increase_ratio) is 0.1 and this increase ratio is applied to perform 1 round, and the average processing time (AvgTx) is greater than the average block generation time (B_t), the next time the increase condition is performed, the n value can be increased again by the adjusted increase ratio (increase_ratio). At this time, the adjusted increase ratio can be an increase ratio with a decrease weight (decrease_weight) applied, and the decrease weight (decrease_weight) can be 0.5. Therefore, the increase ratio (increase_ratio) applied when the next condition occurs can be 0.05, which is 0.1*0.5.
[0133]
[0134] Meanwhile, if the n value to which the increase ratio (increase_ratio) is applied is such that the average processing time (AvgTx) is still greater than the average block generation time (B_t) after the end of the round, i.e., if the number of concurrent processes can be increased further after the number of concurrent processes has increased, the increase weight (increase_weight) of the previous increase ratio can be applied to the increase ratio (increase_ratio) applied just before. For example, this increase weight (increase_weight) can be 2. However, this increase ratio cannot exceed 0.1 at most.
[0135]
[0136] For example, to summarize, if the increase ratio (increase_ratio) applied just before is 0.05, and the n value needs to be increased by the increase ratio (increase_ratio) again, this time the n value can be increased by applying 0.1 with an increase weight (increase_weight) of 200%, and since this is the same as 0.1, which is the maximum value of the increase ratio (increase_ratio), the increase weight (increase_weight) can no longer be applied in the next step.
[0137]
[0138]
[0139]
[0140] Meanwhile, in the designated increase step (S322), the n value is increased by the designated increase value (increase_interval). In particular, the designated increase step (S322) may have a condition that is applied when the n value is less than the designated minimum range (increase_min_range) before being increased.
[0141]
[0142] The specified increment value (increase_interval) can be a predefined value, for example, 1. Meanwhile, the specified minimum range (increase_min_range) can be 10. Therefore, if the value n is less than 10, the value n is increased by the specified increment value. This can be expressed as a formula as follows.
[0143]
[0144] [Equation 5]
[0145] n' = n + increase_interval
[0146] (where n', n are integers, n < increase_min_range)
[0147]
[0148] As a result, the methods for decreasing and increasing the value of n must be applied in different ways, and since the maximum processing capacity of the network cannot be known when increasing, optimization is performed by gradually increasing it rather than decreasing it.
[0149]
[0150]
[0151]
[0152] Example of a dummy transaction
[0153]
[0154] FIG. 6 is a flowchart illustrating a transaction processing request step (S100) according to another embodiment of the present invention. FIG. 7 is a diagram illustrating a method for optimizing parallel processing of blockchain transactions according to the embodiment of FIG. 6.
[0155]
[0156] Referring to FIG. 6, the transaction processing request step (S100) includes a general transaction processing request step (S101) for requesting processing of a general transaction and a dummy transaction processing request step (S102) for requesting processing of a dummy transaction. The general transaction processing request step (S101) requests processing for a transaction that requires actual processing, and the dummy transaction processing request step (S102) creates a target into which fictitious data that does not require processing is input and requests processing.
[0157]
[0158] In this embodiment, by utilizing these dummy transactions, the value n, the number of transactions processed in parallel, can be more precisely controlled. When a typical transaction is processed in parallel with n requests, dummy transactions are added and processed outside the specified n value. Therefore, in rounds where dummy transactions are requested, more transactions than the specified n value are processed in parallel.
[0159]
[0160] Additionally, these dummy transactions are processed non-sequentially in response to processing requests from general transactions, and no distinction is made between dummy transactions and general transactions when requesting parallel processing of the entire transaction.
[0161]
[0162] Meanwhile, referring to FIG. 7, a dummy transaction is not applied for each round, and the general transaction processing request step (S101) is performed in all rounds, while the dummy transaction processing request step (S102) is performed discontinuously, i.e., is not performed in all rounds.
[0163]
[0164] This is because, when performed in every round, it not only adds load to the blockchain network, but also allows for more precise control when determining whether to increase the value of n compared to rounds where only regular transactions are performed.
[0165]
[0166] The cycle of these rounds can have a specified interval (round_interval). For example, a dummy transaction processing request step (S102) can be additionally performed every five rounds. Furthermore, the specified interval can be controlled to increase or decrease depending on the status of the blockchain network.
[0167]
[0168]
[0169]
[0170] FIG. 8 is a diagram for explaining a processing time measurement step (S210) among the parallel processing optimization methods of blockchain transactions according to the embodiment of FIG. 6.
[0171]
[0172] In the transaction processing request step (S100), when the dummy transaction processing request step (S102) is performed, the average processing time (AvgTx) measured in the processing time measurement step (S210) is calculated by including the processing times of both general transactions and dummy transactions.
[0173]
[0174] Referring to Figure 8, the average processing time (AvgTx') including the dummy transaction, which is the sixth transaction, is calculated.
[0175]
[0176] In addition, in order to be applied to the step of increasing the number of concurrent processing (S320), the condition that the average processing time (AvgTx) of the previous round in which the dummy transaction processing request step (S102) is not performed must be smaller than the average block generation time (B_t) must be satisfied, and at the same time, the condition that the average processing time (AvgTx') of the current round in which the dummy transaction processing request step (S102) is performed must be smaller than the average block generation time (B_t) must be satisfied.
[0177]
[0178] Therefore, the number of concurrent transactions is increased only if both the average processing time of a round without dummy transactions (AvgTx) and the average processing time of a round with dummy transactions (AvgTx') are less than the average block generation time (B_t).
[0179]
[0180] Compared to determining whether to increase through general transactions like this, when comparing with a round that adds dummy transactions, the number of concurrent processes is increased in a round that only contains pure general transactions, and then when the number of transactions increases as a result, the average block generation time (B_t) is exceeded, and as a result, the number of concurrent processes is reduced again, etc., meaningless optimization processes can be reduced, and unnecessary fluctuations in the value of the number of concurrent processes n can be prevented.
[0181]
[0182] Additionally, as the number of transactions increases, requiring transactions to be processed from one block to another, the average processing time (AvgTx) increases stepwise, rather than incrementally. In this case, if only dummy transactions that don't actually need to be processed are created in the delayed block, this has the advantage of allowing testing of increased concurrent transaction processing without affecting the processing speed of actual transactions.
[0183]
[0184]
[0185]
[0186] The above-described embodiment of the present invention is merely exemplary, and those skilled in the art will readily appreciate that various modifications and equivalent other embodiments are possible. Therefore, it will be readily understood that the present invention is not limited to the forms mentioned in the detailed description above. Accordingly, the true technical protection scope of the present invention should be defined by the technical spirit of the appended claims. Furthermore, the present invention should be understood to include all modifications, equivalents, and alternatives within the spirit and scope of the present invention as defined by the appended claims.
[0187] The present invention has been devised to solve the above-mentioned conventional problems, and the purpose of the present invention is to provide a method for optimizing parallel processing of blockchain transactions.
Claims
1. In the transaction processing unit (100), a transaction processing request step (S100) for requesting parallel processing of n transactions; In the time measurement unit (200), a processing time measurement step (S210) of measuring the average processing time (AvgTx) for completing the n transactions; In the above time measurement unit (200), a generation time measurement step (S220) for measuring the average block generation time (B_t) of the transaction; In the simultaneous optimization unit (300), if the average processing time (AvgTx) is greater than the average block generation time (B_t), a simultaneous processing number reduction step (S310) for reducing the n value; In the above simultaneous optimization unit (300), when the average processing time (AvgTx) is less than the average block generation time (B_t), a simultaneous processing number increasing step (S320) that increases the n value; A method for optimizing parallel processing of blockchain transactions including .
2. In paragraph 1, A method for optimizing parallel processing of blockchain transactions, characterized in that the above n value is an integer greater than or equal to 0.
3. In paragraph 1, The above simultaneous processing number reduction step (S310) A method for optimizing parallel processing of a blockchain transaction, characterized in that it includes a ratio reduction step (S311) for reducing the n value by the ratio of the average processing time (AvgTx) to the average block generation time (B_t).
4. In paragraph 3, The above simultaneous processing number reduction step (S310) If the n value reduced in the above ratio reduction step (S311) is the same as the n value of the parallel processing step (S100), A method for optimizing parallel processing of a blockchain transaction, characterized in that it includes a designated reduction step (S312) that reduces the above n value by a designated reduction value (reduce_Interval) from the existing value.
5. In paragraph 4, A method for optimizing parallel processing of blockchain transactions, characterized in that the above reduction value (reduce_Interval) is 1.
6. In paragraph 2, The above simultaneous processing number reduction step (S310) A method for optimizing parallel processing of a blockchain transaction, characterized in that it includes a minimum correction step (S313) for returning the n value to the specified minimum value when the reduced n value is less than the specified minimum value.
7. In paragraph 1, The step of increasing the number of simultaneous processing (S320) above A method for optimizing parallel processing of a blockchain transaction, characterized in that it includes a ratio increasing step (S321) for increasing the n value by an increase ratio (increase_ratio).
8. In paragraph 1, The step of increasing the number of simultaneous processing (S320) above A method for optimizing parallel processing of a blockchain transaction, characterized in that it includes a designated increase step (S322) that increases the above n value by a designated increase value (increase_interval).
9. In paragraph 7, The step of increasing the number of simultaneous processing (S320) above Regarding the increase ratio (increase_ratio) applied in the above ratio increase step (S321), Based on the average processing time (AvgTx) and the average block generation time (B_t) measured after applying the above simultaneous processing number increase step (S320), If the above average processing time (AvgTx) is greater than the above average block generation time (B_t), the increase ratio (increase_ratio) is reduced by the decrease weight (decrease_weight), A method for optimizing parallel processing of a blockchain transaction, characterized in that it further includes an increase ratio modification step (S323) of increasing the increase ratio (increase_ratio) by an increase weight (increase_weight) when the average processing time (AvgTx) is less than the average block generation time (B_t).
10. In paragraph 8, The above designated increase step (S322) is A method for optimizing parallel processing of a blockchain transaction, characterized in that it has a condition that is applied when the above n value is less than a specified minimum range (increase_min_range) before being increased.
11. In paragraph 1, The above transaction processing request step (S100) is: A general transaction processing request step (S101) for requesting processing of a general transaction; and A method for optimizing parallel processing of a blockchain transaction, characterized in that it includes a dummy transaction processing request step (S102) for requesting processing of a dummy transaction.
12. In paragraph 11, A method for optimizing parallel processing of a blockchain transaction, characterized in that the general transaction processing request step (S101) and the dummy transaction processing request step (S102) are executed non-sequentially.
13. In paragraph 11, In the above transaction processing request step (S100), A method for optimizing parallel processing of blockchain transactions, characterized in that the above n value only counts the number of transactions performed in the general transaction processing request step (S101).
14. In paragraph 13, In the above transaction processing request step (S100), if the dummy transaction processing request step (S102) is performed, The average processing time (AvgTx) measured in the above processing time measurement step (S210) is calculated by including the processing times of both general transactions and dummy transactions, The step of increasing the number of simultaneous processing (S320) is A condition in which the average processing time (AvgTx) of the previous round in which the dummy transaction processing request step (S102) is not performed is less than the average block generation time (B_t); and A method for optimizing parallel processing of blockchain transactions, characterized in that the n value is increased when all conditions are satisfied: the average processing time (AvgTx) of the current round in which the dummy transaction processing request step (S102) is performed is smaller than the average block generation time (B_t).
15. In paragraph 11, When one cycle including the transaction processing request step (S100), the processing time measurement step (S210), the generation time measurement step (S220), the simultaneous processing number reduction step (S310) and the simultaneous processing number increase step (S320) is defined as one round, A method for optimizing parallel processing of blockchain transactions, characterized in that the above dummy transaction processing request step (S102) is performed discontinuously based on the above round.
16. In paragraph 15, A method for optimizing parallel processing of blockchain transactions, characterized in that the above dummy transaction processing request step (S102) is performed at a specified interval (round_interval) based on the above round.
Citation Information
Patent Citations
Trusted block chain fragment performance optimization method
CN113807847A
Transaction packaging automatic adjustment system and method based on consensus time and medium
CN114897614A
Apparatus and method for adaptively managing sharded blockchain network based on Deep Q Network
KR102337760B1
System and method for controlling traffic of blockchain transaction data
WO2022114436A1
KR20200045854A
