Skip to content
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

Set the polling interval in Web3j.build not work for abi generated contract instance. #1113

Closed
RealDeanZhao opened this issue Nov 28, 2019 · 2 comments
Assignees
Labels
awaiting-pr Waiting for PR

Comments

@RealDeanZhao
Copy link

Issue_title

Set the polling interval in Web3j.build not work for abi generated contract instance.

Issue_description

First I tried to build a web3j instance with the default build method. When I use the generated contract class to make a contract call, it took about 15 seconds to get the transaction receipt.
Then I tried to use Web3j.build(url, 500L,...) to build the instance, but it didn't work.
Last, I tried to load the contract instance with a custom transaction manager:

final TransactionManager txManager = new RawTransactionManager(this.web3j, this.credentials, -1L, 20, 500L); contractInstance.load(address, web3j, txManager, gasProvider)
then I can get the transaction receipt will quickly.

Issue_context

Ethereum Client: Hyperledger Besu 1.3.5
Web3j: 4.5.7

@RealDeanZhao RealDeanZhao added the needs-review issue/PR needs review from maintainer label Nov 28, 2019
@iikirilov
Copy link
Contributor

I think the polling interval in Web3j.build is used for something else. @AlexandrouR can you look into this please

@AlexandrouR
Copy link
Contributor

@RealDeanZhao the polling interval that is set is used in combination with flowable the way you did it is the correct way. I will update the documentation to make this clear.

@iikirilov iikirilov added awaiting-pr Waiting for PR and removed needs-review issue/PR needs review from maintainer labels Dec 14, 2019
@mohamedelshami mohamedelshami closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-pr Waiting for PR
Projects
None yet
Development

No branches or pull requests

4 participants