Change the dust size to use the standard 5430 satoshis#24
Open
deweller wants to merge 1 commit intoloon3:masterfrom
Open
Change the dust size to use the standard 5430 satoshis#24deweller wants to merge 1 commit intoloon3:masterfrom
deweller wants to merge 1 commit intoloon3:masterfrom
Conversation
…actions. Swapbots will choose UTXOs with exactly 5430 satoshis in order to construct swap transactions that have no change. This saves blockchain space and gives better confirmation times for users. If Pockets sends UTXOs with 5470 satoshis, then all of these new UTXOs will force swapbot to generate change when these are spent.
Owner
|
The Bitcore library has a dust limit of 5460 satoshis. I chose 5470 to steer clear of that limit while also creating a unique dust amount to identify txs created via Pockets. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Swapbots will choose UTXOs with exactly 5430 satoshis in order to construct swap transactions that require no change transactions. This creates smaller transactions, gives better confirmation times for users and will ultimately allow us to use lower fees on outbound swaps.
If Pockets sends UTXOs with 5470 satoshis, then more swaps will generate change UTXOs when these are spent due to the extra 40 satoshis that need to be sent back as change.