-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent amounts less than minsize being processed
Prior to this commit, it was possible for a modified taker client to get a maker to participate in a join tx with a size less than their minsize, which could burn up to an amount of the txfee contribution to miner fees. After this commit, the maker stops the coinjoin coordination when the too-small coinjoin size is seen, as intended. Additionally, a check is now in place in the function `Maker.verify_unsigned_transaction` that the earned amount is positive, which otherwise could raise an Exception (but should now be impossible in any case). Also, changed the default txfee_contibution to zero as it is of no value to have a nonzero amount. Also return added for unrecognized orderid, for clearer error messages.
- Loading branch information
Showing
3 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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