Add logging for mempool drain in PoA proposer
This commit is contained in:
@@ -141,6 +141,7 @@ class PoAProposer:
|
|||||||
max_txs = self._config.max_txs_per_block
|
max_txs = self._config.max_txs_per_block
|
||||||
max_bytes = self._config.max_block_size_bytes
|
max_bytes = self._config.max_block_size_bytes
|
||||||
pending_txs = mempool.drain(max_txs, max_bytes, self._config.chain_id)
|
pending_txs = mempool.drain(max_txs, max_bytes, self._config.chain_id)
|
||||||
|
self._logger.info(f"[PROPOSE] drained {len(pending_txs)} txs from mempool, chain={self._config.chain_id}")
|
||||||
|
|
||||||
# Process transactions and update balances
|
# Process transactions and update balances
|
||||||
processed_txs = []
|
processed_txs = []
|
||||||
|
|||||||
Reference in New Issue
Block a user