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:
1 file changed
+1
-1
@@ -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