mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
log batch errors getting fee estimates from server
This commit is contained in:
parent
f4b9807285
commit
fe50cb845e
2 changed files with 3 additions and 2 deletions
2
drongo
2
drongo
|
@ -1 +1 @@
|
||||||
Subproject commit d3e003f76e15e2808a30107e040d519c84393bfa
|
Subproject commit a8df17ff5eb906cf1d929f978fdad34bb244ce55
|
|
@ -4,6 +4,7 @@ import com.github.arteam.simplejsonrpc.client.JsonRpcClient;
|
||||||
import com.github.arteam.simplejsonrpc.client.Transport;
|
import com.github.arteam.simplejsonrpc.client.Transport;
|
||||||
import com.github.arteam.simplejsonrpc.client.exception.JsonRpcBatchException;
|
import com.github.arteam.simplejsonrpc.client.exception.JsonRpcBatchException;
|
||||||
import com.github.arteam.simplejsonrpc.client.exception.JsonRpcException;
|
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.protocol.Sha256Hash;
|
||||||
import com.sparrowwallet.drongo.wallet.Wallet;
|
import com.sparrowwallet.drongo.wallet.Wallet;
|
||||||
import com.sparrowwallet.sparrow.EventManager;
|
import com.sparrowwallet.sparrow.EventManager;
|
||||||
|
@ -227,7 +228,7 @@ public class BatchedElectrumServerRpc implements ElectrumServerRpc {
|
||||||
try {
|
try {
|
||||||
return batchRequest.execute();
|
return batchRequest.execute();
|
||||||
} catch(JsonRpcBatchException e) {
|
} catch(JsonRpcBatchException e) {
|
||||||
throw new ElectrumServerRpcException("Error getting fee estimates", e);
|
throw new ElectrumServerRpcException("Error getting fee estimates: " + e.getErrors(), e);
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
throw new ElectrumServerRpcException("Error getting fee estimates for target blocks: " + targetBlocks, e);
|
throw new ElectrumServerRpcException("Error getting fee estimates for target blocks: " + targetBlocks, e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue