diff --git a/onionr/core.py b/onionr/core.py index 0adf93e1..bfd42d0e 100644 --- a/onionr/core.py +++ b/onionr/core.py @@ -323,6 +323,8 @@ class Core: # TODO: validate key on whitelist c.execute('UPDATE peers SET ' + key + ' = ? where id=?', command) + conn.commit() + conn.close() def getBlockList(self, unsaved=False): '''get list of our blocks'''