Merge pull request #63 from cashubtc/fix/db_timestamps

Fix/db_timestamps
This commit is contained in:
calle
2022-11-30 17:41:00 +01:00
committed by GitHub
5 changed files with 7 additions and 7 deletions

View File

@@ -106,7 +106,7 @@ cashu info
Returns: Returns:
```bash ```bash
Version: 0.5.4 Version: 0.5.5
Debug: False Debug: False
Cashu dir: /home/user/.cashu Cashu dir: /home/user/.cashu
Wallet: wallet Wallet: wallet

View File

@@ -53,4 +53,4 @@ LNBITS_ENDPOINT = env.str("LNBITS_ENDPOINT", default=None)
LNBITS_KEY = env.str("LNBITS_KEY", default=None) LNBITS_KEY = env.str("LNBITS_KEY", default=None)
MAX_ORDER = 64 MAX_ORDER = 64
VERSION = "0.5.4" VERSION = "0.5.5"

View File

@@ -169,9 +169,9 @@ async def store_keyset(
( (
keyset.id, keyset.id,
keyset.derivation_path, keyset.derivation_path,
keyset.valid_from or int(time.time()), keyset.valid_from or db.timestamp_now,
keyset.valid_to or int(time.time()), keyset.valid_to or db.timestamp_now,
keyset.first_seen or int(time.time()), keyset.first_seen or db.timestamp_now,
True, True,
keyset.version, keyset.version,
), ),

View File

@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "cashu" name = "cashu"
version = "0.5.4" version = "0.5.5"
description = "Ecash wallet and mint." description = "Ecash wallet and mint."
authors = ["calle <callebtc@protonmail.com>"] authors = ["calle <callebtc@protonmail.com>"]
license = "MIT" license = "MIT"

View File

@@ -13,7 +13,7 @@ entry_points = {"console_scripts": ["cashu = cashu.wallet.cli:cli"]}
setuptools.setup( setuptools.setup(
name="cashu", name="cashu",
version="0.5.4", version="0.5.5",
description="Ecash wallet and mint with Bitcoin Lightning support", description="Ecash wallet and mint with Bitcoin Lightning support",
long_description=long_description, long_description=long_description,
long_description_content_type="text/markdown", long_description_content_type="text/markdown",