Function is_resubmitable

Source
pub fn is_resubmitable(tx: &Transaction) -> bool
Expand description

Determines if a transaction’s blockhash can be safely updated.

A blockhash can only be updated if the transaction requires a single signature (the relayer). Multi-signer transactions cannot have their blockhash updated because it would invalidate the existing signatures from other parties.

§Returns

  • true if the transaction has only one required signer (relayer can update blockhash)
  • false if the transaction has multiple required signers (blockhash is locked)

§Use Cases

  • Prepare phase: Decide whether to fetch a fresh blockhash
  • Submit phase: Decide whether BlockhashNotFound error is retriable