GetTime() for z_getnewaddress default

This commit is contained in:
jl777
2018-11-23 07:35:55 -11:00
parent ce12d37c54
commit 82706e4a3a

View File

@@ -3510,7 +3510,7 @@ UniValue z_getnewaddress(const UniValue& params, bool fHelp)
bool allowSapling = (Params().GetConsensus().vUpgrades[Consensus::UPGRADE_SAPLING].nActivationHeight <= chainActive.LastTip()->GetHeight());
std::string defaultType;
if ( time() < KOMODO_SAPLING_ACTIVATION )
if ( GetTime() < KOMODO_SAPLING_ACTIVATION )
defaultType = ADDR_TYPE_SPROUT;
else defaultType = ADDR_TYPE_SAPLING;