diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-09-29 07:59:22 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-09-29 08:12:55 +0200 |
| commit | 7d563cc16d64c63bd003ac72248aa14bcf85481f (patch) | |
| tree | 8ce70bfd90fc52a674fd45aca75f97fb88f78c21 /src/rpc/blockchain.cpp | |
| parent | Merge #8784: Copyright headers for build scripts (diff) | |
| parent | [rpc] throw JSONRPCError when utxo set can not be read (diff) | |
| download | discoin-7d563cc16d64c63bd003ac72248aa14bcf85481f.tar.xz discoin-7d563cc16d64c63bd003ac72248aa14bcf85481f.zip | |
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 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; } |