log batch errors getting fee estimates from server

This commit is contained in:
Craig Raw 2023-06-05 11:49:10 +02:00
parent f4b9807285
commit fe50cb845e
2 changed files with 3 additions and 2 deletions

2
drongo

@ -1 +1 @@
Subproject commit d3e003f76e15e2808a30107e040d519c84393bfa
Subproject commit a8df17ff5eb906cf1d929f978fdad34bb244ce55

View file

@ -4,6 +4,7 @@ import com.github.arteam.simplejsonrpc.client.JsonRpcClient;
import com.github.arteam.simplejsonrpc.client.Transport;
import com.github.arteam.simplejsonrpc.client.exception.JsonRpcBatchException;
import com.github.arteam.simplejsonrpc.client.exception.JsonRpcException;
import com.github.arteam.simplejsonrpc.core.domain.ErrorMessage;
import com.sparrowwallet.drongo.protocol.Sha256Hash;
import com.sparrowwallet.drongo.wallet.Wallet;
import com.sparrowwallet.sparrow.EventManager;
@ -227,7 +228,7 @@ public class BatchedElectrumServerRpc implements ElectrumServerRpc {
try {
return batchRequest.execute();
} catch(JsonRpcBatchException e) {
throw new ElectrumServerRpcException("Error getting fee estimates", e);
throw new ElectrumServerRpcException("Error getting fee estimates: " + e.getErrors(), e);
} catch(Exception e) {
throw new ElectrumServerRpcException("Error getting fee estimates for target blocks: " + targetBlocks, e);
}