diff --git a/electrum/lnchanannverifier.py b/electrum/lnchannelverifier.py similarity index 99% rename from electrum/lnchanannverifier.py rename to electrum/lnchannelverifier.py index 675668433..815dd71e4 100644 --- a/electrum/lnchanannverifier.py +++ b/electrum/lnchannelverifier.py @@ -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): diff --git a/electrum/lnrouter.py b/electrum/lnrouter.py index e8dc3b8b7..dd5da6adf 100644 --- a/electrum/lnrouter.py +++ b/electrum/lnrouter.py @@ -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) diff --git a/electrum/tests/test_lnrouter.py b/electrum/tests/test_lnrouter.py index c7c10c11b..ccb7ace93 100644 --- a/electrum/tests/test_lnrouter.py +++ b/electrum/tests/test_lnrouter.py @@ -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