Skip to content

Commit

Permalink
CHIA-1387 Simplify fetching TX data in create_bundle_from_mempool_ite…
Browse files Browse the repository at this point in the history
…ms (#18586)

Simplify fetching TX data in create_bundle_from_mempool_items.
  • Loading branch information
AmineKhaldi authored Sep 16, 2024
1 parent 1b4b8e8 commit 0b68fd9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chia/full_node/mempool.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,7 @@ async def create_bundle_from_mempool_items(
sigs: List[G2Element] = []
log.info(f"Starting to make block, max cost: {self.mempool_info.max_block_clvm_cost}")
bundle_creation_start = monotonic()
with self._db_conn:
cursor = self._db_conn.execute("SELECT name, fee FROM tx ORDER BY fee_per_cost DESC, seq ASC")
cursor = self._db_conn.execute("SELECT name, fee FROM tx ORDER BY fee_per_cost DESC, seq ASC")
skipped_items = 0
for row in cursor:
name = bytes32(row[0])
Expand Down

0 comments on commit 0b68fd9

Please sign in to comment.