[bisq-network/bisq] List PickleProtocol (#2202)

lilcryptomoon notifications at github.com
Wed Jan 9 05:44:21 UTC 2019


lilcryptomoon commented on this pull request.



> + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with Bisq. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+package bisq.asset.coins;
+
+import bisq.asset.Coin;
+import bisq.asset.DefaultAddressValidator;
+
+public class PickleProtocol extends Coin {
+    public PickleProtocol() {
+
+        super("PickleProtocol", "PCK", new DefaultAddressValidator());

should I be  using ?
package bisq.asset.coins;

import bisq.asset.Base58BitcoinAddressValidator;
import bisq.asset.Coin;
import bisq.asset.NetworkParametersAdapter;

public class PickleProtocol extends Coin {

    public PickleProtocol() {
        super("PickleProtocol", "PCK", new Base58BitcoinAddressValidator(new PickleProtocolParams()));
    }


    public static class PickleProtocolParams extends NetworkParametersAdapter {

        public PickleProtocolParams() {
            addressHeader = 54;
            p2shHeader = 119;
            acceptableAddressCodes = new int[]{addressHeader, p2shHeader};
        }
    }
}

-- 
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/2202#discussion_r246265243
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20190108/57e40ce2/attachment.html>


More information about the bisq-github mailing list