mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-24 03:54:21 +01:00
Issue NUT-08 overpaid Lightning fees for melt quote checks on startup (#688)
* startup: do not rollback unknown melt quote states * fix: provide overpaid fees on startup * fix: check if outputs in db * fix test: expect melt quote pending if payment state is unknown * fix up comment
This commit is contained in:
@@ -839,6 +839,7 @@ async def m022_quote_set_states_to_values(db: Database):
|
||||
f"UPDATE {db.table_with_schema('mint_quotes')} SET state = '{mint_quote_states.value}' WHERE state = '{mint_quote_states.name}'"
|
||||
)
|
||||
|
||||
|
||||
async def m023_add_key_to_mint_quote_table(db: Database):
|
||||
async with db.connect() as conn:
|
||||
await conn.execute(
|
||||
@@ -846,4 +847,14 @@ async def m023_add_key_to_mint_quote_table(db: Database):
|
||||
ALTER TABLE {db.table_with_schema('mint_quotes')}
|
||||
ADD COLUMN pubkey TEXT DEFAULT NULL
|
||||
"""
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
async def m024_add_melt_quote_outputs(db: Database):
|
||||
async with db.connect() as conn:
|
||||
await conn.execute(
|
||||
f"""
|
||||
ALTER TABLE {db.table_with_schema('melt_quotes')}
|
||||
ADD COLUMN outputs TEXT DEFAULT NULL
|
||||
"""
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user