瀏覽代碼

[qa] blockstore: Switch to dumb dbm

tags/v0.15.1
MarcoFalke 5 年之前
父節點
當前提交
fa9cd25ed0
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      qa/rpc-tests/test_framework/blockstore.py

+ 3
- 3
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()

Loading…
取消
儲存