lbrycrd/src/rpc
MarcoFalke 37612099ec
Merge #13424: Consistently validate txid / blockhash length and encoding in rpc calls
5eb20f81d9 Consistently use ParseHashV to validate hash inputs in rpc (Ben Woosley)

Pull request description:

  ParseHashV validates the length and encoding of the string and throws
  an informative RPC error on failure, which is as good or better than
  these alternative calls.

  Note I switched ParseHashV to check string length first, because
  IsHex tests that the length is even, and an error like:
  "must be of length 64 (not 63, for X)" is much more informative than
  "must be hexadecimal string (not X)" in that case.

  Split from #13420

Tree-SHA512: f0786b41c0d7793ff76e4b2bb35547873070bbf7561d510029e8edb93f59176277efcd4d183b3185532ea69fc0bbbf3dbe9e19362e8017007ae9d51266cd78ae
2018-09-24 15:09:11 -04:00
..
blockchain.cpp Merge #13424: Consistently validate txid / blockhash length and encoding in rpc calls 2018-09-24 15:09:11 -04:00
blockchain.h doc: correct GetDifficulty doc after #13288 2018-09-03 09:35:41 +08:00
client.cpp [rpc] Add getnodeaddresses RPC command 2018-09-17 22:55:23 +01:00
client.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
mining.cpp Merge #13424: Consistently validate txid / blockhash length and encoding in rpc calls 2018-09-24 15:09:11 -04:00
mining.h scripted-diff: Replace #include "" with #include <> (ryanofsky) 2017-11-16 08:23:01 +13:00
misc.cpp Merge #14008: Preserve a format of RPC command definitions 2018-09-10 18:14:05 +02:00
net.cpp [rpc] Add getnodeaddresses RPC command 2018-09-17 22:55:23 +01:00
protocol.cpp utils: Convert fs error messages from multibyte to utf-8 2018-09-11 03:11:39 +08:00
protocol.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
rawtransaction.cpp Merge #13424: Consistently validate txid / blockhash length and encoding in rpc calls 2018-09-24 15:09:11 -04:00
rawtransaction.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
register.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
server.cpp Merge #13424: Consistently validate txid / blockhash length and encoding in rpc calls 2018-09-24 15:09:11 -04:00
server.h convert C-style (void) parameter lists to C++ style () 2018-09-13 10:36:41 -07:00
util.cpp Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
util.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00