mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-10 08:37:05 +00:00
add error message when connecting to bitcoin core with a taproot wallet
This commit is contained in:
@@ -1105,6 +1105,8 @@ public class ElectrumServer {
|
||||
Matcher walletLoadingMatcher = RPC_WALLET_LOADING_PATTERN.matcher(bwtStartException.getMessage());
|
||||
if(bwtStartException.getMessage().contains("Wallet file not specified")) {
|
||||
throw new ServerException("Bitcoin Core requires Multi-Wallet to be enabled in the Server Preferences");
|
||||
} else if(bwtStartException.getMessage().contains("Taproot wallets are not supported")) {
|
||||
throw new ServerException(bwtStartException.getMessage());
|
||||
} else if(walletLoadingMatcher.matches() && walletLoadingMatcher.group(1) != null) {
|
||||
throw new ServerException(walletLoadingMatcher.group(1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user