@ -110,8 +110,9 @@ class LNChannelVerifier(NetworkJobOnDefaultServer):
# we are verifying channel announcements as they are from untrusted ln peers.
# we are verifying channel announcements as they are from untrusted ln peers.
# we use electrum servers to do this. however we don't trust electrum servers either...
# we use electrum servers to do this. however we don't trust electrum servers either...
try :
try :
result = await self . network . get_txid_from_txpos (
async with self . _network_request_semaphore :
block_height , short_channel_id . txpos , True )
result = await self . network . get_txid_from_txpos (
block_height , short_channel_id . txpos , True )
except aiorpcx . jsonrpc . RPCError :
except aiorpcx . jsonrpc . RPCError :
# the electrum server is complaining about the txpos for given block.
# the electrum server is complaining about the txpos for given block.
# it is not clear what to do now, but let's believe the server.
# it is not clear what to do now, but let's believe the server.
@ -128,7 +129,8 @@ class LNChannelVerifier(NetworkJobOnDefaultServer):
# the electrum server sent an incorrect proof. blame is on server, not the ln peer
# the electrum server sent an incorrect proof. blame is on server, not the ln peer
raise GracefulDisconnect ( e ) from e
raise GracefulDisconnect ( e ) from e
try :
try :
raw_tx = await self . network . get_transaction ( tx_hash )
async with self . _network_request_semaphore :
raw_tx = await self . network . get_transaction ( tx_hash )
except aiorpcx . jsonrpc . RPCError as e :
except aiorpcx . jsonrpc . RPCError as e :
# the electrum server can't find the tx; but it was the
# the electrum server can't find the tx; but it was the
# one who told us about the txid!! blame is on server
# one who told us about the txid!! blame is on server