-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent taking of offers with unequal bank account types (excl. SEPA) (…
…#3673) * Use strict stubbing for ReceiptValidatorTest to avoid confusion Remove redundant stubs from the MoneyGram and Western Union tests and ensure that all such stubs result in failure. In particular, the 'offer' mock is never accessed directly by ReceiptValidator. * Prevent taking of offers with unequal bank account types Use stricter criteria when deciding which of the taker's accounts (if any) are valid for a given offer. Specifically, prevent National Bank accounts from being used to take Same / Specific Bank(s) offers, so the three payment method types can never being mixed. This prevents an error on the trading peer when the trade starts, due to enforcement of equal maker & taker payment method IDs (except for SEPA) in the Contract payload constructor. This partially addresses #3602, where the erroneous peer response causes the taker to be presented with a confusing timeout.
- Loading branch information
Showing
2 changed files
with
72 additions
and
17 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