Skip to content
Permalink
Browse files

[rpc] throw JSONRPCError when utxo set can not be read

Github-Pull: #8832
Rebased-From: fa05cfd
  • Loading branch information...
MarcoFalke committed Sep 28, 2016
1 parent 6288659 commit 83ad563ade3c7db887b12f7aaf6d5ad9c20f208a
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/rpc/blockchain.cpp
@@ -704,6 +704,8 @@ UniValue gettxoutsetinfo(const UniValue& params, bool fHelp)
ret.push_back(Pair("bytes_serialized", (int64_t)stats.nSerializedSize));
ret.push_back(Pair("hash_serialized", stats.hashSerialized.GetHex()));
ret.push_back(Pair("total_amount", ValueFromAmount(stats.nTotalAmount)));
} else {
throw JSONRPCError(RPC_INTERNAL_ERROR, "Unable to read UTXO set");
}
return ret;
}

0 comments on commit 83ad563

Please sign in to comment.
You can’t perform that action at this time.