CPC G06F 16/2365 (2019.01) [G06F 16/219 (2019.01); G06F 16/2343 (2019.01); G06F 16/27 (2019.01); H04L 9/50 (2022.05); H04L 2209/463 (2013.01)] | 20 Claims |
1. A method comprising:
obtaining an operation transaction on a blockchain, wherein the operation transaction comprises a first transaction request and a second transaction request;
performing a first transaction operation corresponding to the first transaction request on the blockchain;
performing a second transaction operation corresponding to the second transaction request on the blockchain; and
performing, when an operation result corresponding to either one of the first transaction operation or the second transaction operation is failure, a rollback on a transaction operation whose operation result was a success,
wherein:
the rollback is performed on a target transaction operation comprising a transfer operation and an adjustment operation; and
the transfer operation comprises transferring resource data whose quantity is the same as a target transaction quantity on the blockchain, and the adjustment operation comprises adjusting a remaining resource quantity of a target transaction account in a transaction recording table associated with the blockchain.
|