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

fixes problem with SEND ALL other assets #522

Merged
merged 1 commit into from Jan 3, 2024

Conversation

bordalix
Copy link
Contributor

@bordalix bordalix commented Jan 3, 2024

Closes #516

The problem was fees to low:

  • fee estimation was made (too early) with only inputs and outputs for asset to be sent
  • afterwards, when adding inputs and outputs to pay fee the transaction would get too large for the fee amount

The solution implemented is to calculate a dummy pset paying fees, get the fee amount for this dummy pset and start counting fee amount for the entire transaction from this value.

@tiero please review

- the problem was fees to low
- fee estimation was made with only asset inputs and outputs
- afterwards, when adding inputs and outputs to pay fee the tx would get too large for the fee amount

the solution implemented is to calculate a dummy pset paying fees, get the fee amount for this dummy pset and start counting fee amount for the entire transaction from this value.
@tiero tiero merged commit b7e73a0 into vulpemventures:master Jan 3, 2024
6 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.

Trying to SEND ALL with USDT it throws sistematically Request timed out
2 participants