Browse Source

KMD statepointer and utils is not needed, use globals

pull/152/head
Jonathan "Duke" Leto 6 years ago
parent
commit
5f47971df8
  1. 8
      src/komodo_rpcblockchain.h
  2. 1767
      src/komodo_utils.h

8
src/komodo_rpcblockchain.h

@ -17,7 +17,6 @@
#define komodo_rpcblockchain_h
#include "main.h"
#include "komodo_utils.h"
int32_t komodo_MoMdata(int32_t *notarized_htp,uint256 *MoMp,uint256 *kmdtxidp,int32_t height,uint256 *MoMoMp,int32_t *MoMoMoffsetp,int32_t *MoMoMdepthp,int32_t *kmdstartip,int32_t *kmdendip);
uint256 komodo_calcMoM(int32_t height,int32_t MoMdepth);
@ -25,12 +24,11 @@ extern char ASSETCHAINS_SYMBOL[65];
int32_t komodo_dpowconfs(int32_t txheight,int32_t numconfs)
{
char symbol[KOMODO_ASSETCHAIN_MAXLEN],dest[KOMODO_ASSETCHAIN_MAXLEN]; struct komodo_state *sp;
if ( KOMODO_DPOWCONFS != 0 && txheight > 0 && numconfs > 0 && (sp= komodo_stateptr(symbol,dest)) != 0 )
if ( KOMODO_DPOWCONFS != 0 && txheight > 0 && numconfs > 0 )
{
if ( sp->NOTARIZED_HEIGHT > 0 )
if ( NOTARIZED_HEIGHT > 0 )
{
if ( txheight < sp->NOTARIZED_HEIGHT )
if ( txheight < NOTARIZED_HEIGHT )
return(numconfs);
else return(1);
}

1767
src/komodo_utils.h

File diff suppressed because it is too large
Loading…
Cancel
Save