Browse Source

Merge #1301: ob-watcher: tackle stale orders by first removing all of them

ace9996 ob-watcher: tackle stale orders by first removing all of them (Tim Akinbo)
master
Adam Gibson 3 years ago
parent
commit
501b5f0dac
No known key found for this signature in database
GPG Key ID: 141001A1AF77F20B
  1. 4
      scripts/obwatch/ob-watcher.py

4
scripts/obwatch/ob-watcher.py

@ -682,6 +682,9 @@ class OrderbookPageRequestHeader(http.server.SimpleHTTPRequestHandler):
if self.path not in pages:
return
if self.path == '/refreshorderbook':
with self.taker.dblock:
self.taker.db.execute("DELETE FROM orderbook;")
self.taker.db.execute("DELETE FROM fidelitybonds;")
self.taker.msgchan.request_orderbook()
time.sleep(5)
self.path = '/'
@ -766,7 +769,6 @@ def on_privmsg(inst, nick, message):
except:
pass
def get_dummy_nick():
"""In Joinmarket-CS nick creation is negotiated
between client and server/daemon so as to allow

Loading…
Cancel
Save