Merge branch 'develop'

This commit is contained in:
Neil Booth 2017-01-18 08:04:57 +09:00
commit 9f106e2296
4 changed files with 10 additions and 4 deletions

View File

@ -137,6 +137,12 @@ version prior to the release of 1.0.
ChangeLog
=========
Version 0.10.8
--------------
* fix import for reverse iterator for RocksDB
* fix tests
Version 0.10.7
--------------

View File

@ -10,11 +10,11 @@
import os
from functools import partial
from lib.util import subclasses, increment_byte_string
import lib.util as util
def db_class(name):
'''Returns a DB engine class.'''
for db_class in subclasses(Storage):
for db_class in util.subclasses(Storage):
if db_class.__name__.lower() == name.lower():
db_class.import_module()
return db_class

View File

@ -1 +1 @@
VERSION = "ElectrumX 0.10.7"
VERSION = "ElectrumX 0.10.8"

View File

@ -56,4 +56,4 @@ def test_chunks():
def test_increment_byte_string():
assert util.increment_byte_string(b'1') == b'2'
assert util.increment_byte_string(b'\x01\x01') == b'\x01\x02'
assert util.increment_byte_string(b'\xff\xff') == b'\x01\x00\x00'
assert util.increment_byte_string(b'\xff\xff') == None