properly close setpeerinfo db
This commit is contained in:
parent
df494a7906
commit
59b4a887c7
@ -323,6 +323,8 @@ class Core:
|
|||||||
# TODO: validate key on whitelist
|
# TODO: validate key on whitelist
|
||||||
|
|
||||||
c.execute('UPDATE peers SET ' + key + ' = ? where id=?', command)
|
c.execute('UPDATE peers SET ' + key + ' = ? where id=?', command)
|
||||||
|
conn.commit()
|
||||||
|
conn.close()
|
||||||
|
|
||||||
def getBlockList(self, unsaved=False):
|
def getBlockList(self, unsaved=False):
|
||||||
'''get list of our blocks'''
|
'''get list of our blocks'''
|
||||||
|
Loading…
Reference in New Issue
Block a user