Browse Source

Fix compiler errors

pull/152/head
Jonathan "Duke" Leto 6 years ago
parent
commit
0f47de0bdc
  1. 7
      src/komodo_rpcblockchain.h
  2. 1
      src/wallet/rpcwallet.cpp

7
src/komodo_rpcblockchain.h

@ -21,10 +21,15 @@
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);
extern char ASSETCHAINS_SYMBOL[65];
uint32_t DPOWCONFS = 1;
extern int32_t NOTARIZED_HEIGHT;
int32_t komodo_dpowconfs(int32_t txheight,int32_t numconfs)
{
if ( KOMODO_DPOWCONFS != 0 && txheight > 0 && numconfs > 0 )
// DPoW confs are on by default
int32_t dpowconfs = 1;
DPOWCONFS = GetArg("-dpowconfs",dpowconfs);
if ( DPOWCONFS != 0 && txheight > 0 && numconfs > 0 )
{
if ( NOTARIZED_HEIGHT > 0 )
{

1
src/wallet/rpcwallet.cpp

@ -42,6 +42,7 @@ using namespace std;
using namespace libzcash;
extern UniValue TxJoinSplitToJSON(const CTransaction& tx);
int32_t komodo_dpowconfs(int32_t height,int32_t numconfs);
int64_t nWalletUnlockTime;
static CCriticalSection cs_nWalletUnlockTime;

Loading…
Cancel
Save