Remove reference to cargo-checksum.sh
Leftover after merging https://github.com/zcash/zcash/pull/4743.
Caused compilation warnings of the form:
```
shasum: cargo-checksum.sh: No such file or directory
```
build: Remove Rust staticlib naming workaround
The bug this was working around was fixed in Rust 1.44.0. We now pin
Rust 1.44.1, so we no longer need the workaround (and in fact, it is
necessary to make this change, as rustc no longer generates the old
filename, causing our Windows cross-compile to fail).
The bug this was working around was fixed in Rust 1.44.0. We now pin
Rust 1.44.1, so we no longer need the workaround (and in fact, it is
necessary to make this change, as rustc no longer generates the old
filename).
Some consumers were relying on the libsodium behaviour that the output
length was not checked against the configured hash output length.
blake2b_simd::Hash::as_bytes returns a correctly-sized slice, which we
were then failing to copy into the consumer's buffer. Instead of
requiring the consumer to provide a full-length buffer and then truncate
the output themselves (likely causing a double-copy, as we don't have
nice slices in C++), we instead allow the consumer to consume up to the
maximum output.
Flush witness data when consistent (part 2)
Closes#4680. After CWallet::ChainTipAdded() updates the witness data, it may flush it to disk (SetBestChain()); make sure the locator part is consistent with the witnesses (height).
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>
Address some performance regressions
@str4d identified and fixed some performance regressions in our elliptic curve and proving crates, and we also changed to complete formulas in `bls12_381` to get some better performance in some cases. The result:
```
v3.1.0
"runningtime": 0.59883
before upgrading rust:
"runningtime": 0.823932
after upgrading rust:
"runningtime": 0.83004
after upgrading rust packages:
"runningtime": 0.763065
```
which gets us some of the way back to where we were.
f545dfabf Merge #18: Use utf-8 to decode filename
f8e797a05 Use utf-8 to decode filename
2fc114812 Merge #14: Fixes to allow building with msvc.
d6eab9313 Fixes to allow building with msvc.
git-subtree-dir: src/leveldb
git-subtree-split: f545dfabff4c2e9836efed094dba99a34fbc6b88
524b7e36a Merge #19: Increase maximum read-only mmap()s used from 1000 to 4096 on 64-bit systems
4874cb8d3 Increase maximum number of read-only mmap()s used from 1000 to 4096 on 64 bit systems.
git-subtree-dir: src/leveldb
git-subtree-split: 524b7e36a8e3bce6fcbcd1b5df09024283f325ba
A few "a->an" and "an->a".
"Shows, if the supplied default SOCKS5 proxy" -> "Shows if the supplied default SOCKS5 proxy". Change made on 3 occurrences.
"without fully understanding the ramification of a command" -> "without fully understanding the ramifications of a command".
Removed duplicate words such as "the the".
Zcash: Only the changes to files and code that we have.
196962ff0 Add AcceleratedCRC32C to port_win.h
1bdf1c34c Merge upstream LevelDB v1.20
d31721eb0 Merge #17: Fixed file sharing errors
fecd44902 Fixed file sharing error in Win32Env::GetFileSize(), Win32SequentialFile::_Init(), Win32RandomAccessFile::_Init() Fixed error checking in Win32SequentialFile::_Init()
5b7510f1b Merge #14: Merge upstream LevelDB 1.19
0d969fd57 Merge #16: [LevelDB] Do no crash if filesystem can't fsync
c8c029b5b [LevelDB] Do no crash if filesystem can't fsync
a53934a3a Increase leveldb version to 1.20.
f3f139737 Separate Env tests from PosixEnv tests.
eb4f0972f leveldb: Fix compilation warnings in port_posix_sse.cc on x86 (32-bit).
d0883b600 Fixed path to doc file: index.md.
7fa20948d Convert documentation to markdown.
ea175e28f Implement support for Intel crc32 instruction (SSE 4.2)
95cd743e5 Including <limits> for std::numeric_limits.
646c3588d Limit the number of read-only files the POSIX Env will have open.
d40bc3fa5 Merge #13: Typo
ebbd772d3 Typo
a2fb086d0 Add option for max file size. The currend hard-coded value of 2M is inefficient in colossus.
git-subtree-dir: src/leveldb
git-subtree-split: 196962ff01c39b4705d8117df5c3f8c205349950
a31c8aa40 Add NewAppendableFile for win32 environment
1913d718e Merge upstream LevelDB 1.19
3080a45b6 Increase leveldb version to 1.19.
fa6dc010a A zippy change broke test assumptions about the size of compressed output. Fix the tests by allowing more slop in zippy's behavior. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=123432472
06a191b8d fix problems in LevelDB's caching code
a7bff697b Fix LevelDB build when asserts are enabled in release builds. (#367)
ea992b467 Change std::uint64_t to uint64_t (#354)
e84b5bdb5 This CL fixes a bug encountered when reading records from leveldb files that have been split, as in a [] input task split.
321134390 Deleted redundant null ptr check prior to delete.
7306ef856 Merge pull request #348 from randomascii/master
6b18316d0 Fix signed/unsigned mismatch on VC++ builds
adbe3eb07 Putting build artifacts in subdirectory.
2d0320a45 Merge pull request #329 from ralphtheninja/travis-badge
dd1c3c357 add travis build badge
43fcf23af Merge pull request #328 from cmumford/master
9fcae6164 Added a Travis CI build file.
dac40d25f Merge pull request #284 from ideawu/master
8ec241a3b Merge pull request #317 from falvojr/patch-1
5d36bedd1 Merge pull request #272 from vapier/master
4753c9b61 Added a contributors section to README.md
e2446d084 Merge pull request #275 from paulirish/patch-1
706b7f8d4 Resolve race when getting approximate-memory-usage property
3c9ff3c69 Only compiling TrimSpace on linux.
f8d205cf8 Including atomic_pointer.h in port_posix
889de31a5 Let LevelDB use xcrun to determine Xcode.app path instead of using a hardcoded path.
528c2bc6a Add "approximate-memory-usage" property to leveldb::DB::GetProperty
359b6bcec Add leveldb::Cache::Prune
50e77a826 Fix size_t/int comparison/conversion issues in leveldb.
5208e7952 Added leveldb::Status::IsInvalidArgument() method.
ce45404bb Suppress error reporting after seeking but before a valid First or Full record is encountered.
b9afa1f2e include <assert> -> <cassert>
edf2939c0 Update README.md
65190ac48 Will not reuse manifest if reuse_logs options is false.
ac1d69da3 LevelDB now attempts to reuse the preceding MANIFEST and log file when re-opened.
76bba139c fix indent
8fcceb2a6 log compaction output file's level along with number
0e0f07417 documentation. improved link
c85addcdf readme: improved documentation link
ceff6f121 Fix Android/MIPS build.
77948e7ee Add benchmark that measures cost of repeatedly opening the database.
34ad72e3e Move header guard below copyright banner.
a75d435d1 Clean up layering of storage/leveldb/...
b234f65b3 Added a new fault injection test.
c4c38f9c1 Add arm64 support to leveldb.
cea9b10e5 Fixed incorrect comment wording for Iterator::Seek.
c00c569f2 Deleted old README file.
git-subtree-dir: src/leveldb
git-subtree-split: a31c8aa408d5594830f7cb20ead1ef1dff51b79e
leveldb's buildsystem causes us a few problems:
- breaks out-of-tree builds
- forces flags used for some tools
- limits cross builds
Rather than continuing to add wrappers around it, simply integrate it into our
build.