zcashd/src
Homu ad56e9c2e9 Auto merge of #4693 - daira:explicit-coercions, r=str4d
Make some conversions explicit to reduce sanitizer warnings

The warnings eliminated by this PR are of the forms, for example:
```
src/chain.h:591:16: runtime error: implicit conversion from type 'unsigned long' of value 18446744073709551615 (64-bit, unsigned) to type 'int' changed the value to -1 (32-bit, signed)
src/scalar_4x64_impl.h:130:110: runtime error: implicit conversion from type 'uint64_t' (aka 'unsigned long') of value 533633915002 (64-bit, unsigned) to type 'unsigned char' changed the value to 122 (8-bit, unsigned)
src/zcash/util.cpp:9:25: runtime error: implicit conversion from type 'uint64_t' (aka 'unsigned long') of value 1000000000 (64-bit, unsigned) to type 'std::vector<unsigned char, std::allocator<unsigned char> >::value_type' (aka 'unsigned char') changed the value to 0 (8-bit, unsigned)
```

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2020-09-24 12:16:11 +00:00
..
bench FFI: Remove circuit parameter hashes from librustzcash_init_zksnark_params 2020-08-25 13:07:22 +01:00
compat Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
config Be consistent about what path to include bitcoin-config.h with 2018-01-23 07:44:05 +01:00
consensus Adjust GetActiveFundingStream* comments 2020-08-22 03:47:12 +12:00
crypto Merge remote-tracking branch 'upstream/master' into bazel-patches 2020-08-14 14:30:15 -06:00
fuzzing Added libfuzzer support. 2020-08-12 21:41:30 +01:00
gtest Auto merge of #4542 - nuttycom:reorder_checks, r=nuttycom 2020-08-26 02:09:06 +00:00
leveldb
obj
policy Apply suggestions from code review 2019-12-17 11:05:28 -06:00
pow/tromp Squashed commit of the following: 2018-03-02 11:45:05 +00:00
primitives Replace libsodium's crypto_sign with ed25519-zebra 2020-08-20 19:00:47 +01:00
rpc Prevent creation of shielded transactions in initial block download. 2020-09-03 07:13:50 -06:00
rust FFI: Rename r to rcm 2020-08-25 17:30:38 +01:00
script Fix undefined behavior in CScriptNum 2020-04-15 09:19:00 -06:00
secp256k1 Make some conversions explicit to reduce sanitizer warnings. 2020-08-27 23:57:28 +01:00
support Improve memory_cleanse documentation 2020-05-01 11:00:49 +12:00
test Fix buffer overflows in P2PKH tests 2020-08-26 14:01:40 -06:00
univalue Avoid names starting with __. 2020-05-15 16:27:34 -06:00
wallet Auto merge of #4696 - str4d:3640-z_sendmany-any-taddr, r=str4d 2020-09-22 18:09:58 +00:00
zcash Make some conversions explicit to reduce sanitizer warnings. 2020-08-27 23:57:28 +01:00
zmq Pass nHeight instead of pindex to AddToWalletIfInvolvingMe() 2020-07-08 12:53:03 +08:00
.clang-format
Makefile.am Replace C++ logging with tracing logging 2020-08-07 15:08:10 +01:00
Makefile.bench.include Replace librustzcash from depends system with src/rust 2020-03-06 16:49:03 +13:00
Makefile.gtest.include Merge remote-tracking branch 'upstream/master' into bazel-patches 2020-08-14 14:30:15 -06:00
Makefile.test.include Merge remote-tracking branch 'upstream/master' into bazel-patches 2020-08-14 14:30:15 -06:00
addressindex.h add addressindex related RPCs 2019-07-31 10:31:16 -06:00
addrman.cpp Update GetAdjustedTime() to GetTime(). 2020-02-25 16:57:22 +00:00
addrman.h Update GetAdjustedTime() to GetTime(). 2020-02-25 16:57:22 +00:00
alert.cpp Clean up some iterator usage. 2020-07-13 19:35:26 +01:00
alert.h Move GetWarnings and related globals to util. 2020-02-21 01:28:13 +00:00
alertkeys.h
amount.cpp add MINOR_CURRENCY_UNIT 2020-05-18 16:53:01 -03:00
amount.h add MINOR_CURRENCY_UNIT 2020-05-18 16:53:01 -03:00
arith_uint256.cpp Auto merge of #4056 - rex4539:fix-rpc-undefined-behavior, r=ebfull 2019-07-26 15:19:07 -07:00
arith_uint256.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
asyncrpcoperation.cpp Add univalue to updatecheck.py and update univalue, removing calls to deprecated methods 2020-05-14 12:42:19 -06:00
asyncrpcoperation.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
asyncrpcqueue.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
asyncrpcqueue.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
base58.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
base58.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
bech32.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
bech32.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
bitcoin-cli-res.rc Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
bitcoin-cli.cpp Globals: Decouple GetConfigFile and ReadConfigFile from global mapArgs 2019-12-04 17:18:44 +00:00
bitcoin-tx-res.rc Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
bitcoin-tx.cpp Make evident the relationship between chainparams and key IO. 2020-07-09 17:48:47 -06:00
bitcoind-res.rc Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
bitcoind.cpp init: Add spans for initialization and shutdown 2020-08-11 14:38:51 +01:00
bloom.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
bloom.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
chain.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
chain.h Make some conversions explicit to reduce sanitizer warnings. 2020-08-27 23:57:28 +01:00
chainparams.cpp Set activation height for Canopy on mainnet. 2020-09-01 13:16:05 -06:00
chainparams.h Rename KeyInfo -> KeyConstants and move out of Consensus namespace. 2020-07-09 18:19:13 -06:00
chainparamsbase.cpp Chainparams: Translations: DRY: options and error strings 2019-12-04 17:18:31 +00:00
chainparamsbase.h Chainparams: Translations: DRY: options and error strings 2019-12-04 17:18:31 +00:00
chainparamsseeds.h
checkpoints.cpp limit blockchain progress to a max of 1.000000 2019-10-24 15:51:00 -03:00
checkpoints.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
checkqueue.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
clientversion.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
clientversion.h make-release.py: Versioning changes for 4.0.0. 2020-09-01 13:28:51 -06:00
coincontrol.h SQUASH "Implement watchonly support in fundrawtransaction" 2019-11-14 15:52:26 +00:00
coins.cpp Zero-initialize HistoryNode values. 2020-07-23 16:24:48 -06:00
coins.h push/pop history with tests 2020-04-08 08:49:01 +12:00
compat.h Minimal code changes to allow msvc compilation. 2020-04-30 17:40:26 +12:00
compressor.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
compressor.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
core_io.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
core_memusage.h Account for malloc overhead 2019-11-14 16:21:37 -07:00
core_read.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
core_write.cpp Make evident the relationship between chainparams and key IO. 2020-07-09 17:48:47 -06:00
dbwrapper.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
dbwrapper.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
deprecation.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
deprecation.h make-release.py: Versioning changes for 4.0.0. 2020-09-01 13:28:51 -06:00
experimental_features.cpp add -lightwalletd experimental option 2020-04-09 11:05:21 -03:00
experimental_features.h add -lightwalletd experimental option 2020-04-09 11:05:21 -03:00
hash.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
hash.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
httprpc.cpp Replace boost::function with std::function (C++11) 2020-02-04 19:54:25 -07:00
httprpc.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
httpserver.cpp Remove remaining instances of boost::function 2020-02-04 20:08:25 -07:00
httpserver.h Remove remaining instances of boost::function 2020-02-04 20:08:25 -07:00
init.cpp FFI: Remove circuit parameter hashes from librustzcash_init_zksnark_params 2020-08-25 13:07:22 +01:00
init.h Add an RPC method for setting the tracing filter directives 2020-08-07 15:26:28 +01:00
key.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
key.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
key_constants.h Fix typo in constant. 2020-07-09 18:26:11 -06:00
key_io.cpp Fix typo in constant. 2020-07-09 18:26:11 -06:00
key_io.h Rename KeyInfo -> KeyConstants and move out of Consensus namespace. 2020-07-09 18:19:13 -06:00
keystore.cpp Store imported Sapling ExtFVKs in wallet database 2020-02-21 01:32:15 +00:00
keystore.h Remove default address parameter from Sapling keystore methods 2020-02-20 13:01:49 +00:00
limitedmap.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
main.cpp Add comment in lieu of redundant overwinter version check & fix tests. 2020-08-25 20:07:06 -06:00
main.h Auto merge of #4593 - str4d:proofverifier-refactor, r=str4d 2020-08-07 12:16:59 +00:00
mempool_limit.cpp Update GetAdjustedTime() to GetTime(). 2020-02-25 16:57:22 +00:00
mempool_limit.h Update parameter names to match ZIP 2019-10-17 16:39:32 -06:00
memusage.h compute more structures in mempool DynamicMemoryUsage 2020-04-14 10:22:27 -03:00
merkleblock.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
merkleblock.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
metrics.cpp metrics: Collect general stats before clearing screen 2020-07-18 23:35:19 +12:00
metrics.h Metrics screen: display hash rates using SI prefixes rather than as powers of 2. 2020-07-17 13:56:33 +01:00
miner.cpp Apply suggestions from code review 2020-07-10 08:29:47 -06:00
miner.h Add support for Sapling addresses in -mineraddress 2020-02-28 13:59:53 +13:00
mruset.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
net.cpp Add fields to logging in CNode and UpdateTip 2020-08-11 01:56:32 +01:00
net.h Add some spans to the Zcash codebase 2020-08-07 15:26:28 +01:00
netbase.cpp Kill insecure_random and associated global state 2020-01-22 21:41:26 +00:00
netbase.h [trivial] Reuse translation and cleanup DEFAULT_* values 2019-12-04 17:18:41 +00:00
noui.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
noui.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
pow.cpp Fix a comment typo in pow.cpp 2020-08-06 19:03:52 +10:00
pow.h Revert "Pass the block height through to CheckEquihashSolution()" 2020-07-15 16:16:40 +12:00
prevector.h Attempt to log before terminating if prevector allocation fails 2018-04-26 11:30:33 +01:00
proof_verifier.cpp Replace libsodium's crypto_sign with ed25519-zebra 2020-08-20 19:00:47 +01:00
proof_verifier.h Replace libsodium's crypto_sign with ed25519-zebra 2020-08-20 19:00:47 +01:00
protocol.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
protocol.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
pubkey.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
pubkey.h Remove template matching and pseudo opcodes 2019-12-04 20:36:46 +00:00
random.cpp Replace libsodium's randombytes_buf with rand_core::OsRng::fill_bytes 2020-08-18 21:57:06 +01:00
random.h Replace libsodium's randombytes_buf with rand_core::OsRng::fill_bytes 2020-08-18 21:57:06 +01:00
rest.cpp Add univalue to updatecheck.py and update univalue, removing calls to deprecated methods 2020-05-14 12:42:19 -06:00
reverselock.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
scheduler.cpp Fix bug in CScheduler 2020-07-13 19:40:49 +01:00
scheduler.h Remove remaining instances of boost::function 2020-02-04 20:08:25 -07:00
sendalert.cpp Send alert to put pre-Heartwood nodes into safe mode. 2020-07-15 19:45:49 +12:00
serialize.h Replace libsodium's crypto_sign with ed25519-zebra 2020-08-20 19:00:47 +01:00
spentindex.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
streams.h CBufferedFile: use eof() method rather than feof(src) in error message. 2020-08-26 13:20:20 +01:00
sync.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
sync.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
threadsafety.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
timedata.cpp Update GetAdjustedTime() to GetTime(). 2020-02-25 16:57:22 +00:00
timedata.h Update GetAdjustedTime() to GetTime(). 2020-02-25 16:57:22 +00:00
timestampindex.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
tinyformat.h Squashed commit of the following: 2018-03-02 11:45:05 +00:00
torcontrol.cpp Replace boost::function with std::function (C++11) 2020-02-04 19:54:25 -07:00
torcontrol.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
transaction_builder.cpp Replace libsodium's crypto_sign with ed25519-zebra 2020-08-20 19:00:47 +01:00
transaction_builder.h Auto merge of #4593 - str4d:proofverifier-refactor, r=str4d 2020-08-07 12:16:59 +00:00
txdb.cpp Zero-initialize HistoryNode values. 2020-07-23 16:24:48 -06:00
txdb.h Add ZIP 221 logic to block index 2020-04-08 08:49:01 +12:00
txmempool.cpp initialize size_t 2020-06-01 09:47:02 -03:00
txmempool.h Auto merge of #4343 - oxarbitrage:issue3083, r=str4d 2020-03-12 06:35:04 +00:00
ui_interface.h add txexpirynotify 2020-02-13 21:42:25 -03:00
uint252.h Remove nType and nVersion from Zcash-specific code 2018-04-17 13:09:47 +01:00
uint256.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
uint256.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
undo.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
util.cpp Allow multiple nuparams options in config file 2020-09-04 19:00:38 +01:00
util.h util: Use DEBUG level for LogPrint(), leaving INFO for LogPrintf() 2020-08-11 02:10:42 +01:00
utilmoneystr.cpp Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
utilmoneystr.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
utilstrencodings.cpp Add a new safe chars rule for node version string 2020-04-14 09:08:51 -03:00
utilstrencodings.h Add a new safe chars rule for node version string 2020-04-14 09:08:51 -03:00
utiltest.cpp Replace libsodium's crypto_sign with ed25519-zebra 2020-08-20 19:00:47 +01:00
utiltest.h Auto merge of #4593 - str4d:proofverifier-refactor, r=str4d 2020-08-07 12:16:59 +00:00
utiltime.cpp Add comment to `MilliSleep` documenting that it is an interruption point. 2020-03-10 17:57:52 +00:00
utiltime.h Replace http with https: in links to the MIT license. 2019-07-18 15:26:01 +01:00
validationinterface.cpp Pass nHeight instead of pindex to AddToWalletIfInvolvingMe() 2020-07-08 12:53:03 +08:00
validationinterface.h Pass nHeight instead of pindex to AddToWalletIfInvolvingMe() 2020-07-08 12:53:03 +08:00
version.h Set activation height for Canopy on mainnet. 2020-09-01 13:16:05 -06:00
warnings.cpp Move GetWarnings() into its own file. 2020-02-21 01:31:16 +00:00
warnings.h Move GetWarnings() into its own file. 2020-02-21 01:31:16 +00:00
zcbenchmarks.cpp Replace libsodium's crypto_sign with ed25519-zebra 2020-08-20 19:00:47 +01:00
zcbenchmarks.h Remove libsnark code for pre-Sapling Sprout proofs 2019-08-22 15:42:47 +01:00