Skip to content

Commit

Permalink
increase confimation timeout to 90
Browse files Browse the repository at this point in the history
  • Loading branch information
sdevkc committed Dec 31, 2023
1 parent 892d444 commit db9fb0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/solana/rpc/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ def confirm_transaction(
sleep_seconds: The number of seconds to sleep when polling the signature status.
last_valid_block_height: The block height by which the transaction would become invalid.
"""
timeout = time() + 30
timeout = time() + 90
commitment_to_use = _COMMITMENT_TO_SOLDERS[commitment or self._commitment]
commitment_rank = int(commitment_to_use)
if last_valid_block_height: # pylint: disable=no-else-return
Expand Down
2 changes: 1 addition & 1 deletion src/solana/rpc/async_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ async def confirm_transaction(
raise TransactionExpiredBlockheightExceededError(f"{tx_sig} has expired: block height exceeded")
return resp
else:
timeout = time() + 30
timeout = time() + 90
while time() < timeout:
resp = await self.get_signature_statuses([tx_sig])
resp_value = resp.value[0]
Expand Down

0 comments on commit db9fb0c

Please sign in to comment.