Skip to content
This repository has been archived by the owner on Aug 8, 2018. It is now read-only.

Parallel block download (WIP) #248

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions pyethapp/eth_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ class ETHProtocolError(SubProtocolError):


class ETHProtocol(BaseProtocol):

"""
DEV Ethereum Wire Protocol
https://github.com/ethereum/wiki/wiki/Ethereum-Wire-Protocol
Expand All @@ -67,7 +66,7 @@ class ETHProtocol(BaseProtocol):
max_cmd_id = 15 # FIXME
name = 'eth'
version = 62

idle = True
max_getblocks_count = 128
max_getblockheaders_count = 192

Expand All @@ -76,6 +75,10 @@ def __init__(self, peer, service):
self.config = peer.config
BaseProtocol.__init__(self, peer, service)

def set_idle(self):
self.idle = True


class status(BaseProtocol.command):

"""
Expand Down
Loading