Fix packet header offset
And update transaction offsets to use the same approach as packet.rs. Maybe this should be serialized_size(), but thanks to this GenericArray update, those values are the same.
This commit is contained in:
@ -340,7 +340,7 @@ pub fn to_blobs<T: Serialize>(
|
||||
}
|
||||
|
||||
const BLOB_INDEX_END: usize = size_of::<u64>();
|
||||
const BLOB_ID_END: usize = BLOB_INDEX_END + size_of::<usize>() + size_of::<Pubkey>();
|
||||
const BLOB_ID_END: usize = BLOB_INDEX_END + size_of::<Pubkey>();
|
||||
const BLOB_FLAGS_END: usize = BLOB_ID_END + size_of::<u32>();
|
||||
const BLOB_SIZE_END: usize = BLOB_FLAGS_END + size_of::<u64>();
|
||||
|
||||
|
Reference in New Issue
Block a user