Merge pull request #60 from cashubtc/db/default_timestamp

default unix timestamp
This commit is contained in:
calle
2022-11-26 02:02:13 +01:00
committed by GitHub
6 changed files with 11 additions and 10 deletions

View File

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

View File

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

View File

@@ -1,3 +1,4 @@
import time
from typing import Any, List, Optional
from cashu.core.base import Invoice, MintKeyset, Proof
@@ -168,9 +169,9 @@ async def store_keyset(
(
keyset.id,
keyset.derivation_path,
keyset.valid_from or db.timestamp_now,
keyset.valid_to or db.timestamp_now,
keyset.first_seen or db.timestamp_now,
keyset.valid_from or int(time.time()),
keyset.valid_to or int(time.time()),
keyset.first_seen or int(time.time()),
True,
keyset.version,
),

View File

@@ -198,9 +198,9 @@ async def store_keyset(
(
keyset.id,
mint_url or keyset.mint_url,
keyset.valid_from,
keyset.valid_to,
keyset.first_seen,
keyset.valid_from or int(time.time()),
keyset.valid_to or int(time.time()),
keyset.first_seen or int(time.time()),
True,
),
)

View File

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

View File

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