bitcoin/src/wallet
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
..
test tests: Use MakeUnique to construct objects owned by unique_ptrs 2018-09-21 11:03:21 +02:00
coincontrol.cpp Add -avoidpartialspends and m_avoid_partial_spends 2018-07-24 15:05:37 +09:00
coincontrol.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
coinselection.cpp util: Replace boost::signals2 with std::function 2018-08-24 08:34:38 -04:00
coinselection.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
crypter.cpp Make objects in range declarations immutable by default. Avoid unnecessary copying of objects in range declarations. 2018-08-27 18:19:33 +02:00
crypter.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
db.cpp Merge #12493: [wallet] Reopen CDBEnv after encryption instead of shutting down 2018-09-14 10:43:35 +02:00
db.h Add function to close all Db's and reload the databae environment 2018-08-09 11:27:39 -07:00
feebumper.cpp [wallet] Kill accounts 2018-08-30 16:08:42 +02:00
feebumper.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
fees.cpp Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
fees.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
init.cpp [build] remove ENABLE_WALLET ifdef from httprpc.cpp 2018-09-10 14:27:32 -04:00
rpcdump.cpp Merge #13424: Consistently validate txid / blockhash length and encoding in rpc calls 2018-09-24 15:09:11 -04:00
rpcwallet.cpp Merge #13424: Consistently validate txid / blockhash length and encoding in rpc calls 2018-09-24 15:09:11 -04:00
rpcwallet.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
wallet.cpp Merge #13546: wallet: Fix use of uninitialized value bnb_used in CWallet::CreateTransaction(...) 2018-09-24 07:37:18 -04:00
wallet.h Merge #10605: Add AssertLockHeld assertions in CWallet::ListCoins 2018-08-31 09:03:05 -04:00
walletdb.cpp Merge #13249: Make objects in range declarations immutable by default. Avoid unnecessary copying of objects in range declarations. 2018-09-04 15:50:08 +02:00
walletdb.h [wallet] Kill accounts 2018-08-30 16:08:42 +02:00
walletutil.cpp Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
walletutil.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00