Skip to content

[MultiSig] Exclude dust from input selection in the MS wallet.#520

Merged
fassadlr merged 4 commits intostratisproject:masterfrom
fassadlr:fixdust2
Apr 16, 2021
Merged

[MultiSig] Exclude dust from input selection in the MS wallet.#520
fassadlr merged 4 commits intostratisproject:masterfrom
fassadlr:fixdust2

Conversation

@fassadlr
Copy link
Contributor

@fassadlr fassadlr commented Apr 15, 2021

If we are filtering dust UTXOs from the withdrawal builder we need to also filter them when validating the transaction.

Not doing so fails the logic which checks if earliest unspent UTXO was used.

@fassadlr fassadlr requested review from quantumagi and zeptin April 15, 2021 19:39
@fassadlr fassadlr changed the title [MultiSig] Exclude dust inputs from ValidateTransaction's earliest input [MultiSig] Exclude dust from input selection in the MS wallet. Apr 16, 2021
Copy link
Contributor

@quantumagi quantumagi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

For the next PR: IsSpendable is not use in that many places. Should be easy to verify the approach and move the dust check there. That way we don't accumulate more and more dust that will be returned by the index and have to then be "scanned"

@fassadlr fassadlr merged commit a56c1e6 into stratisproject:master Apr 16, 2021
fassadlr added a commit that referenced this pull request Apr 16, 2021
* Exclude dust from ValidateTransaction

* Standardize dust filtering

* Make dust threshold constant

* Fix Tests
@fassadlr fassadlr deleted the fixdust2 branch April 19, 2021 06:20
fassadlr added a commit to zeptin/StratisFullNode that referenced this pull request May 27, 2021
…isproject#520)

* Exclude dust from ValidateTransaction

* Standardize dust filtering

* Make dust threshold constant

* Fix Tests
zeptin pushed a commit to zeptin/StratisFullNode that referenced this pull request Jun 15, 2021
…isproject#520)

* Exclude dust from ValidateTransaction

* Standardize dust filtering

* Make dust threshold constant

* Fix Tests
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.

2 participants