Reverse sapling polarity
This commit is contained in:
@@ -1865,7 +1865,7 @@ int64_t komodo_newcoins(int64_t *zfundsp,int32_t nHeight,CBlock *pblock)
|
|||||||
zfunds -= joinsplit.vpub_new;
|
zfunds -= joinsplit.vpub_new;
|
||||||
zfunds += joinsplit.vpub_old;
|
zfunds += joinsplit.vpub_old;
|
||||||
}
|
}
|
||||||
zfunds += tx.valueBalance;
|
zfunds -= tx.valueBalance;
|
||||||
}
|
}
|
||||||
*zfundsp = zfunds;
|
*zfundsp = zfunds;
|
||||||
if ( ASSETCHAINS_SYMBOL[0] == 0 && (voutsum-vinsum) == 100003*SATOSHIDEN ) // 15 times
|
if ( ASSETCHAINS_SYMBOL[0] == 0 && (voutsum-vinsum) == 100003*SATOSHIDEN ) // 15 times
|
||||||
|
|||||||
@@ -3509,7 +3509,10 @@ UniValue z_getnewaddress(const UniValue& params, bool fHelp)
|
|||||||
|
|
||||||
bool allowSapling = (Params().GetConsensus().vUpgrades[Consensus::UPGRADE_SAPLING].nActivationHeight <= chainActive.LastTip()->GetHeight());
|
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)
|
if (fHelp || params.size() > 1)
|
||||||
throw runtime_error(
|
throw runtime_error(
|
||||||
|
|||||||
Reference in New Issue
Block a user