diff --git a/sawtooth-daml-rpc/src/main/java/com/blockchaintp/sawtooth/daml/rpc/SawtoothReadService.java b/sawtooth-daml-rpc/src/main/java/com/blockchaintp/sawtooth/daml/rpc/SawtoothReadService.java index 192bcac1..1defa1dd 100644 --- a/sawtooth-daml-rpc/src/main/java/com/blockchaintp/sawtooth/daml/rpc/SawtoothReadService.java +++ b/sawtooth-daml-rpc/src/main/java/com/blockchaintp/sawtooth/daml/rpc/SawtoothReadService.java @@ -61,7 +61,7 @@ public class SawtoothReadService implements ReadService { private static final Timestamp BEGINNING_OF_EPOCH = new Timestamp(0); - private static final long DEFAULT_TIMEOUT = 0; + private static final long DEFAULT_TIMEOUT = 10; private final String url; private final ExecutorService executorService; @@ -179,6 +179,7 @@ private TimeModel getTimeModel() { default: LOGGER.severe( String.format("Invalid response received from ClientBlockGetByNumRequest: %s", response.getStatus())); + return null; } } catch (TimeoutException exc) { LOGGER.warning("Still waiting for ClientStateGetResponse...");