Files
cosmos-sdk/types
Miguel DingliandAlessio Treglia 018915b1a8 Fix ApproxRoot Infinite Looping (#7140)
Added a maximum number of iterations (100) to ApproxRoot
(and ApproxSqrt) to serve as a hard limit on the number of
iterations that the algorithm performs. If the answer converges
before the maximum iterations, it returns immediately. Otherwise,
if the answer never converges enough to satisfy the primary loop
condition, the looping stops after a hundred iterations.

Closes: #7038

Co-authored-by: Alessio Treglia <quadrispro@ubuntu.com>
2020-08-29 11:13:36 +01:00
..
2020-08-28 16:02:38 +00:00
2020-08-14 13:58:53 -04:00
2020-08-14 13:58:53 -04:00
2020-08-14 09:09:53 +00:00
2020-08-14 13:58:53 -04:00
2020-08-14 09:09:53 +00:00
2019-12-10 11:48:57 -05:00
2020-08-25 19:08:22 +00:00
2020-08-25 19:08:22 +00:00
2020-05-08 08:46:12 +00:00
2020-06-12 10:17:36 -04:00
2020-06-11 15:37:23 +00:00
2020-03-04 17:49:59 +00:00
2020-07-30 14:53:02 +00:00
2020-08-07 23:32:22 +00:00
2020-03-04 17:49:59 +00:00
2020-04-08 20:57:52 -04:00
2020-08-14 13:58:53 -04:00