Skip to content

Commit

Permalink
rotate keys correctly for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Nov 23, 2023
1 parent c326507 commit 25af6b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cashu/mint/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
)


async def rotate_keys(n_seconds=10):
async def rotate_keys(n_seconds=60):
"""Rotate keyset epoch every n_seconds.
Note: This is just a helper function for testing purposes.
"""
Expand All @@ -54,7 +54,7 @@ async def rotate_keys(n_seconds=10):
i += 1
logger.info("Rotating keys.")
incremented_derivation_path = (
"".join(ledger.derivation_path.split("/")[:-1]) + f"/{i}"
"/".join(ledger.derivation_path.split("/")[:-1]) + f"/{i}"
)
await ledger.activate_keyset(incremented_derivation_path)
logger.info(f"Current keyset: {ledger.keyset.id}")
Expand Down

0 comments on commit 25af6b6

Please sign in to comment.