htlcswitch: populate the incoming+outgoing in the payment circuit
This commit is contained in:
parent
157e052958
commit
d377ffafdd
@ -881,14 +881,16 @@ func (l *channelLink) handleDownStreamPkt(pkt *htlcPacket, isReProcess bool) {
|
|||||||
"local_log_index=%v, batch_size=%v",
|
"local_log_index=%v, batch_size=%v",
|
||||||
htlc.PaymentHash[:], index, l.batchCounter+1)
|
htlc.PaymentHash[:], index, l.batchCounter+1)
|
||||||
|
|
||||||
// Create circuit (remember the path) in order to forward settle/fail
|
// Create circuit (remember the path) in order to forward
|
||||||
// packet back.
|
// settle/fail packet back.
|
||||||
l.cfg.Switch.addCircuit(&PaymentCircuit{
|
l.cfg.Switch.addCircuit(&PaymentCircuit{
|
||||||
PaymentHash: htlc.PaymentHash,
|
PaymentHash: htlc.PaymentHash,
|
||||||
IncomingChanID: pkt.incomingChanID,
|
IncomingChanID: pkt.incomingChanID,
|
||||||
IncomingHTLCID: pkt.incomingHTLCID,
|
IncomingHTLCID: pkt.incomingHTLCID,
|
||||||
|
IncomingAmt: pkt.incomingHtlcAmt,
|
||||||
OutgoingChanID: l.ShortChanID(),
|
OutgoingChanID: l.ShortChanID(),
|
||||||
OutgoingHTLCID: index,
|
OutgoingHTLCID: index,
|
||||||
|
OutgoingAmt: htlc.Amount,
|
||||||
ErrorEncrypter: pkt.obfuscator,
|
ErrorEncrypter: pkt.obfuscator,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user