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 committed 2024-08-08 16:46:04 +02:00
1 parent 5e84ba92af
commit ab28cde240
1 file changed
+1 -1
+1 -1
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