This commit is contained in:
jl777
2018-09-05 22:51:38 -11:00
parent 7d0ac4710e
commit d72d882bfe
2 changed files with 2 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ one other technical note is that komodod has the insight-explorer extensions bui
#include <univalue.h>
#include <exception>
#include "../komodo_defs.h"
#include <stdlib.h>
#include <bsd/stdlib.h>
extern int32_t KOMODO_CONNECTING,KOMODO_CCACTIVATE;
extern uint32_t ASSETCHAINS_CC;

View File

@@ -402,7 +402,7 @@ int64_t correlate_price(int32_t height,int64_t *prices,int32_t n)
int32_t i,j; int64_t price = 0;
if ( n == 1 )
return(prices[0]);
mergesort(prices,n,sizeof(*prices),_increasing_uint64);
heapsort(prices,n,sizeof(*prices),_increasing_uint64);
for (i=0; i<n; i++)
{
j = (height + i) % n;