Merge branch 'release-0.3' into develop
This commit is contained in:
commit
074c9e5474
@ -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
|
Version 0.2.3
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|||||||
@ -302,8 +302,8 @@ class MemPool(LoggedClass):
|
|||||||
Can be positive or negative.
|
Can be positive or negative.
|
||||||
'''
|
'''
|
||||||
value = 0
|
value = 0
|
||||||
for tx_hash in self.hash168s[hash168]:
|
for hex_hash in self.hash168s[hash168]:
|
||||||
txin_pairs, txout_pairs, unconfirmed = self.txs[tx_hash]
|
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 txin_pairs if h168 == hash168)
|
||||||
value += sum(v for h168, v in txout_pairs if h168 == hash168)
|
value += sum(v for h168, v in txout_pairs if h168 == hash168)
|
||||||
return value
|
return value
|
||||||
@ -317,8 +317,6 @@ class BlockProcessor(server.db.DB):
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
def __init__(self, env):
|
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)
|
super().__init__(env)
|
||||||
|
|
||||||
# These are our state as we move ahead of DB state
|
# These are our state as we move ahead of DB state
|
||||||
|
|||||||
@ -36,8 +36,6 @@ class BlockServer(BlockProcessor):
|
|||||||
'''Like BlockProcessor but also starts servers when caught up.'''
|
'''Like BlockProcessor but also starts servers when caught up.'''
|
||||||
|
|
||||||
def __init__(self, env):
|
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)
|
super().__init__(env)
|
||||||
self.servers = []
|
self.servers = []
|
||||||
|
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
VERSION = "ElectrumX 0.2.3"
|
VERSION = "ElectrumX 0.3"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user