From 82706e4a3ae3194f72f99bcf03f3aa1e92d8deac Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 23 Nov 2018 07:35:55 -1100 Subject: [PATCH] GetTime() for z_getnewaddress default --- src/wallet/rpcwallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 8568c930a..d3154a8aa 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -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;