Test
This commit is contained in:
@@ -1239,7 +1239,7 @@ UniValue prices(const UniValue& params, bool fHelp)
|
||||
for (i=0; i<maxsamples+daywindow; i++)
|
||||
{
|
||||
offset = j*width + i;
|
||||
memcpy(prices2,&prices[offset],sizeof(*prices2)*daywindow);
|
||||
//memcpy(prices2,&prices[offset],sizeof(*prices2)*daywindow);
|
||||
if ( (correlated[i]= komodo_pricecorrelated(seed,j,&prices[offset],daywindow,prices2)) < 0 )
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "null correlated price");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user