Skip to content

Commit

Permalink
Don't clean mempool on catch-up
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Jan 13, 2025
1 parent 562a8f0 commit cc12a62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions counterparty-core/counterpartycore/lib/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
gas,
ledger,
log,
mempool,
message_type,
util,
)
Expand Down Expand Up @@ -1503,7 +1502,6 @@ def catch_up(db, check_asset_conservation=True):
fetcher = start_rsfetcher()
else:
assert parsed_block_index == block_height
mempool.clean_mempool(db)

parsed_blocks += 1
formatted_duration = util.format_duration(time.time() - start_time)
Expand Down
3 changes: 2 additions & 1 deletion counterparty-core/counterpartycore/lib/follow.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ def receive_rawblock(self, body):
blocks.catch_up(self.db, check_asset_conservation=False)
else:
blocks.parse_new_block(self.db, decoded_block)
mempool.clean_mempool(self.db)
if not config.NO_MEMPOOL:
mempool.clean_mempool(self.db)
if not config.NO_TELEMETRY:
TelemetryOneShot().submit()

Expand Down
1 change: 1 addition & 0 deletions release-notes/release-notes-v10.9.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ The following transaction construction parameters have been deprecated (but rema
- Have the node terminate when the `follow` loop raises an error
- Don't stop the server on "No such mempool or blockchain" error
- Handle correctly RPC call errors from the API
- Don't clean mempool on catchup


## Codebase
Expand Down

0 comments on commit cc12a62

Please sign in to comment.