Reverse sapling polarity

This commit is contained in:
jl777
2018-11-23 07:33:28 -11:00
parent 982589d20c
commit ce12d37c54
2 changed files with 5 additions and 2 deletions

View File

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