Browse Source

Merge #8834: [qa] blockstore: Switch to dumb dbm

fa9cd25 [qa] blockstore: Switch to dumb dbm (MarcoFalke)
0.14
Wladimir J. van der Laan 8 years ago
parent
commit
c9d7b0de2f
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 6
      qa/rpc-tests/test_framework/blockstore.py

6
qa/rpc-tests/test_framework/blockstore.py

@ -9,11 +9,11 @@ @@ -9,11 +9,11 @@
from .mininode import *
from io import BytesIO
import dbm.ndbm
import dbm.dumb as dbmd
class BlockStore(object):
def __init__(self, datadir):
self.blockDB = dbm.ndbm.open(datadir + "/blocks", 'c')
self.blockDB = dbmd.open(datadir + "/blocks", 'c')
self.currentBlock = 0
self.headers_map = dict()
@ -123,7 +123,7 @@ class BlockStore(object): @@ -123,7 +123,7 @@ class BlockStore(object):
class TxStore(object):
def __init__(self, datadir):
self.txDB = dbm.ndbm.open(datadir + "/transactions", 'c')
self.txDB = dbmd.open(datadir + "/transactions", 'c')
def close(self):
self.txDB.close()

Loading…
Cancel
Save