komodo_reconsiderblock

This commit is contained in:
jl777
2019-04-12 01:56:16 -11:00
parent b306b39550
commit 7ad01e44ed
3 changed files with 24 additions and 2 deletions

View File

@@ -2625,10 +2625,17 @@ void komodo_pricesinit()
}
}
extern Queued_reconsiderblock;
void komodo_pricesupdate(int32_t height,CBlock *pblock)
{
static int numprices; static uint32_t *ptr32; static int64_t *ptr64,*tmpbuf;
int32_t ind,offset,width; int64_t correlated,smoothed; uint64_t seed,rngval; uint32_t rawprices[KOMODO_MAXPRICES],buf[PRICES_MAXDATAPOINTS*2];
if ( Queued_reconsiderblock != zeroid )
{
komodo_reconsiderblock(Queued_reconsiderblock);
Queued_reconsiderblock = zeroid;
}
width = PRICES_DAYWINDOW;//(2*PRICES_DAYWINDOW + PRICES_SMOOTHWIDTH);
if ( numprices == 0 )
{