Use Serde's with attribute to shorten length encodings in Transaction

This commit is contained in:
Greg Fitzgerald
2019-03-25 09:15:16 -06:00
parent 857dc2ba47
commit c4bc710d3a
8 changed files with 323 additions and 61 deletions

View File

@@ -1,3 +1,2 @@
/// Maximum over-the-wire size of a Transaction
// TODO: Set this back to 512 after shortvec optimization is reinstated.
pub const PACKET_DATA_SIZE: usize = 522;
pub const PACKET_DATA_SIZE: usize = 512;