connector
This commit is contained in:
parent
1cc5ce9813
commit
93fa3c549a
@ -187,14 +187,14 @@ class UTXO():
|
|||||||
continue
|
continue
|
||||||
break
|
break
|
||||||
try:
|
try:
|
||||||
self.log.critical("load utxo " + str(self.missed))
|
self.log.critical("load utxo " + str(len(self.missed)))
|
||||||
self.load_utxo_future = asyncio.Future()
|
self.load_utxo_future = asyncio.Future()
|
||||||
l = set(self.missed)
|
l = set(self.missed)
|
||||||
async with self._db_pool.acquire() as conn:
|
async with self._db_pool.acquire() as conn:
|
||||||
rows = await conn.fetch("SELECT outpoint, connector_utxo.data "
|
rows = await conn.fetch("SELECT outpoint, connector_utxo.data "
|
||||||
"FROM connector_utxo "
|
"FROM connector_utxo "
|
||||||
"WHERE outpoint = ANY($1);", l)
|
"WHERE outpoint = ANY($1);", l)
|
||||||
self.log.critical("loaded "+str(len(self.missed)))
|
self.log.critical("loaded "+str(len(rows)))
|
||||||
for i in l:
|
for i in l:
|
||||||
try:
|
try:
|
||||||
self.missed.remove(i)
|
self.missed.remove(i)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user