rust-bitcoin-unsafe-fast/bitcoin
Riccardo Casatta 0e6341d4c9
Merge rust-bitcoin/rust-bitcoin#1954: Avoid vector allocation in `RawNetworkMessage` encoding
5c8933001c Avoid serialize inner data in RawNetworkMessage (Riccardo Casatta)
bc66ed82b2 Impl Encodable for NetworkMessage (Riccardo Casatta)
8560baaca2 Make fields of RawNetworkMessage non public (Riccardo Casatta)

Pull request description:

  This PR removes the need to serialize the inner NetworkMessage in the RawNetworkMessage encoding, thus saving memory and reducing allocations.

  To achieve this payload_len and checksum are kept in the RawNetworkMessage and checksum kept in CheckedData, to preserve invariants fields of the struct are made non-public.

ACKs for top commit:
  apoelstra:
    ACK 5c8933001c
  tcharding:
    ACK 5c8933001c

Tree-SHA512: aca3c7ac13d2d71184288f7815449e72c4c04fc617a65effba592592ef4ec50f18b6f83dbff58e9c4237cb1fe8e7af52cd43db9036658bdaf7888c07011e46cc
2023-07-27 08:55:21 +02:00
..
contrib CI: Pin serde_json for MSRV build 2023-07-12 15:50:18 +10:00
embedded Add patch section to test crates 2023-07-18 10:27:48 +10:00
examples Avoid serialize inner data in RawNetworkMessage 2023-07-26 08:34:49 +02:00
src Merge rust-bitcoin/rust-bitcoin#1954: Avoid vector allocation in `RawNetworkMessage` encoding 2023-07-27 08:55:21 +02:00
tests Use Amount type for TxOut value field 2023-05-04 17:09:08 +02:00
CHANGELOG.md Add changelo entry for removal of FromHex 2023-05-18 14:18:42 +10:00
Cargo.toml Merge pull request #1912 from tcharding/06-20-consensus-validation 2023-07-25 11:16:53 -05:00
build.rs Remove rust_v_1_46 2023-03-23 08:27:10 +11:00