fix: Changed mempool caching to use db.timestamp_now instead of time.time()
This commit is contained in:
parent
1546847c50
commit
637a468ec3
|
@ -117,7 +117,7 @@ async def get_mempool_info(endPoint: str, gerty) -> dict:
|
|||
mempool_id,
|
||||
json.dumps(response.json()),
|
||||
endPoint,
|
||||
time.time(),
|
||||
db.timestamp_now,
|
||||
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 = ?",
|
||||
(
|
||||
json.dumps(response.json()),
|
||||
time.time(),
|
||||
db.timestamp_now,
|
||||
endPoint,
|
||||
gerty.mempool_endpoint,
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue
Block a user