EIP-3675: update Network section (#3714)

This commit is contained in:
Mikhail Kalinin 2021-08-10 18:51:27 +06:00 committed by GitHub
parent f2494e6a09
commit ac1fcbce60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,11 +116,15 @@ The networking stack **SHOULD NOT** send the following messages if they advertis
* [`NewBlockHashes (0x01)`](https://github.com/ethereum/devp2p/blob/master/caps/eth.md#newblockhashes-0x01)
* [`NewBlock (0x07)`](https://github.com/ethereum/devp2p/blob/master/caps/eth.md#newblock-0x07)
Beginning with the first `POS_BLOCK_FINALIZED` event, the networking stack **MUST** remove the handlers corresponding to the following ETH protocol messages:
Beginning with the first `POS_BLOCK_FINALIZED` event, the networking stack **MUST** discard the following ingress messages:
* [`NewBlockHashes (0x01)`](https://github.com/ethereum/devp2p/blob/master/caps/eth.md#newblockhashes-0x01)
* [`NewBlock (0x07)`](https://github.com/ethereum/devp2p/blob/master/caps/eth.md#newblock-0x07)
Beginning with the first `POS_BLOCK_FINALIZED` event, peers that keep sending these messages **SHOULD** be disconnected.
Beginning with the second `POS_BLOCK_FINALIZED` event, the networking stack **MUST** remove the handlers corresponding to the following messages:
* [`NewBlockHashes (0x01)`](https://github.com/ethereum/devp2p/blob/master/caps/eth.md#newblockhashes-0x01)
* [`NewBlock (0x07)`](https://github.com/ethereum/devp2p/blob/master/caps/eth.md#newblock-0x07)
Peers that keep sending these messages after the handlers have been removed **SHOULD** be disconnected.
*Note:* The logic of message handlers that are not affected by this section **MUST** remain unchanged.