diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-09-28 21:05:11 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-10-03 10:55:51 +0200 |
commit | 83ad563ade3c7db887b12f7aaf6d5ad9c20f208a (patch) | |
tree | 117a52fa867d0e19d27ad4527a0c0fae7b8f25dd /src/rpc | |
parent | 62886598dbed82a6ce2d987ad345ebf710751d26 (diff) | |
download | bitcoin-83ad563ade3c7db887b12f7aaf6d5ad9c20f208a.tar.xz |
[rpc] throw JSONRPCError when utxo set can not be read
Github-Pull: #8832
Rebased-From: fa05cfdf256f3bc13b89ea80231e342f4302d204
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/blockchain.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 9dc896b7af..d95be05c3d 100644 --- a/src/rpc/blockchain.cpp +++ b/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; } |