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

[BP: release/v6 <- #216] refactor: remove processed key and handling code #219

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Sep 4, 2024

This PR removes the ProcessedKey, which was previously being used by the swap and forward middleware to determine if a packet being handled was already processed by a middleware further up in the stack. If a packet was previously processed by some other middleware then this value would be initialized via a value passed through a context, this would ensure the PFM would not make a second call into the underlying app and invoke the OnRecvPacket callback twice, ensuring that the mint/burn voucher logic would not be invoked more than once.

If for some reason there is a need to have this sort of handling in the future then we can revisit bringing in this code.


This is an automatic backport of pull request #216 done by [Mergify](https://mergify.com).

* refactor: remove processed key and handling code

* refactor: ensure the underlying apps `OnRecvPacket` callback is invoked

* docs: fix broken link to Defund-Labs interquery.

I cannot find a link to the code so this now links to the spec

(cherry picked from commit 8cb681e)
@mergify mergify bot assigned jtieri Sep 4, 2024
@jtieri jtieri enabled auto-merge (squash) September 4, 2024 21:50
@jtieri jtieri merged commit b06a093 into release/v6 Sep 4, 2024
4 checks passed
@jtieri jtieri deleted the mergify/bp/release/v6/pr-216 branch September 4, 2024 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant