Patent attributes
Embodiments of this specification provide a transaction processing method, apparatus, and electronic device for a blockchain. The method includes: executing, by a blockchain node in the blockchain, a consensus protocol for an N-th round of consensus, wherein the consensus protocol comprises reaching a consensus on a blockchain transaction of the N-th round of consensus and upon the consensus being reached, executing the blockchain transaction of the N-th round of consensus; writing, by the blockchain node after the execution of the blockchain transaction, a block comprising the blockchain transaction of the N-th round of consensus into the blockchain; and concurrently with the writing of the block, executing, by the blockchain node, the consensus protocol for an (N+1)-th round of consensus in the blockchain.