Peer
fun Peer(nodeParams: NodeParams, walletParams: WalletParams, watcher: ElectrumWatcher, db: Databases, socketBuilder: TcpSocket.Builder?, scope: CoroutineScope, initTlvStream: TlvStream<InitTlv> = TlvStream.empty())
Content copied to clipboard
Parameters
node Params
Low level, Lightning related parameters that our node will use in relation to this Peer.
wallet Params
High level parameters for our node. It especially contains the Peer's NodeUri.
watcher
Watches events from the Electrum client and publishes transactions and events.
db
Wraps the various databases persisting the channels and payments data related to the Peer.
socket Builder
Builds the TCP socket used to connect to the Peer.
init Tlv Stream
Optional stream of TLV for the Init message we send to this Peer after connection. Empty by default.