work on new peer profiling system
This commit is contained in:
parent
5f1a02e42d
commit
afdee2a7a5
6 changed files with 77 additions and 97 deletions
|
|
@ -575,9 +575,10 @@ class Core:
|
|||
# TODO: validate key on whitelist
|
||||
if key not in ('address', 'type', 'knownPeer', 'speed', 'success', 'DBHash', 'failure', 'lastConnect'):
|
||||
raise Exception("Got invalid database key when setting address info")
|
||||
c.execute('UPDATE adders SET ' + key + ' = ? WHERE address=?', command)
|
||||
conn.commit()
|
||||
conn.close()
|
||||
else:
|
||||
c.execute('UPDATE adders SET ' + key + ' = ? WHERE address=?', command)
|
||||
conn.commit()
|
||||
conn.close()
|
||||
return
|
||||
|
||||
def getBlockList(self, unsaved = False): # TODO: Use unsaved??
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue