It’s worth noting that the chains analyzed for this research are based on the Account model design scheme, not including the UTXO scheme.FISCO-BCOS, one of the consortium blockchains that support parallel execution of transaction verification within blocks.Aptos public chain, Move Virtual Machine.Let’s take a look at the traditional transaction execution process.
The experimental results of the benchmark test program show that compared with the traditional serial transaction execution scheme, PTE running on a 4-core processor under ideal conditions can achieve about 200%~300% performance improvement, and the computational improvement is proportional to the number of cores.An acyclic-directed graph is often referred to as Directed Acyclic Graph .
After the block is verified, the block is uploaded to the chain. After a transaction is executed, if the state of each node is consistent, a consensus is reached and the block is then written to the underlying storage, which is permanently recorded on the blockchain.Take all the transactions in the block from the packed block.Read all transactions in order. Should a transaction be mergeable, resolve its conflict field and check whether any previous transactions conflict with it.
It is well known that the order of execution between instructions executed in parallel on different CPU cores cannot be predicted in advance, and the same is true for transactions executed in parallel. When transactions are executed in parallel and out of order, the traditional calculation of state root is no longer applicable because transactions are executed in a different order on different machines and the final state root is not guaranteed to be consistent, nor is the receipt root guaranteed to be consistent.
In a simple transfer transaction, we can judge whether two transactions are dependent based on the addresses of the sender and receiver. Take the following three transfer transactions as an example, A→B, C→D, and D→E. In this scenario, the three transactions are all related, so they cannot be executed in parallel. If the transactions are divided according to the previous dependency analysis method, it is bound to cause mistakes.
The executor will automatically arrange all the transactions in the block into the transaction DAG according to the transaction dependencies specified by the developer.
Coin Coin Latest News, Coin Coin Headlines
Similar News:You can also read news stories similar to this one that we have collected from other news sources.
Source: Utoday_en - 🏆 295. / 63 Read more »
Source: Utoday_en - 🏆 295. / 63 Read more »
Source: Cointelegraph - 🏆 562. / 51 Read more »
Source: Utoday_en - 🏆 295. / 63 Read more »
Source: TheBlock__ - 🏆 464. / 53 Read more »