Update specs/phase0/p2p-interface.md

Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
This commit is contained in:
Jacek Sieka 2020-02-20 08:23:09 +01:00 committed by GitHub
parent 52b45ab9de
commit 61f661b3ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ The fork version is hex-encoded using the following scheme:
```python ```python
ForkVersion = ''.join('{:02x}'.format(x) for x in state.fork.current_version) 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. 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.