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

Parallel block download(Updated) #262

Open
wants to merge 23 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
8 changes: 6 additions & 2 deletions pyethapp/eth_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class ETHProtocolError(SubProtocolError):


class ETHProtocol(BaseProtocol):

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

idle = True
body_idle = True
max_getblocks_count = 128
max_getblockheaders_count = 192

Expand All @@ -81,6 +81,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
2 changes: 1 addition & 1 deletion pyethapp/eth_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class ChainService(WiredService):
genesis = None
synchronizer = None
config = None
block_queue_size = 1024
block_queue_size = 2048
processed_gas = 0
processed_elapsed = 0
process_time_queue_period = 5
Expand Down
Loading