mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-03 09:53:49 +02:00
routing: correct initial finalPaddedSize
This purely affects logging. This makes sure that the `padStat` finalPaddedSize field is initilised correctly with the given minSize.
This commit is contained in:
@@ -896,7 +896,7 @@ func padHopInfo(hopInfo []*hopData, prePad bool, minSize int) (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
paymentPath = make([]*sphinx.HopInfo, len(hopInfo))
|
paymentPath = make([]*sphinx.HopInfo, len(hopInfo))
|
||||||
stats padStats
|
stats = padStats{finalPaddedSize: minSize}
|
||||||
)
|
)
|
||||||
|
|
||||||
// Pre-pad each payload with zero byte padding (if it does not yet have
|
// Pre-pad each payload with zero byte padding (if it does not yet have
|
||||||
|
Reference in New Issue
Block a user