This commit is contained in:
callebtc
2022-09-17 16:13:11 +03:00
parent 3ae830a1b6
commit fac578b956
10 changed files with 26 additions and 45 deletions

View File

@@ -26,6 +26,7 @@ If true, C must have originated from Alice
"""
import hashlib
from secp256k1 import PrivateKey, PublicKey

View File

@@ -1,5 +1,6 @@
import asyncio
from functools import partial, wraps
from core.settings import LIGHTNING_FEE_PERCENT, LIGHTNING_RESERVE_FEE_MIN

View File

@@ -1,9 +1,9 @@
from loguru import logger
from core.db import Database
from core.db import COCKROACH, POSTGRES, SQLITE
import re
from loguru import logger
from core.db import COCKROACH, POSTGRES, SQLITE, Database
async def migrate_databases(db: Database, migrations_module):
"""Creates the necessary databases if they don't exist already; or migrates them."""