-
Notifications
You must be signed in to change notification settings - Fork 67
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
Transactions broadcasted with pushTransaction
are not included in the chain
#3131
Comments
|
Yes, exactly. But pushTransaction should then sync it to other nodes via mempool syncing, but that's not available yet. |
The behaviours of Because of this, transactions that get pushed only into in the local mempool of a node that isn't an elected block producer, wouldn't never make it in a block. My PR changed this. |
Description
While implementing transaction broadcasting to the chain, I encountered an issue where transactions sent via the pushTransaction RPC method were not included in the chain. Although the response includes the transaction hash, this hash cannot be found in the explorer.
Sample data
RPC request with
pushTransaction
method:RPC request with
sendRawTransaction
method:Workaround
Since the pushTransaction method performs a validity check on the transaction, I will continue using it. However, upon receiving a successful response with the transaction hash, I will follow up with an additional RPC request using the sendRawTransaction method with the same data. This ensures the transaction is included in the chain.
Assumptions
Both RPC requests will generate and return the same transaction hash.
The text was updated successfully, but these errors were encountered: