From fa0d10cc5cd79a60117c543a87d6d3b0c8001575 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 9 Dec 2016 16:06:50 +0200 Subject: [PATCH] test --- src/komodo_interest.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/komodo_interest.h b/src/komodo_interest.h index 36b5e2f09..def35d78c 100644 --- a/src/komodo_interest.h +++ b/src/komodo_interest.h @@ -18,13 +18,13 @@ uint64_t komodo_earned_interest(int32_t height,int64_t paidinterest) { static uint64_t *interests; static int32_t maxheight; - uint64_t total; int32_t ind,incr = 1000000; + uint64_t total; int32_t ind,incr = 100000; if ( height >= maxheight ) { if ( interests == 0 ) { - interests = (uint64_t *)calloc(incr,sizeof(*interests) * 2); // fix before block 1 million - maxheight += incr; + maxheight = height + incr; + interests = (uint64_t *)calloc(maxheight,sizeof(*interests) * 2); } else {