Skip to content

fixes problem with SEND ALL other assets#522

Merged
tiero merged 1 commit into
vulpemventures:masterfrom
bordalix:fix_send_all
Jan 3, 2024
Merged

fixes problem with SEND ALL other assets#522
tiero merged 1 commit into
vulpemventures:masterfrom
bordalix:fix_send_all

Conversation

@bordalix

@bordalix bordalix commented Jan 3, 2024

Copy link
Copy Markdown
Contributor

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
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