Skip to content

Commit

Permalink
Merge branch 'release-0.4.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Booth committed Nov 13, 2016
2 parents c64eb57 + 41ff6e5 commit 1e01c35
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
5 changes: 5 additions & 0 deletions docs/RELEASE-NOTES
@@ -1,3 +1,8 @@
version 0.4.3
-------------

- fix exception introduced in 0.4.2

version 0.4.2
-------------

Expand Down
8 changes: 2 additions & 6 deletions lib/jsonrpc.py
Expand Up @@ -79,16 +79,12 @@ def __init__(self):
self.send_count = 0
self.send_size = 0
self.error_count = 0
self.peer_info = None

def connection_made(self, transport):
'''Handle an incoming client connection.'''
self.transport = transport

def peer_info(self):
'''Return peer info.'''
if self.transport:
return self.transport.get_extra_info('peername')
return None
self.peer_info = transport.get_extra_info('peername')

def connection_lost(self, exc):
'''Handle client disconnection.'''
Expand Down
4 changes: 2 additions & 2 deletions server/block_processor.py
Expand Up @@ -84,7 +84,7 @@ async def get_blocks(self):

async def main_loop(self):
'''Loop forever polling for more blocks.'''
self.logger.info('starting daemon poll loop...')
self.logger.info('starting daemon poll loop')
while True:
try:
if await self._caught_up():
Expand Down Expand Up @@ -201,7 +201,7 @@ async def update(self, hex_hashes):
hex_hashes.difference_update(self.txs)
raw_txs = await self.bp.daemon.getrawtransactions(hex_hashes)
if initial:
self.logger.info('analysing {:,d} mempool txs...'
self.logger.info('analysing {:,d} mempool txs'
.format(len(raw_txs)))
new_txs = {hex_hash: Deserializer(raw_tx).read_tx()
for hex_hash, raw_tx in zip(hex_hashes, raw_txs) if raw_tx}
Expand Down
1 change: 0 additions & 1 deletion server/irc.py
Expand Up @@ -134,6 +134,5 @@ def on_whoreply(self, connection, event):
ip_addr = line[1]
peer = self.Peer(ip_addr, line[1], line[2:])
self.peers[nick] = peer
self.logger.info('new {}'.format(peer))
except IndexError:
pass
2 changes: 1 addition & 1 deletion server/protocol.py
Expand Up @@ -224,7 +224,7 @@ def on_json_request(self, request):
self.manager.add_task(self, self.handle_json_request(request))

def peername(self):
info = self.peer_info()
info = self.peer_info
return 'unknown' if not info else '{}:{}'.format(info[0], info[1])

def tx_hash_from_param(self, param):
Expand Down
2 changes: 1 addition & 1 deletion server/version.py
@@ -1 +1 @@
VERSION = "ElectrumX 0.4.1"
VERSION = "ElectrumX 0.4.3"

0 comments on commit 1e01c35

Please sign in to comment.