mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-15 20:09:28 +01:00
The assertNumConnection function currently takes in an 'expected' number of connections argument and asserts that both alice and bob only each only have that number of connections. So this fails to be useful if say alice is also connected to charlie cause then if we call assertNumConnections between alice and bob it will fail saying there are 2 connections between them since all it does is count alice's total number of connections. This commit replaces this function with 2 new functions: assertConnected which asserts that at least one connection exists between two peers and assertNotConnected which asserts that no connections exists between the two peers. |
||
---|---|---|
.. | ||
channels | ||
itest | ||
mock | ||
wait | ||
bitcoind.go | ||
bitcoind_common.go | ||
bitcoind_notxindex.go | ||
btcd.go | ||
doc.go | ||
fee_service.go | ||
fee_service_test.go | ||
harness.go | ||
neutrino.go | ||
node.go | ||
timeouts.go | ||
timeouts_darwin.go | ||
timeouts_remote_db.go |