code: func retransmitLimit(retransmitMult, n int) int {
  	nodeScale := math.Ceil(math.Log10(float64(n + 1)))
  	limit := retransmitMult * int(nodeScale)
  	return limit
  }
docs: // retransmitLimit computes the limit of retransmissions