ApeWorX / ape-alchemy

Alchemy network provider plugin for the Ape Framework
https://www.apeworx.io/
19 stars 12 forks source link

fix: send private tx timeout #82

Open 0xcivita opened 2 weeks ago

0xcivita commented 2 weeks ago

Environment information

$ ape --version
0.8.5

$ ape plugins list
Installed Plugins
  alchemy      0.8.0
  arbitrum     0.8.0
  aws          0.8.0a3
  base         0.8.0
  etherscan    0.8.0
  foundry      0.8.0
  optimism     0.8.0
  solidity     0.8.2

What went wrong?

In ape console, private transactions sent through Alchemy do not immediately return a transaction receipt even when required_confirmations=0. For our silverback bot, example call to our contract

In [12]:  arbitrageur.execute(params, sender=acc, required_confirmations=0, private=True)

stalls for significant amount of time without returning and continuing to the next console input line. The private transaction does go through successfully though eventually.

How can it be fixed?

Seems like in private transactions there is a timeout parameter set to 25 blocks always for each transaction. Maybe this is the cause of the issue?

Would expect required_confirmations=0 to override any potential timeout.

linear[bot] commented 2 weeks ago

APE-1805 fix: send private tx timeout