Remove amount and pubkey from buy offer reponse message (#236)

This commit is contained in:
Jonathan Zernik 2020-08-07 17:59:08 -07:00 committed by GitHub
parent 686edbcd77
commit e0ac71ac36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 9 deletions

View file

@ -91,18 +91,12 @@ message SqueakBuyOffer {
/// The decryption iv
bytes iv = 3;
/// The amount
int64 amount = 4;
/// The invoice preimage hash.
bytes preimage_hash = 5;
/// The invoice
string payment_request = 6;
/// The seller node pubkey
string pubkey = 7;
/// The host of the seller lightning node
string host = 8;

View file

@ -73,17 +73,14 @@ class SqueakServerServicer(squeak_server_pb2_grpc.SqueakServerServicer):
return squeak_server_pb2.BuySqueakReply(offer=None,)
offer_squeak_hash = buy_response.squeak_hash
amount = buy_response.amount
return squeak_server_pb2.BuySqueakReply(
offer=squeak_server_pb2.SqueakBuyOffer(
squeak_hash=offer_squeak_hash,
key_cipher=buy_response.key_cipher.cipher_bytes,
iv=buy_response.iv,
amount=amount,
preimage_hash=buy_response.preimage_hash,
payment_request=buy_response.payment_request,
pubkey=buy_response.pubkey,
host=buy_response.host,
port=buy_response.port,
proof=buy_response.proof,