mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-01-04 17:34:20 +01:00
Nut07/proof pending (#277)
* add pending state * proofs spendable check and tests * bump version to 0.12.3 * remove sleep for testing * comment clarify * use list comprehension in pending list
This commit is contained in:
@@ -93,20 +93,20 @@ async def ledger():
|
||||
yield ledger
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True, scope="session")
|
||||
def mint_3338():
|
||||
settings.mint_listen_port = 3338
|
||||
settings.port = 3338
|
||||
settings.mint_url = "http://localhost:3338"
|
||||
settings.port = settings.mint_listen_port
|
||||
config = uvicorn.Config(
|
||||
"cashu.mint.app:app",
|
||||
port=settings.mint_listen_port,
|
||||
host="127.0.0.1",
|
||||
)
|
||||
# @pytest.fixture(autouse=True, scope="session")
|
||||
# def mint_3338():
|
||||
# settings.mint_listen_port = 3338
|
||||
# settings.port = 3338
|
||||
# settings.mint_url = "http://localhost:3338"
|
||||
# settings.port = settings.mint_listen_port
|
||||
# config = uvicorn.Config(
|
||||
# "cashu.mint.app:app",
|
||||
# port=settings.mint_listen_port,
|
||||
# host="127.0.0.1",
|
||||
# )
|
||||
|
||||
server = UvicornServer(config=config, private_key="SECOND_PRIVATE_KEY")
|
||||
server.start()
|
||||
time.sleep(1)
|
||||
yield server
|
||||
server.stop()
|
||||
# server = UvicornServer(config=config, private_key="SECOND_PRIVATE_KEY")
|
||||
# server.start()
|
||||
# time.sleep(1)
|
||||
# yield server
|
||||
# server.stop()
|
||||
|
||||
Reference in New Issue
Block a user