Begin-Block
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.
Delete pool batch messages and reset states for pool batch messages
- Delete
{*action}MsgStatemessages that haveToBeDeletedstate - Reset states for the remaining
{*action}MsgStatemessages to execute onend-blockof the next batch index
Reinitialize executed pool batch to next liquidity pool batch
Reinitialize the executed PoolBatch for the next batch. The reinitialization process includes the following actions:
- Increase state
BatchIndexof the batch - Reset state
BeginHeightas current block height - Reset state
Executedasfalse