diff options
| author | Matt Corallo <[email protected]> | 2011-03-05 16:45:56 +0100 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2011-03-05 16:45:56 +0100 |
| commit | c1f74f152b278ca11390519fded87c09e7f05437 (patch) | |
| tree | e0bf81411e4b05210a95811d00ca8aa5939657a9 /rpc.cpp | |
| parent | setaccount should return if an invalid address is provided. (diff) | |
| download | discoin-c1f74f152b278ca11390519fded87c09e7f05437.tar.xz discoin-c1f74f152b278ca11390519fded87c09e7f05437.zip | |
throw JSONRPCError(-5, "Invalid bitcoin address") instead.
Diffstat (limited to 'rpc.cpp')
| -rw-r--r-- | rpc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -384,7 +384,7 @@ Value setaccount(const Array& params, bool fHelp) uint160 hash160; bool isValid = AddressToHash160(strAddress, hash160); if (!isValid) - throw runtime_error("provided address is not valid"); + throw JSONRPCError(-5, "Invalid bitcoin address"); string strAccount; |