Troy Giorshev
5bceef6b12
Change CMessageHeader Constructor
...
This commit removes the single-parameter contructor of CMessageHeader
and replaces it with a default constructor.
The single parameter contructor isn't used anywhere except for tests.
There is no reason to initialize a CMessageHeader with a particular
messagestart. This messagestart should always be replaced when
deserializing an actual message header so that we can run checks on it.
The default constructor initializes it to zero, just like the command
and checksum.
This also removes a parameter of a V1TransportDeserializer constructor,
as it was only used for this purpose.
2020-09-22 22:01:14 -04:00
MarcoFalke
fa488f131f
scripted-diff: Bump copyright headers
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
2020-04-16 13:33:09 -04:00
practicalswift
d3d4892ef4
tests: Simplify code by removing unwarranted use of unique_ptr:s
2020-03-11 12:51:26 +00:00
practicalswift
7b169cae20
tests: Add deserialization fuzzing of SnapshotMetadata (utxo_snapshot), uint160 and uint256
2020-03-11 11:42:27 +00:00
Pieter Wuille
4de934b9b5
Convert compression.h to new serialization framework
2020-01-21 20:29:11 -08:00
practicalswift
709afb2a7d
tests: Test serialisation as part of deserialisation fuzzing. Test round-trip equality where possible. Avoid code repetition.
2019-12-06 09:15:56 +00:00
practicalswift
897849d8c2
tests: Add deserialization fuzzing harnesses
2019-11-21 17:53:06 +00:00
practicalswift
db4bd32cc3
tests: Skip unnecessary fuzzer initialisation. Hold ECCVerifyHandle only when needed.
2019-10-24 08:06:38 +00:00
practicalswift
5c2987636f
tests: Remove TRANSACTION_DESERIALIZE (replaced by transaction fuzzer)
2019-10-09 13:53:13 +00:00
practicalswift
ffa2221256
tests: Pass fuzzing inputs as constant references
2019-10-07 08:48:35 +00:00
practicalswift
9a841696c1
tests: Reduce compilation time and unneccessary recompiles by removing unused includes in tests
2019-06-26 20:37:48 +02:00
MarcoFalke
faf400077d
scripted-diff: Bump copyright headers in test, bench
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./src/bench/
./contrib/devtools/copyright_header.py update ./src/test/
-END VERIFY SCRIPT-
2019-04-11 13:34:43 -04:00
MarcoFalke
fabcfa5f0c
fuzz: Move deserialize tests to test/fuzz/deserialize.cpp
2019-02-13 11:46:36 -05:00