git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ce5e5cd
)
RPC scaninput: change format of error message
author
CryptoManiac
<balthazar@yandex.ru>
Sun, 4 Oct 2015 17:36:08 +0000 (10:36 -0700)
committer
CryptoManiac
<balthazar@yandex.ru>
Sun, 4 Oct 2015 17:36:08 +0000 (10:36 -0700)
src/rpcmining.cpp
patch
|
blob
|
history
diff --git
a/src/rpcmining.cpp
b/src/rpcmining.cpp
index
899743b
..
f8b747f
100644
(file)
--- a/
src/rpcmining.cpp
+++ b/
src/rpcmining.cpp
@@
-124,7
+124,7
@@
Value scaninput(const Array& params, bool fHelp)
if (!txindex.vSpent[nOut].IsNull())
{
stringstream strErrorMsg;
- strErrorMsg << boost::format("%s prev tx already used at %s") % tx.GetHash().ToString() % txindex.vSpent[nOut].ToString();
+ strErrorMsg << boost::format("(%s, %d) is already spent") % tx.GetHash().ToString().substr(0, 10) % nOut;
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strErrorMsg.str());
}