1
0

Separate JsonDB and WalletDB

This commit is contained in:
ThomasV
2020-02-03 12:35:50 +01:00
parent 8118bd1d72
commit 149cd9598a
5 changed files with 951 additions and 936 deletions

View File

@@ -13,7 +13,7 @@ from enum import IntEnum, auto
from typing import NamedTuple, Dict
from .sql_db import SqlDB, sql
from .json_db import JsonDB
from .wallet_db import WalletDB
from .util import bh2u, bfh, log_exceptions, ignore_exceptions
from . import wallet
from .storage import WalletStorage
@@ -139,7 +139,7 @@ class LNWatcher(AddressSynchronizer):
LOGGING_SHORTCUT = 'W'
def __init__(self, network: 'Network'):
AddressSynchronizer.__init__(self, JsonDB({}, manual_upgrades=False))
AddressSynchronizer.__init__(self, WalletDB({}, manual_upgrades=False))
self.config = network.config
self.channels = {}
self.network = network