mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-17 13:07:32 +02:00
Remove amount and pubkey from buy offer reponse message (#236)
This commit is contained in:
parent
686edbcd77
commit
e0ac71ac36
2 changed files with 0 additions and 9 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue