Method for executing smart contract, blockchain node, and storage medium
AssigneeAlipay (Hangzhou) Information Technology Co., Ltd.
InventorsYing YAN, Changzheng WEI, Xuepeng GUO
Life of this patent
Estimating the term…
Loading patent…
AssigneeAlipay (Hangzhou) Information Technology Co., Ltd.
InventorsYing YAN, Changzheng WEI, Xuepeng GUO
Estimating the term…
The present specification provides a method for executing a smart contract, a blockchain node, and a storage medium. An implementation of a method for executing a smart contract includes: receiving, by a blockchain node, a request for creating a smart contract, the request including a bytecode of the smart contract; starting, by the blockchain node after completing deployment of the smart contract, to compile the bytecode of the smart contract into a first machine code by using ahead-of-time compilation and storing the machine code; and performing, by the blockchain node in execution of the deployed smart contract and in response to the first machine code of the smart contract not being locally stored, JIT compilation on the bytecode of the smart contract to obtain a second machine code and storing the second machine code, and executing the second machine code. According to the above implementations of the present specification, when AoT compilation is not completed, JIT compilation execution is performed on the bytecode of the smart contract, so normal processing of a blockchain service request can be ensured while AoT compilation is performed.
A method for executing a smart contract, comprising:
A blockchain node for executing a smart contract, comprising:
A non-transitory storage medium, the storage medium having executable instructions stored thereon that are executable by one or more processors to perform acts including:
Dependencies are inferred from the claim text.