-
Notifications
You must be signed in to change notification settings - Fork 347
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
Can we skip polling when using broadcastTx
?
#1316
Comments
Tracking the block inclusion is an essential feature of const broadcasted = await this.forceGetTmClient().broadcastTxSync({ tx }); which you can call directly if you have a An alternative approach to using Tendermint34Client is keeping the polling but not waiting for the promise resolutions. In https://github.com/noislabs/nois-bot/blob/74a5f9c8fc64c325f0d078420169a8514e3c3dbf/index.js#L205-L222 you find a multi-cast implementation where 3 |
it's actually hard to get |
What if we add a cosmjs/packages/stargate/src/stargateclient.ts Lines 473 to 479 in e89a914
|
Yes that would work well 👍 |
@williamchong Can you have a look at #1396 to see if it solves your problem? |
Yes it would, thanks |
Done in #1396 |
Currently
broadcastTx
always polls tx for block inclusion. WhiletimeoutMs
andpollIntervalMs
is configurable, setting them to 0 would make the function instantly throws a timeout error as a side effect.Allowing polling to be skipped in
broadcastTx()
without throwing an error would allow batch sending of many transactions to be easier.(I understand many messages can be included in one transaction, however in some cases we would want to send batch transactions with different memos)
The text was updated successfully, but these errors were encountered: