Use libsecp256k1 to sign.

Added 'Revoke' button to sent offers page.
This commit is contained in:
tecnovert
2020-12-11 09:11:35 +02:00
parent 8c372cc5dc
commit 49705f0974
7 changed files with 76 additions and 25 deletions

View File

@@ -4440,7 +4440,7 @@ class BasicSwap(BaseApp):
bids_received += r[2]
now = int(time.time())
q = self.engine.execute('SELECT COUNT(*) FROM offers WHERE expire_at > {}'.format(now)).first()
q = self.engine.execute('SELECT COUNT(*) FROM offers WHERE active_ind = 1 AND expire_at > {}'.format(now)).first()
num_offers = q[0]
q = self.engine.execute('SELECT COUNT(*) FROM offers WHERE was_sent = 1').first()