Skip to content
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

refund instead of revert for replay protection #3371

Conversation

derpy-duck
Copy link
Contributor

No description provided.

@derpy-duck derpy-duck force-pushed the auto-relayer-1.1-refund-user-instead-of-revert-replay-protection branch from 0677100 to 6cb4a1c Compare September 18, 2023 14:59
Copy link
Contributor

@JoeHowarth JoeHowarth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tilt broken

DeliveryResults memory results;

// Check replay protection - if so, set status to receiver failure
if(getDeliverySuccessState().deliverySuccessBlock[vaaInfo.deliveryVaaHash] != 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked and didn't see an issue, but flagging that it makes me slightly nervous that now we're not checking replay protection until this point in code

@JoeHowarth JoeHowarth merged commit d75e5f9 into auto-relayer/v1.1 Sep 18, 2023
@JoeHowarth JoeHowarth deleted the auto-relayer-1.1-refund-user-instead-of-revert-replay-protection branch September 18, 2023 17:30
derpy-duck added a commit that referenced this pull request Sep 21, 2023
* refund instead of revert for replay protection

* Remove mention of forward from IWormholeReceiver
derpy-duck added a commit that referenced this pull request Sep 22, 2023
* refund instead of revert for replay protection

* Remove mention of forward from IWormholeReceiver
derpy-duck added a commit that referenced this pull request Sep 22, 2023
* AutoRelayer: remove forwards

* AutoRelayer: reentrancy guard

* AutoRelayer: remove forwards from sdk

* AutoRelayer: VaaKey -> MessageKey internals

* AutoRelayer: check delivery provider supports keyType

* AutoRelayer: VaaKey backcompat wire format

* AutoRelayer: sdk fix

* AutoRelayer: Add supported keys to delivery provider

* AutoRelayer: reintroduce reentrancy guard, revert when replay protection triggered

* AutoRelayer: fix manual delivery test

* AutoRelayer: review flups

* AutoRelayer: move libraries within relayer folder

* AutoRelayer: fix delivery provider config script

Also fix delivery provider revert bug

* AutoRelayer: Andreas code review flups

* AutoRelayer: js sdk includes MessageKey serde

* AutoRelayer: update sdk to use message key

* AutoRelayer: Simplify executeInstruction to internal call (#3352)

* refund instead of revert for replay protection (#3371)

* refund instead of revert for replay protection

* Remove mention of forward from IWormholeReceiver

* AutoRelayer: 1.1 reintroduce forwards (#3385)

* forward fallback WIP

* forward fallback no tmp storage

* Re-introduce testing of 'forward'

* Reintroduce forwards with original or default behavior for refund info + delivery provider info

* Reintroduce reentrant, only store refund information

---------

Co-authored-by: Joe Howarth <josephehowarth@gmail.com>
Co-authored-by: Joe Howarth <jhowarth@jumptrading.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.

2 participants