Add zindex to z_getinfo

This commit is contained in:
Duke Leto
2020-03-09 21:04:53 -04:00
parent e4bfafc76c
commit 744ef34438

View File

@@ -80,6 +80,7 @@ int32_t komodo_isnotaryvout(char *coinaddr,uint32_t tiptime); // from ac_private
CBlockIndex *komodo_getblockindex(uint256 hash); CBlockIndex *komodo_getblockindex(uint256 hash);
extern string randomSietchZaddr(); extern string randomSietchZaddr();
extern CAmount fConsolidationTxFee; extern CAmount fConsolidationTxFee;
extern bool fZindex;
int64_t nWalletUnlockTime; int64_t nWalletUnlockTime;
static CCriticalSection cs_nWalletUnlockTime; static CCriticalSection cs_nWalletUnlockTime;
@@ -3489,6 +3490,7 @@ UniValue z_getinfo(const UniValue& params, bool fHelp,const CPubKey&)
); );
} }
UniValue result(UniValue::VOBJ); UniValue result(UniValue::VOBJ);
result.push_back(Pair("zindex",(bool)fZindex));
result.push_back(Pair("consolidation",(bool)pwalletMain->fSaplingConsolidationEnabled )); result.push_back(Pair("consolidation",(bool)pwalletMain->fSaplingConsolidationEnabled ));
result.push_back(Pair("consolidationtxfee",(int)fConsolidationTxFee)); result.push_back(Pair("consolidationtxfee",(int)fConsolidationTxFee));
result.push_back(Pair("deletetx",(bool)fTxDeleteEnabled)); result.push_back(Pair("deletetx",(bool)fTxDeleteEnabled));