Skip to content

fix(bridge): reset expiry timer on re-proposal after burn/refund expiry#1081

Draft
sameh-farouk wants to merge 1 commit intodevelopmentfrom
fix/bridge-pallet-block-reset
Draft

fix(bridge): reset expiry timer on re-proposal after burn/refund expiry#1081
sameh-farouk wants to merge 1 commit intodevelopmentfrom
fix/bridge-pallet-block-reset

Conversation

@sameh-farouk
Copy link
Member

Summary

  • Reset tx.block to current block when the first signature is added after an expiry, preventing immediate re-expiry by on_finalize
  • Remove dead code in propose_stellar_burn_transaction_or_add_sig where a redundant contains_key check made the block-update branch unreachable

Closes #1080

…expiry

After on_finalize expires a burn or refund transaction, re-proposals add
signatures via add_stellar_sig_burn_transaction / add_stellar_sig_refund_transaction
but tx.block was never updated. This caused on_finalize to immediately
re-expire the transaction in the same block the new signature was added
(since current_block - old_block >= RetryInterval was still true).

Also removes dead code in propose_stellar_burn_transaction_or_add_sig where
a redundant contains_key check made the block-update branch unreachable.

Closes #1080

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pallet-tft-bridge: expired burns/refunds never reset block on re-proposal (dead code)

1 participant