mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-30 14:06:28 +02:00
Merge pull request #1305 from blackcoffeexbt/fix/gerty_mempool_caching_timestamp_bug
Fix/gerty mempool caching timestamp bug
This commit is contained in:
@@ -117,7 +117,7 @@ async def get_mempool_info(endPoint: str, gerty) -> dict:
|
|||||||
mempool_id,
|
mempool_id,
|
||||||
json.dumps(response.json()),
|
json.dumps(response.json()),
|
||||||
endPoint,
|
endPoint,
|
||||||
time.time(),
|
db.timestamp_now,
|
||||||
gerty.mempool_endpoint,
|
gerty.mempool_endpoint,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
@@ -129,7 +129,7 @@ async def get_mempool_info(endPoint: str, gerty) -> dict:
|
|||||||
"UPDATE gerty.mempool SET data = ?, time = ? WHERE endpoint = ? AND mempool_endpoint = ?",
|
"UPDATE gerty.mempool SET data = ?, time = ? WHERE endpoint = ? AND mempool_endpoint = ?",
|
||||||
(
|
(
|
||||||
json.dumps(response.json()),
|
json.dumps(response.json()),
|
||||||
time.time(),
|
db.timestamp_now,
|
||||||
endPoint,
|
endPoint,
|
||||||
gerty.mempool_endpoint,
|
gerty.mempool_endpoint,
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user