godot-solana-sdk
godot-solana-sdk copied to clipboard
Issue: Timeout needed on transaction confirmation
Description
Currently, we await transaction confirmation like this:
match tx_commitment: Commitment.PROCESSED: await tx.processed Commitment.CONFIRMED: await tx.confirmed Commitment.FINALIZED: await tx.finalized
Considering Solana sometime is congested, a transaction may not go through. If that happens, the whole game freezes up awaiting the transaction.
Suggested Improvements
Each of these options should return a confirmation:
submitted processed confirmed finalized failed
failed is returned if a timeout is reached so that the user can try again
Extra Information
No response