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:
Elle Mouton
2024-08-08 14:19:02 +02:00
parent 5e84ba92af
commit ab28cde240

View File

@@ -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