rust-bitcoin-unsafe-fast/src/network
Andrew Poelstra f332a1967e
Merge rust-bitcoin/rust-bitcoin#750: Use `test_data` for big objects, add big block for benchmarking
247a14f4c3 Use test big block for bench_stream_reader instead of making one (Riccardo Casatta)
b92dfbb63f exclude test_data when publishing the crate (Riccardo Casatta)
f5a9681a2a include a big block in test_data, use it for ser/de benchmark (Riccardo Casatta)
09dada55d6 Move bip158 test vectors to test_data (Riccardo Casatta)
06d1a820c3 Remove testnet block hex from tests, use test_data with include_bytes! (Riccardo Casatta)

Pull request description:

  In the first two commits I moved some data from source files to the newly introduced `test_data` dir, including it with `include_[str|bytes]!` macro.

  The second-to-last commit introduces a big block in test_data which is very handy in ser/de benchmark (I used it for #672) because with smaller blocks you may not notice performance improvements.

  Since I don't want to pollute the package the last commit excludes the `test_data` dir from the published package. I think it's fine to do it because dependent packages don't run dependencies tests.

ACKs for top commit:
  apoelstra:
    ACK 247a14f4c3
  Kixunil:
    tACK 247a14f4c3

Tree-SHA512: a2beb635b0a358737d0b57d3e7205b1ddf87652b9a8c889ce63e2867659a8eaf7e43a5b87a453345d56d953745913f40b58596f449e5fbc87340e0dd2aef0727
2022-01-07 20:22:02 +00:00
..
address.rs Fixed a bunch of clippy lints, added clippy.toml 2021-12-21 22:50:13 +01:00
constants.rs Clean up module level rustdocs 2021-11-06 10:59:53 +11:00
message.rs Merge rust-bitcoin/rust-bitcoin#750: Use `test_data` for big objects, add big block for benchmarking 2022-01-07 20:22:02 +00:00
message_blockdata.rs Fixed a bunch of clippy lints, added clippy.toml 2021-12-21 22:50:13 +01:00
message_bloom.rs Clean up module level rustdocs 2021-11-06 10:59:53 +11:00
message_filter.rs Put rustdocs above attributes 2022-01-06 13:04:47 +11:00
message_network.rs Fixed a bunch of clippy lints, added clippy.toml 2021-12-21 22:50:13 +01:00
mod.rs Clean up module level rustdocs 2021-11-06 10:59:53 +11:00
stream_reader.rs Fix typos 2022-01-05 09:39:57 +01:00