improved block syncing

master
Kevin Froman 2018-01-27 19:56:59 -06:00
parent 897f18bbc2
commit 2ed6475195
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
1 changed files with 2 additions and 2 deletions

View File

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