Skip to content

Commit

Permalink
Changelog, black
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Oct 26, 2023
1 parent 99b745e commit 26a5642
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 1 addition & 5 deletions eth_defi/confirmation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 26a5642

Please sign in to comment.