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

Swap claims not being detected #1054

Closed
grod220 opened this issue May 7, 2024 · 11 comments
Closed

Swap claims not being detected #1054

grod220 opened this issue May 7, 2024 · 11 comments
Assignees
Labels
bug Something isn't working priority Important to work on next

Comments

@grod220
Copy link
Collaborator

grod220 commented May 7, 2024

Can validate this with the testnet whale given it currently has a number of unclaimed swaps.

Can successfully build, but will hang indefinitely as it waits for it to be detected on chain.

After refreshing after a bit, it does seem to be removed from the unclaimed swaps list, however it's not found in tx details page.

@grod220 grod220 added bug Something isn't working priority Important to work on next mainnet labels May 7, 2024
@github-project-automation github-project-automation bot moved this to 🗄️ Backlog in Penumbra web May 7, 2024
@grod220 grod220 moved this from 🗄️ Backlog to 📝 Todo in Penumbra web May 7, 2024
@erwanor
Copy link
Member

erwanor commented May 7, 2024

@TalDerei might provide more color there but my understanding is that in penumbra-zone/penumbra#4312 we learned that the current wasm planner cannot balance SwapClaims, this was fixed in the PR, improved on in #4319, and needs to be backported/refactored via penumbra-zone/penumbra#4332

@erwanor
Copy link
Member

erwanor commented May 7, 2024

Flagging this because I think the detection issue could be a surprising symptom of tx planning not working

@Valentine1898
Copy link
Contributor

Could be related to #1003

After many attempts to debug #1003 I came up with nothing. It's like tendermint sometimes gives wrong transaction list for a block, but if you request transaction list for the same block after some time, everything is fine.

I'll try to provide more details, maybe it will be useful for this issue

@TalDerei
Copy link
Contributor

TalDerei commented May 7, 2024

currently looking into the issue. It seems to be the case that for different block heights, swap claims either (1) succeed, (2) fail due to binding signature verification failures, or (3) succeed but aren't populated in the transaction view.

Screenshot 2024-05-07 at 8 43 11 AM (1)

@erwanor
Copy link
Member

erwanor commented May 7, 2024

Could it be that depending on where they are emitted from, the prepaid fee is different, causing the balancing problem in some cases and not others? It might just be easier to push on making both impl use the same code and see if this goes away

@erwanor
Copy link
Member

erwanor commented May 7, 2024

Hmm good point, it looks hardcoded to zero in minifront, and computed from the on-chain gas prices in pcli (which should be zero)

@TalDerei
Copy link
Contributor

TalDerei commented May 7, 2024

@erwanor if you look at this list, you'll notice some swaps are followed by a swap claim and others are not. The swaps that succeed and are followed by the swap claim have zero fees, while the swaps that succeed and are not followed by the swap claim have non-zero fees. It's a fee balancing bug, and we should push on penumbra-zone/penumbra#4332 and #876.

Screenshot 2024-05-07 at 8 59 45 AM

@erwanor
Copy link
Member

erwanor commented May 7, 2024

Makes sense! nice sleuthing

@TalDerei
Copy link
Contributor

TalDerei commented May 7, 2024

tagging as on-hold until recent round of planner changes land in a slated 0.74.0 upgrade release, at which point we can update our rust deps and modify the web planner logic accordingly. Estimated timetable for release is Thursday.

cc @grod220 @conorsch

@TalDerei
Copy link
Contributor

@TalDerei
Copy link
Contributor

closing -- fixed in #1095

@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Penumbra web May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority Important to work on next
Projects
Archived in project
Development

No branches or pull requests

4 participants