godot-solana-sdk icon indicating copy to clipboard operation
godot-solana-sdk copied to clipboard

Issue: Timeout needed on transaction confirmation

Open ZenRepublic opened this issue 1 year ago • 0 comments

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

ZenRepublic avatar Oct 13 '24 09:10 ZenRepublic