From 26a56424904257fa91058f6e8c1954c9c3eb26bc Mon Sep 17 00:00:00 2001 From: Mikko Ohtamaa Date: Thu, 26 Oct 2023 12:14:02 +0200 Subject: [PATCH] Changelog, black --- CHANGELOG.md | 2 ++ eth_defi/confirmation.py | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92673d49..88736712 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Current - Add `launch_anvil(fork_block_number)` option +- API change: If all providers fail in `wait_and_broadcast_multiple_nodes()`, + raise the exception from the last provider # 0.22.28 diff --git a/eth_defi/confirmation.py b/eth_defi/confirmation.py index 9a95eed2..72fdb60f 100644 --- a/eth_defi/confirmation.py +++ b/eth_defi/confirmation.py @@ -313,10 +313,7 @@ def broadcast_and_wait_transactions_to_complete( SignedTxType = Union[SignedTransaction, SignedTransactionWithNonce] -def _broadcast_multiple_nodes( - providers: Collection[BaseProvider], - signed_tx: SignedTxType -): +def _broadcast_multiple_nodes(providers: Collection[BaseProvider], signed_tx: SignedTxType): """Attempt to broadcast a transaction through multiple providers. :param providers: @@ -344,7 +341,6 @@ def _broadcast_multiple_nodes( tx_hash = signed_tx.hash.hex() for p in providers: - name = get_provider_name(p) logger.info("Broadcasting %s through %s", signed_tx.hash.hex(), name)