Change type of port to int in protocol in buy offer (#51)

This commit is contained in:
Jonathan Zernik 2020-06-24 00:17:12 -07:00 committed by GitHub
parent 7dafb7ce2e
commit 7a79f4b569
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -117,5 +117,5 @@ message SqueakBuyOffer {
string host = 7;
/// The port of the seller lightning node
string port = 8;
int32 port = 8;
}

View file

@ -41,7 +41,7 @@ def load_lightning_host_port(config) -> LNDLightningClient:
lnd_ip_address = socket.gethostbyname(
config['lnd']['host'],
)
lnd_port = config['lnd']['port']
lnd_port = int(config['lnd']['port'])
return LightningAddressHostPort(
lnd_ip_address,
lnd_port,