From 2ed6475195c350234f345af0d3033a2fdd2683c7 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sat, 27 Jan 2018 19:56:59 -0600 Subject: [PATCH] improved block syncing --- onionr/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onionr/core.py b/onionr/core.py index 08955225..0adf93e1 100644 --- a/onionr/core.py +++ b/onionr/core.py @@ -319,10 +319,10 @@ class Core: '''update a peer for a key''' conn = sqlite3.connect(self.peerDB) c = conn.cursor() - command = (peer,) + command = (data, peer) # TODO: validate key on whitelist - c.execute('UPDATE peers SET ' + key + ' = ' + data + ' where id=?', command) + c.execute('UPDATE peers SET ' + key + ' = ? where id=?', command) def getBlockList(self, unsaved=False): '''get list of our blocks'''