// TotalPayloadSize returns the sum of the size of each payload in the "true"
// route.
TotalPayloadSize returns the sum of the size of each payload in the "true"
route.
// TotalPayloadSize returns the sum of the size of each payload in the " true " // route .
func (p *PaymentPath) TotalPayloadSize() int {
	var totalSize int
	for _, hop := range p {
		if hop.IsEmpty() {
			continue
		}
		totalSize += hop.HopPayload.NumBytes()
	}
	return totalSize
}
func ( p * PaymentPath ) TotalPayloadSize ( ) int { var totalSize int for _ , hop := range p { if hop . IsEmpty ( ) { continue } totalSize += hop . HopPayload . NumBytes ( ) } return totalSize }
TotalPayloadSize returns the sum of the size of each payload in the "true"
route.
TotalPayloadSize returns the sum of the size of each payload in the " true " route .