bitcoin/bitcoin — pull request #5499 by luke-jr (2014-12-17 09:39:51+00:00)
Title: 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

This fixes both issues reported by @SergioDemianLerner on #5398