include schema in desc of header

This commit is contained in:
mratsim 2018-08-07 11:05:40 +02:00
parent 9cd781f72d
commit 56ca588764
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ proc serializeETH[T](x: T): seq[byte] =
# - 2 bytes for version
# - 8 bytes for offset (int64)
# - 32 bytes for Blake2 hash for raw data
# - ??? bytes for schema
let
offset = int64(result.len + sizeof(int64) + sizeof(Hash256) + schema.len)
metadataStart = result.len + sizeof(int64)