support broadcasting via mempool.space when using signet

This commit is contained in:
Craig Raw 2023-04-14 07:41:00 -06:00
parent 1a46f8a643
commit c7ab8e4601

View file

@ -56,6 +56,8 @@ public enum BroadcastSource {
return new URL(getBaseUrl(proxy) + "/api/tx"); return new URL(getBaseUrl(proxy) + "/api/tx");
} else if(Network.get() == Network.TESTNET) { } else if(Network.get() == Network.TESTNET) {
return new URL(getBaseUrl(proxy) + "/testnet/api/tx"); return new URL(getBaseUrl(proxy) + "/testnet/api/tx");
} else if(Network.get() == Network.SIGNET) {
return new URL(getBaseUrl(proxy) + "/signet/api/tx");
} else { } else {
throw new IllegalStateException("Cannot broadcast transaction to " + getName() + " on network " + Network.get()); throw new IllegalStateException("Cannot broadcast transaction to " + getName() + " on network " + Network.get());
} }