diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-09-29 07:59:22 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-09-29 08:12:55 +0200 |
commit | 7d563cc16d64c63bd003ac72248aa14bcf85481f (patch) | |
tree | 8ce70bfd90fc52a674fd45aca75f97fb88f78c21 /src/rpc/blockchain.cpp | |
parent | d675984fdfa481c1db08a4ad1926ae654737de15 (diff) | |
parent | fa05cfdf256f3bc13b89ea80231e342f4302d204 (diff) | |
download | bitcoin-7d563cc16d64c63bd003ac72248aa14bcf85481f.tar.xz |
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/rpc/blockchain.cpp')
-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 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; } |