mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-27 13:34:28 +01:00
Mint: Recover pending melts at startup (#499)
* wip works with fakewallet * startup refactor * add tests * regtest tests for pending melts * wip CLN * remove db migration * remove foreign key relation to keyset id * fix: get_promise from db and restore DLEQs * test: check for keyset not found error * fix migrations * lower-case all db column names * add more tests for regtest * simlate failure for lightning * test wallet spent state with hodl invoices * retry * regtest with postgres * retry postgres * add sleeps * longer sleep on github * more sleep for github sigh * increase sleep ffs * add sleep loop * try something * do not pay with wallet but with ledger * fix lnbits pending state * fix pipeline to use fake admin from docker
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -35,7 +35,9 @@ jobs:
|
||||
poetry-version: ["1.7.1"]
|
||||
backend-wallet-class:
|
||||
["LndRestWallet", "CoreLightningRestWallet", "LNbitsWallet"]
|
||||
# mint-database: ["./test_data/test_mint", "postgres://cashu:cashu@localhost:5432/cashu"]
|
||||
mint-database: ["./test_data/test_mint"]
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
backend-wallet-class: ${{ matrix.backend-wallet-class }}
|
||||
mint-database: "./test_data/test_mint"
|
||||
mint-database: ${{ matrix.mint-database }}
|
||||
|
||||
4
.github/workflows/regtest.yml
vendored
4
.github/workflows/regtest.yml
vendored
@@ -52,10 +52,6 @@ jobs:
|
||||
chmod -R 777 .
|
||||
bash ./start.sh
|
||||
|
||||
- name: Create fake admin
|
||||
if: ${{ inputs.backend-wallet-class == 'LNbitsWallet' }}
|
||||
run: docker exec cashu-lnbits-1 poetry run python tools/create_fake_admin.py
|
||||
|
||||
- name: Run Tests
|
||||
env:
|
||||
WALLET_NAME: test_wallet
|
||||
|
||||
Reference in New Issue
Block a user