Shutdown if can't open prices

This commit is contained in:
jl777
2019-04-12 09:07:22 -11:00
parent 0c3582c06a
commit 456ccc2564

View File

@@ -2695,6 +2695,11 @@ int32_t komodo_pricesinit()
fflush(PRICES[0].fp);
}
fprintf(stderr,"pricesinit done i.%d num.%d numprices.%d\n",i,num,(int32_t)(komodo_cbopretsize(ASSETCHAINS_CBOPRET)/sizeof(uint32_t)));
if ( i != num || i != komodo_cbopretsize(ASSETCHAINS_CBOPRET)/sizeof(uint32_t) )
{
fprintf(stderr,"fatal error opening prices files, start shutdown\n");
StartShutdown();
}
return(0);
}