-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
fix: wait on solana confirmed tx #11515
Conversation
blockhash, | ||
lastValidBlockHeight, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't these values be based of the blockhash
included in the transaction? That's why I originally didn't do it because it would be harder to refactor the code to pass in the correct values.
However I suppose it's not a huge deal, as the only drawback is that the user will simply wait longer for the transaction to fail, but still.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it could be like that because it's working and also some thread on Solana StackOverflow is saying the same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. If pending transactions ever are implemented then I'd suggest to fix this part as well to include the blockchash
from the transaction and its corresponding lastValidBlockHeight
. As I mentioned in the previous comment - the only drawback of the solution in this PR should be longer than necessary wait times for transaction failure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the difference in blockhashes might be, that the txn will be considered expired later (due to this blockhash being younger than the one in the txn). But success / failure should return normally
* fix(blockchain-link): confirm solana transactions * fix(suite): wait on solana transaction confirmation in review (cherry picked from commit 3cb139f)
Description
Followup on #11033 because I don't have permissions to push to Vaccumlabs fork.
This PR improves both parts of the old PR but still it's not a final solution for handling transaction status on Solana. It would be better to handle it with pending state in transaction list and more or less make it the same UX as on other chains but let's do it later
Screenshots: