"Transaction with hash #{pending_tx_hash_str} already included into the block #{block_hash}. We should invalidate consensus for it in order to re-fetch transactions",
fetcher::pending_transactions_to_refetch
)
fetch_block_and_invalidate(block_hash)
else
Logger.debug(
"Transaction with hash #{pending_tx_hash_str} is still pending. Do nothing.",
fetcher::pending_transactions_to_refetch
)
end
else
Logger.debug(
"Transaction #{pending_tx_hash_str} already included into the block #{block_hash}. We should invalidate consensus for it in order to re-fetch transactions",
"Transaction with hash #{pending_tx_hash_str}doesn't exist in the node anymore. We should remove it from Blockscout DB.",
fetcher::pending_transactions_to_refetch
)
fetch_block_and_invalidate(block_hash)
fetch_pending_transaction_and_delete(pending_tx)
end
end
end)
@ -91,6 +106,29 @@ defmodule Indexer.PendingTransactionsSanitizer do