Skip to content

Commit

Permalink
update network seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
niels1286 committed Jan 30, 2019
1 parent 33384ba commit a1d6f22
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public RpcClientResult getSeedByHeight(@ApiParam(name = "startHeight", value = "
return Result.getFailed(KernelErrorCode.PARAMETER_ERROR).toRpcClientResult();
}
List<byte[]> list = randomSeedService.getSeeds(startHeight, endHeight);
int count = list.size();
if (list.isEmpty()) {
return Result.getFailed().toRpcClientResult();
}
Expand All @@ -88,7 +89,7 @@ public RpcClientResult getSeedByHeight(@ApiParam(name = "startHeight", value = "
return Result.getFailed().toRpcClientResult();
}
RandomSeedDTO dto = new RandomSeedDTO();
dto.setCount(list.size());
dto.setCount(count);
dto.setAlgorithm(algorithm);
BigInteger value = new BigInteger(seed);
dto.setSeed(value.toString());
Expand Down

0 comments on commit a1d6f22

Please sign in to comment.