mirror of
https://github.com/logos-storage/logos-storage-nim-validator.git
synced 2026-01-03 05:53:06 +00:00
cleanup
This commit is contained in:
parent
2a4cef2d77
commit
b91b62a67d
@ -10,9 +10,7 @@ suite "Block serialization":
|
||||
test "serializes a block id with protobuf":
|
||||
let id = BlockId.example
|
||||
let serialized = id.toBytes()
|
||||
{.warning[Deprecated]: off.} # ignore warning in protobuf_serialization
|
||||
let protobuf = ProtoBuf.decode(serialized, BlockIdMessage)
|
||||
{.warning[Deprecated]: on.}
|
||||
check protobuf.author == id.author.uint32
|
||||
check protobuf.round == id.round
|
||||
check protobuf.hash == id.hash.toBytes()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user