Skip to content

Commit

Permalink
routing: correct initial finalPaddedSize
Browse files Browse the repository at this point in the history
This purely affects logging. This makes sure that the `padStat`
finalPaddedSize field is initilised correctly with the given minSize.
  • Loading branch information
ellemouton committed Aug 8, 2024
1 parent 5e84ba9 commit ab28cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routing/blindedpath/blinded_path.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab28cde

Please sign in to comment.