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

fix: "tree signing session not found" error #323

Merged
merged 12 commits into from
Sep 20, 2024

Conversation

louisinger
Copy link
Collaborator

This PR contains hotfixes regarding the tree signing session during claim. It adds a test to reproduce the error. It also includes a fix in btc-embedded coinselection (unrelated to the original error but raised by the test)

Claim failing error

The problem is coming from handleRoundStream SDK function receiving "RoundFinalized" event not related to the current round, making the SDK to register two times the same payment, causing the timeout error server side.

fix = ignore unrelated round finalized event client side + check for duplicate inputs while registering payments.

Coin selection fixes

  • re-estimate fees when the wallet does several coin selection rounds, avoid min-relay-fee not met errors
  • lease outputs while selecting utxos

it closes #308

@altafan @bordalix please review

@tiero tiero changed the title Fix "tree signing session not found" error fix: "tree signing session not found" error Sep 18, 2024
@altafan altafan merged commit 9e3d667 into ark-network:master Sep 20, 2024
5 checks passed
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.

client-sdk: error when claiming for the second time
2 participants