From 61f661b3ecbc3e2895c4400a9f1362ae43fb6441 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Thu, 20 Feb 2020 08:23:09 +0100 Subject: [PATCH] Update specs/phase0/p2p-interface.md Co-Authored-By: Danny Ryan --- specs/phase0/p2p-interface.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/phase0/p2p-interface.md b/specs/phase0/p2p-interface.md index 40c9055ac..c5607c0c5 100644 --- a/specs/phase0/p2p-interface.md +++ b/specs/phase0/p2p-interface.md @@ -226,7 +226,7 @@ The fork version is hex-encoded using the following scheme: ```python ForkVersion = ''.join('{:02x}'.format(x) for x in state.fork.current_version) ``` -For example, the fork version `[0, 1, 2, 10]` will be encoded as `0001020a`. +For example, the fork version `Version('0x0001020a')` will be encoded as `0001020a`. Each gossipsub [message](https://github.com/libp2p/go-libp2p-pubsub/blob/master/pb/rpc.proto#L17-L24) has a maximum size of `GOSSIP_MAX_SIZE`. Clients MUST reject (fail validation) messages that are over this size limit. Likewise, clients MUST NOT emit or propagate messages larger than this limit.