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

CCIP-4403 don't request lbtc attestation if payload is returned #1557

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

bukata-sa
Copy link
Contributor

Lombard send full payload if attestation is disabled. It can be enabled by redeploying token pools and synchronizing this between chains.
If mistake took place and we got a message with full payload while attestation is enabled onchain at Lombard side, message will be available for manual exec

@bukata-sa bukata-sa requested a review from a team as a code owner December 3, 2024 12:24
if len(destTokenData) != 32 {
s.lggr.Infow("SourceTokenData.extraData size is not 32. This is deposit payload, not sha256(payload). Attestation is disabled onchain",
"destTokenData", hexutil.Encode(destTokenData))
return destTokenData, nil
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are we returning destTokenData here instead of an error signaling unexpected input?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because this is expected input
in destTokenData Lombard can send to us either full payload (if attestation is disabled) either sha256(payload)
In first case we won't call attestation at all

@bukata-sa bukata-sa enabled auto-merge (squash) December 3, 2024 15:32
@bukata-sa bukata-sa merged commit 857c5a6 into ccip-develop Dec 3, 2024
155 of 157 checks passed
@bukata-sa bukata-sa deleted the fix/lbtc-offchain branch December 3, 2024 15:39
bukata-sa added a commit that referenced this pull request Dec 6, 2024
Lombard send full payload if attestation is disabled. It can be enabled
by redeploying token pools and synchronizing this between chains.
If mistake took place and we got a message with full payload while
attestation is enabled onchain at Lombard side, message will be
available for manual exec
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.

3 participants