mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
itest: allow setting empty peer pubkey on tapd SendPayment
This commit is contained in:
parent
bbb6640de2
commit
2151a10943
1 changed files with 6 additions and 5 deletions
|
|
@ -1687,14 +1687,18 @@ func payInvoiceWithAssets(t *testing.T, payer, rfqPeer *HarnessNode,
|
|||
sendReq.MaxShardSizeMsat = 80_000_000
|
||||
}
|
||||
|
||||
var rfqBytes []byte
|
||||
var rfqBytes, peerPubKey []byte
|
||||
cfg.rfq.WhenSome(func(i rfqmsg.ID) {
|
||||
rfqBytes = make([]byte, len(i[:]))
|
||||
copy(rfqBytes, i[:])
|
||||
})
|
||||
|
||||
if rfqPeer != nil {
|
||||
peerPubKey = rfqPeer.PubKey[:]
|
||||
}
|
||||
|
||||
request := &tchrpc.SendPaymentRequest{
|
||||
PeerPubkey: rfqPeer.PubKey[:],
|
||||
PeerPubkey: peerPubKey,
|
||||
PaymentRequest: sendReq,
|
||||
RfqId: rfqBytes,
|
||||
AllowOverpay: cfg.allowOverpay,
|
||||
|
|
@ -1733,9 +1737,6 @@ func payInvoiceWithAssets(t *testing.T, payer, rfqPeer *HarnessNode,
|
|||
acceptedQuote := quoteMsg.GetAcceptedSellOrder()
|
||||
require.NotNil(t, acceptedQuote)
|
||||
|
||||
peerPubKey := acceptedQuote.Peer
|
||||
require.Equal(t, peerPubKey, rfqPeer.PubKeyStr)
|
||||
|
||||
rpcRate := acceptedQuote.BidAssetRate
|
||||
rate, err := rpcutils.UnmarshalRfqFixedPoint(rpcRate)
|
||||
require.NoError(t, err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue