-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transaction confirmation poll rate as a constructor option #2621
Comments
May I ask where to change it to 100ms, please? |
`let accounts; beforeEach(async () => { describe('LimitLess', () => { I tried to run this, and got : |
@nivida I think we can add an option in the constructor for transactionPollRate in AbstractWeb3Module class. What's your thinking here? |
@nivida add this too in 1.0 milestone. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions |
Hey @nivida @princesinha19 ! |
Bumping this, I have patched my own version, but would love to see this in the next release. |
@steelep can you share a code snippet? |
As a community PR is created so reopening the issue. |
Closed by #4672 |
Description
In the
TransactionObserver
class, the polling rate is set to poll every 1000 ms. While this is fine for the mainnet and testnets, people using private networks or ganache have experienced a significant performance dip.I personally have fixed this locally by changing the observer to poll every 100ms.
Perhaps this could be added as a configurable option (with a default of 1000), similar to the options added under this new transaction confirmation workflow.
Plus it's nice to remove hardcoded values in the codebase.
Expected behavior
Transaction confirmations are processed multiple times per second.
Actual behavior
Confirmations take up to 1000ms each, a hardcoded value.
Steps to reproduce the behavior
Configure web3 with any private network that has a high transaction throughput and try to run many transactions in a row.
Versions
The text was updated successfully, but these errors were encountered: