From fe50cb845e0f476579b638679888b1efba992064 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Mon, 5 Jun 2023 11:49:10 +0200 Subject: [PATCH] log batch errors getting fee estimates from server --- drongo | 2 +- .../sparrowwallet/sparrow/net/BatchedElectrumServerRpc.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drongo b/drongo index d3e003f7..a8df17ff 160000 --- a/drongo +++ b/drongo @@ -1 +1 @@ -Subproject commit d3e003f76e15e2808a30107e040d519c84393bfa +Subproject commit a8df17ff5eb906cf1d929f978fdad34bb244ce55 diff --git a/src/main/java/com/sparrowwallet/sparrow/net/BatchedElectrumServerRpc.java b/src/main/java/com/sparrowwallet/sparrow/net/BatchedElectrumServerRpc.java index 7afe0320..ce101b90 100644 --- a/src/main/java/com/sparrowwallet/sparrow/net/BatchedElectrumServerRpc.java +++ b/src/main/java/com/sparrowwallet/sparrow/net/BatchedElectrumServerRpc.java @@ -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); }