aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-09-29 07:59:22 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-09-29 08:12:55 +0200
commit7d563cc16d64c63bd003ac72248aa14bcf85481f (patch)
tree8ce70bfd90fc52a674fd45aca75f97fb88f78c21 /src
parentd675984fdfa481c1db08a4ad1926ae654737de15 (diff)
parentfa05cfdf256f3bc13b89ea80231e342f4302d204 (diff)
Merge #8832: [rpc] throw JSONRPCError when utxo set can not be read
fa05cfd [rpc] throw JSONRPCError when utxo set can not be read (MarcoFalke)
Diffstat (limited to 'src')
-rw-r--r--src/rpc/blockchain.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp
index 91d3197cd0..41d862934a 100644
--- a/src/rpc/blockchain.cpp
+++ b/src/rpc/blockchain.cpp
@@ -848,6 +848,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;
}