-
11.
公开(公告)号:US11782793B2
公开(公告)日:2023-10-10
申请号:US17740925
申请日:2022-05-10
Inventor: Maocai Li , Changqing Yang , Kaiban Zhou , Qucheng Liu , Gengliang Zhu , Jinsong Zhang , Huankun Huang
CPC classification number: G06F11/1446 , G06F16/27 , G06F2201/84 , G06Q20/389
Abstract: A blockchain-based data snapshot method, performed by a consensus node in a blockchain network, includes: obtaining a snapshot trigger instruction and a trigger moment of the snapshot trigger instruction; performing snapshot processing on one or more transaction blocks in a ledger at the trigger moment, to obtain a snapshot account state of a transaction account, the snapshot account state being account data related to transaction data in the transaction blocks; obtaining a write-ahead logging (WAL) log of a target block, the target block being a block with a highest block height in the transaction blocks, the WAL log including a log of account data corresponding to the target block; and correcting dirty data in the snapshot account state according to the WAL log, to obtain a corrected snapshot account state, the dirty data being generated based on incomplete transaction data in the target block included in the ledger.