-
Notifications
You must be signed in to change notification settings - Fork 728
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
refund instead of revert for replay protection #3371
Conversation
afbdf5d
to
8e341ee
Compare
0677100
to
6cb4a1c
Compare
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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
* refund instead of revert for replay protection * Remove mention of forward from IWormholeReceiver
* refund instead of revert for replay protection * Remove mention of forward from IWormholeReceiver
* 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>
No description provided.