rename LNChanAnnVerifier

This commit is contained in:
SomberNight 2018-09-24 15:14:00 +02:00 committed by ThomasV
parent fc0009206b
commit d29191b010
3 changed files with 3 additions and 4 deletions

View file

@ -36,7 +36,7 @@ from .verifier import verify_tx_is_in_block, MerkleVerificationFailure
from .transaction import Transaction
class LNChanAnnVerifier(ThreadJob):
class LNChannelVerifier(ThreadJob):
""" Verify channel announcements for the Channel DB """
def __init__(self, network, channel_db):

View file

@ -36,7 +36,7 @@ import asyncio
from . import constants
from .util import PrintError, bh2u, profiler, get_headers_dir, bfh, is_ip_address, list_enabled_bits
from .storage import JsonDB
from .lnchanannverifier import LNChanAnnVerifier, verify_sig_for_channel_update
from .lnchannelverifier import LNChannelVerifier, verify_sig_for_channel_update
from .crypto import Hash
from . import ecc
from .lnutil import LN_GLOBAL_FEATURE_BITS, LNPeerAddr
@ -277,7 +277,7 @@ class ChannelDB(JsonDB):
self._recent_peers = []
self._last_good_address = {} # node_id -> LNPeerAddr
self.ca_verifier = LNChanAnnVerifier(network, self)
self.ca_verifier = LNChannelVerifier(network, self)
# FIXME if the channel verifier raises, it kills network.main_taskgroup
asyncio.run_coroutine_threadsafe(self.network.add_job(self.ca_verifier.main()), network.asyncio_loop)

View file

@ -8,7 +8,6 @@ from electrum.lnonion import (OnionHopsDataSingle, new_onion_packet, OnionPerHop
process_onion_packet, _decode_onion_error)
from electrum import bitcoin, lnrouter
from electrum.simple_config import SimpleConfig
from electrum import lnchanannverifier
from . import TestCaseForTestnet