From bd46a01f9bbbd27025eb000d4036710feaf2d7a5 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 11 Jan 2016 17:56:36 +0100 Subject: [PATCH] Added one more test for multisig address --- Logic/Financial/Payouts.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Logic/Financial/Payouts.cs b/Logic/Financial/Payouts.cs index 5e62e0b1..f71938d6 100644 --- a/Logic/Financial/Payouts.cs +++ b/Logic/Financial/Payouts.cs @@ -518,11 +518,7 @@ namespace Swarmops.Logic.Financial // Test the payout address - is it valid and can we handle it? - try - { - new BitcoinAddress (payout.RecipientPerson.BitcoinPayoutAddress); - } - catch (Exception) + if (!BitcoinUtility.IsValidBitcoinAddress(payout.RecipientPerson.BitcoinPayoutAddress)) { // Notify person that address is invalid, then clear it @@ -534,9 +530,6 @@ namespace Swarmops.Logic.Financial OutboundComm.CreateNotification(organization, NotificationResource.BitcoinPayoutAddress_Bad, primaryStrings, secondaryStrings, People.FromSingle(payout.RecipientPerson)); - OutboundComm.CreateNotification(organization, NotificationResource.BitcoinPayoutAddress_Bad, - primaryStrings, secondaryStrings, - People.FromSingle(Person.FromIdentity (1))); // temporary copy to 1 to see what the notification looks like payout.RecipientPerson.BitcoinPayoutAddress = string.Empty;