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

BroadcastRawTransaction timeout on mainnet #169

Open
jaydp17 opened this issue Dec 2, 2021 · 1 comment
Open

BroadcastRawTransaction timeout on mainnet #169

jaydp17 opened this issue Dec 2, 2021 · 1 comment

Comments

@jaydp17
Copy link

jaydp17 commented Dec 2, 2021

Experiencing the same problem as #99 on mainnet.

There's one more issue about the same problem but on testnet #167

Most broadcasts take somewhere between 20 ~ 60s & about 50% of them timeout with the following error printed by the theta node

[2021-12-02 13:00:11] ERROR [rpc] HTTP request timed out: requestBody={"
{\\"jsonrpc\\":\\"2.0\\",\\"id\\":1,\\"method\\":\\"theta.BroadcastRawTransaction\\",\\"params\\":
[{\\"tx_bytes\\":\\"SOME_TX_BYTES\\"}]}"}

This happens on both v3.1.1 & v3.2.0

@jieyilong
Copy link
Member

It could be because the node is sometimes out of sync with the network. Another option is to call theta.BroadcastRawTransactionAsync instead, and check if the tx is confirmed later:

https://docs.thetatoken.org/docs/rpc-api-reference#broadcastrawtransactionasync

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@jaydp17 @jieyilong and others