Skip to content

Commit

Permalink
Add BSV
Browse files Browse the repository at this point in the history
  • Loading branch information
pengpengliu committed Feb 5, 2020
1 parent f5b8a49 commit 9f1e8ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion core/src/main/java/org/bitcorej/chain/ChainStateProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Original file line number Diff line number Diff line change
@@ -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);
}
Expand Down

0 comments on commit 9f1e8ef

Please sign in to comment.