mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-24 03:54:21 +01:00
Wallet/fix_nostr_timeout (#376)
* fix nostr receive * split with amount pre 0.13 * drop 0.13.0 amount with split compatibility
This commit is contained in:
@@ -139,24 +139,24 @@ async def m007_nostr(db: Database):
|
||||
"""
|
||||
Stores timestamps of nostr operations.
|
||||
"""
|
||||
# async with db.connect() as conn:
|
||||
# await conn.execute("""
|
||||
# CREATE TABLE IF NOT EXISTS nostr (
|
||||
# type TEXT NOT NULL,
|
||||
# last TIMESTAMP DEFAULT NULL
|
||||
# )
|
||||
# """)
|
||||
# await conn.execute(
|
||||
# """
|
||||
# INSERT INTO nostr
|
||||
# (type, last)
|
||||
# VALUES (?, ?)
|
||||
# """,
|
||||
# (
|
||||
# "dm",
|
||||
# None,
|
||||
# ),
|
||||
# )
|
||||
async with db.connect() as conn:
|
||||
await conn.execute("""
|
||||
CREATE TABLE IF NOT EXISTS nostr (
|
||||
type TEXT NOT NULL,
|
||||
last TIMESTAMP DEFAULT NULL
|
||||
)
|
||||
""")
|
||||
await conn.execute(
|
||||
"""
|
||||
INSERT INTO nostr
|
||||
(type, last)
|
||||
VALUES (?, ?)
|
||||
""",
|
||||
(
|
||||
"dm",
|
||||
None,
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
async def m008_keysets_add_public_keys(db: Database):
|
||||
|
||||
Reference in New Issue
Block a user