github.com/gravity-devs/liquidity@v1.5.3/x/liquidity/spec/05_begin_block.md (about) 1 <!-- order: 5 --> 2 3 # Begin-Block 4 5 Begin block operations for the liquidity module reinitialize batch messages that were not executed in the previous batch and delete batch messages that were executed or ready to be deleted. 6 7 ## Delete pool batch messages and reset states for pool batch messages 8 9 - Delete `{*action}MsgState` messages that have `ToBeDeleted` state 10 - Reset states for the remaining `{*action}MsgState` messages to execute on `end-block` of the next batch index 11 12 ## Reinitialize executed pool batch to next liquidity pool batch 13 14 Reinitialize the executed `PoolBatch` for the next batch. The reinitialization process includes the following actions: 15 16 - Increase state `BatchIndex` of the batch 17 - Reset state `BeginHeight` as current block height 18 - Reset state `Executed` as `false`