diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-09-29 11:21:33 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-10-03 10:56:12 +0200 |
commit | 1dd1783873db0a438a0141e908a9d08f1774e6e3 (patch) | |
tree | 121edaa68286510164a0732c2b708b7d864d6939 | |
parent | 83ad563ade3c7db887b12f7aaf6d5ad9c20f208a (diff) | |
download | bitcoin-1dd1783873db0a438a0141e908a9d08f1774e6e3.tar.xz |
[qa] blockstore: Switch to dumb dbm
Github-Pull: #8834
Rebased-From: fa9cd25ed0587078e3218965606c79ebf8138d53
-rw-r--r-- | qa/rpc-tests/test_framework/blockstore.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qa/rpc-tests/test_framework/blockstore.py b/qa/rpc-tests/test_framework/blockstore.py index 1e2bbb277a..28a6b92b81 100644 --- a/qa/rpc-tests/test_framework/blockstore.py +++ b/qa/rpc-tests/test_framework/blockstore.py @@ -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): 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() |