From 244a0f2fab8737e5f1bc3294144737337ccc3da3 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Fri, 11 Nov 2016 21:09:57 +0900 Subject: [PATCH] Update release notes. --- docs/RELEASE-NOTES | 13 +++++++++++++ server/block_processor.py | 6 ++---- server/protocol.py | 2 -- server/version.py | 2 +- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/docs/RELEASE-NOTES b/docs/RELEASE-NOTES index ecdc22d..a5e120f 100644 --- a/docs/RELEASE-NOTES +++ b/docs/RELEASE-NOTES @@ -1,3 +1,16 @@ +Version 0.3 +----------- + +- Database format has changed; old DBs are incompatible. They will + not work and will probably die miserably as I'm not yet versioning + them for helpful warnings (coming soon). +- The change in on-disk format makes UTXO flushes noticeably more + efficient. My gut feeling is it probably benefits HDDs more than + SSDs, but I have no numbers to back that up other than that my HDD + synced about 90 minutes (10%) faster. Until the treacle hits at + blocks 300k+ there will probably be little noticeable difference in + sync time. + Version 0.2.3 ------------- diff --git a/server/block_processor.py b/server/block_processor.py index dd6d296..33d3936 100644 --- a/server/block_processor.py +++ b/server/block_processor.py @@ -302,8 +302,8 @@ class MemPool(LoggedClass): Can be positive or negative. ''' value = 0 - for tx_hash in self.hash168s[hash168]: - txin_pairs, txout_pairs, unconfirmed = self.txs[tx_hash] + for hex_hash in self.hash168s[hash168]: + txin_pairs, txout_pairs, unconfirmed = self.txs[hex_hash] value -= sum(v for h168, v in txin_pairs if h168 == hash168) value += sum(v for h168, v in txout_pairs if h168 == hash168) return value @@ -317,8 +317,6 @@ class BlockProcessor(server.db.DB): ''' def __init__(self, env): - '''on_update is awaitable, and called only when caught up with the - daemon and a new block arrives or the mempool is updated.''' super().__init__(env) # These are our state as we move ahead of DB state diff --git a/server/protocol.py b/server/protocol.py index d671655..477ae86 100644 --- a/server/protocol.py +++ b/server/protocol.py @@ -36,8 +36,6 @@ class BlockServer(BlockProcessor): '''Like BlockProcessor but also starts servers when caught up.''' def __init__(self, env): - '''on_update is awaitable, and called only when caught up with the - daemon and a new block arrives or the mempool is updated.''' super().__init__(env) self.servers = [] diff --git a/server/version.py b/server/version.py index cf6e859..150707e 100644 --- a/server/version.py +++ b/server/version.py @@ -1 +1 @@ -VERSION = "ElectrumX 0.2.3" +VERSION = "ElectrumX 0.3"