diff options
| author | MarcoFalke <[email protected]> | 2016-09-28 21:05:11 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2016-09-28 21:00:58 +0200 |
| commit | fa05cfdf256f3bc13b89ea80231e342f4302d204 (patch) | |
| tree | f3363775d43236416e7e830016d32b4b9b42e195 /src/rpc/blockchain.cpp | |
| parent | Merge #8810: tests: Add exception error message for JSONRPCException (diff) | |
| download | discoin-fa05cfdf256f3bc13b89ea80231e342f4302d204.tar.xz discoin-fa05cfdf256f3bc13b89ea80231e342f4302d204.zip | |
[rpc] throw JSONRPCError when utxo set can not be read
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 91d3197cd..41d862934 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; } |