[bisq-network/bisq] List Credits (CRDS) (#2289)

Bernard Labno notifications at github.com
Tue Jan 22 10:05:11 UTC 2019


blabno commented on this pull request.



> +                return AddressValidationResult.invalidStructure();
+
+            return super.validate(address);
+        }
+    }
+
+
+    public static class CreditsParams extends NetworkParametersAdapter {
+
+        public CreditsParams() {
+            addressHeader = 28;
+            p2shHeader = 5;
+            acceptableAddressCodes = new int[]{addressHeader, p2shHeader};
+        }
+    }
+}

Add missing newline

> +    @Test
+    public void testValidAddresses() {
+        assertValidAddress("CfXBhPhSxx1wqxGQCryfgn6iU1M1XFUuCo");
+        assertValidAddress("CMde7YERCFWkCL2W5i8uyJmnpCVj8Chhww");
+        assertValidAddress("CcbqU3MLZuGAED2CuhUkquyJxKaSJqv6Vb");
+        assertValidAddress("CKaig5pznaUgiLqe6WkoCNGagNMhNLtqhK");
+    }
+
+    @Test
+    public void testInvalidAddresses() {
+        assertInvalidAddress("1fXBhPhSxx1wqxGQCryfgn6iU1M1XFUuCo32");
+        assertInvalidAddress("CMde7YERCFWkCL2W5i8uyJmnpCVj8Chh");
+        assertInvalidAddress("CcbqU3MLZuGAED2CuhUkquyJxKaSJqv6V6#");
+        assertInvalidAddress("bKaig5pznaUgiLqe6WkoCNGagNMhNLtqhKkggg");
+    }
+}

Missing newline

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/2289#pullrequestreview-194922229
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20190122/86706059/attachment.html>


More information about the bisq-github mailing list