From 9f1e8efa9e44c1037e9797aadf23c1cfe03711d3 Mon Sep 17 00:00:00 2001 From: Liu Pengpeng Date: Wed, 5 Feb 2020 19:34:03 +0800 Subject: [PATCH] Add BSV --- core/src/main/java/org/bitcorej/chain/ChainStateProxy.java | 4 +++- .../main/java/org/bitcorej/chain/bsv/BSVStateProvider.java | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/org/bitcorej/chain/ChainStateProxy.java b/core/src/main/java/org/bitcorej/chain/ChainStateProxy.java index f2066ca..70dbbc2 100644 --- a/core/src/main/java/org/bitcorej/chain/ChainStateProxy.java +++ b/core/src/main/java/org/bitcorej/chain/ChainStateProxy.java @@ -58,7 +58,9 @@ public class ChainStateProxy implements ChainState, UTXOState, USDTState { services.put("BTC_TEST", new BitcoinStateProvider(Network.TEST)); services.put("BCH_MAIN", new BCHStateProvider(Network.MAIN)); services.put("BCH_TEST", new BCHStateProvider(Network.TEST)); - services.put("BSV_MAIN", new BSVStateProvider(Network.MAIN)); + BSVStateProvider bsv = new BSVStateProvider(Network.MAIN); + services.put("BSV", bsv); + services.put("BSV_MAIN", bsv); services.put("BSV_TEST", new BSVStateProvider(Network.TEST)); services.put("USDT_MAIN", new USDTStateProvider(Network.MAIN)); services.put("USDT_TEST", new USDTStateProvider(Network.TEST)); diff --git a/core/src/main/java/org/bitcorej/chain/bsv/BSVStateProvider.java b/core/src/main/java/org/bitcorej/chain/bsv/BSVStateProvider.java index cfec22a..8632809 100644 --- a/core/src/main/java/org/bitcorej/chain/bsv/BSVStateProvider.java +++ b/core/src/main/java/org/bitcorej/chain/bsv/BSVStateProvider.java @@ -1,9 +1,9 @@ package org.bitcorej.chain.bsv; -import org.bitcorej.chain.bitcoin.BitcoinStateProvider; +import org.bitcorej.chain.bch.BCHStateProvider; import org.bitcorej.core.Network; -public class BSVStateProvider extends BitcoinStateProvider { +public class BSVStateProvider extends BCHStateProvider { public BSVStateProvider(Network network) { super(network); }