aboutsummaryrefslogtreecommitdiff
path: root/src/core_io.h
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2014-12-17 09:34:09 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2014-12-17 09:37:58 +0000
commit7f718139191d67da29c5d856d29e035bbc51e659 (patch)
treeafb10b02f54d3d94a2a20126d3108dc6d9744160 /src/core_io.h
parent41cced21063a89992ef393dda4fffc44ff60c7c3 (diff)
Bugfix: prioritisetransaction: Do some basic sanity checking on txid
Besides giving a nicer error, this also prevents logging arbitrary data (which could have been used to exploit log readers) into debug.log
Diffstat (limited to 'src/core_io.h')
-rw-r--r--src/core_io.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core_io.h b/src/core_io.h
index aba1928a36..bc2eb1edd0 100644
--- a/src/core_io.h
+++ b/src/core_io.h
@@ -19,6 +19,7 @@ extern CScript ParseScript(std::string s);
extern bool DecodeHexTx(CTransaction& tx, const std::string& strHexTx);
extern bool DecodeHexBlk(CBlock&, const std::string& strHexBlk);
extern uint256 ParseHashUV(const UniValue& v, const std::string& strName);
+extern uint256 ParseHashStr(const std::string&, const std::string& strName);
extern std::vector<unsigned char> ParseHexUV(const UniValue& v, const std::string& strName);
// core_write.cpp