mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-25 18:01:20 +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 (
|
||||
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
|
||||
|
Reference in New Issue
Block a user