mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-19 13:18:26 +02:00
Use peer host as default when lnd host not specified (#293)
This commit is contained in:
parent
a2a3af0cd4
commit
88c137c0ed
1 changed files with 6 additions and 2 deletions
|
|
@ -118,11 +118,15 @@ class PeerGetOffer:
|
|||
destination = pay_req.destination
|
||||
invoice_timestamp = pay_req.timestamp
|
||||
invoice_expiry = pay_req.expiry
|
||||
node_host = offer.node_host or self.peer.host
|
||||
node_port = offer.node_port
|
||||
|
||||
logger.info("price_msat: {}".format(price_msat))
|
||||
logger.info("destination: {}".format(destination))
|
||||
logger.info("invoice_timestamp: {}".format(invoice_timestamp))
|
||||
logger.info("invoice_expiry: {}".format(invoice_expiry))
|
||||
logger.info("node_host: {}".format(node_host))
|
||||
logger.info("node_port: {}".format(node_port))
|
||||
|
||||
decoded_offer = Offer(
|
||||
offer_id=offer.offer_id,
|
||||
|
|
@ -135,8 +139,8 @@ class PeerGetOffer:
|
|||
invoice_expiry=invoice_expiry,
|
||||
payment_request=offer.payment_request,
|
||||
destination=destination,
|
||||
node_host=offer.node_host,
|
||||
node_port=offer.node_port,
|
||||
node_host=node_host,
|
||||
node_port=node_port,
|
||||
proof=offer.proof,
|
||||
peer_id=offer.peer_id,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue