mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-07-30 19:46:16 +00:00
remove bisq broadcast source
This commit is contained in:
@@ -86,27 +86,6 @@ public enum BroadcastSource {
|
||||
throw new IllegalStateException("Cannot broadcast transaction to " + getName() + " on network " + Network.get());
|
||||
}
|
||||
}
|
||||
},
|
||||
MEMPOOL_BISQ_SERVICES("markets.bisq.network", "https://markets.bisq.network", "http://runbtcxzz4v2haszypwbrn2baqdo7tlwt6dw7g27cwwaootd4gktwayd.onion/") {
|
||||
public Sha256Hash broadcastTransaction(Transaction transaction) throws BroadcastException {
|
||||
String data = Utils.bytesToHex(transaction.bitcoinSerialize());
|
||||
return postTransactionData(data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Network> getSupportedNetworks() {
|
||||
return List.of(Network.MAINNET);
|
||||
}
|
||||
|
||||
protected URL getURL(HostAndPort proxy) throws MalformedURLException, URISyntaxException {
|
||||
if(Network.get() == Network.MAINNET) {
|
||||
return new URI(getBaseUrl(proxy) + "/api/tx").toURL();
|
||||
} else if(Network.get() == Network.TESTNET) {
|
||||
return new URI(getBaseUrl(proxy) + "/testnet/api/tx").toURL();
|
||||
} else {
|
||||
throw new IllegalStateException("Cannot broadcast transaction to " + getName() + " on network " + Network.get());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
private final String name;
|
||||
|
||||
Reference in New Issue
Block a user