added hash check to stop race

This commit is contained in:
benarc 2024-03-21 12:37:09 +00:00
commit ab82ee65f0
2 changed files with 18 additions and 3 deletions

View file

@ -177,3 +177,6 @@ async def get_hash_check(the_hash: str, lnurl_id: str) -> HashCheck:
return HashCheck(lnurl=True, hash=False)
else:
return HashCheck(lnurl=True, hash=True)
async def delete_hash_check(the_hash: str) -> None:
await db.execute("DELETE FROM withdraw.hash_check WHERE id = ?", (the_hash,))