properly close setpeerinfo db

This commit is contained in:
Kevin Froman 2018-01-27 20:05:55 -06:00
parent df494a7906
commit 59b4a887c7
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B

View File

@ -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'''