Skip to content

Commit

Permalink
PR feedback for ethereum#1357
Browse files Browse the repository at this point in the history
  • Loading branch information
carver committed Dec 5, 2019
1 parent ee27212 commit 39a9e49
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions trinity/protocol/eth/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
from eth.rlp.receipts import Receipt
from eth.rlp.transactions import BaseTransactionFields

from p2p.abc import (
SerializationCodecAPI,
)
from p2p.commands import BaseCommand, RLPCodec

from trinity.protocol.common.payloads import BlockHeadersQuery
Expand Down Expand Up @@ -54,7 +51,7 @@ class Status(BaseCommand[StatusPayload]):

class NewBlockHashes(BaseCommand[Tuple[NewBlockHash, ...]]):
protocol_command_id = 1
serialization_codec: SerializationCodecAPI[Tuple[NewBlockHash, ...]] = RLPCodec(
serialization_codec: RLPCodec[Tuple[NewBlockHash, ...]] = RLPCodec(
sedes=NEW_BLOCK_HASHES_STRUCTURE,
process_inbound_payload_fn=apply_formatter_to_array(lambda args: NewBlockHash(*args)),
)
Expand Down

0 comments on commit 39a9e49

Please sign in to comment.