if (block.GetBlockTime() + STAKE_SPLIT_AGE > txNew.nTime)
txNew.vout.push_back(CTxOut(0, scriptPubKeyOut)); //split stake
this actually looks it will only split the input if it's over the time limit. not under.
else it will combine inputs to the combine threshold
The reason it splits if it's under the time limit is that:
* block.GetBlockTime() is actually the time the UTXO was staked.
* txNew.nTime is close to the current time
So as long as the current time is less than the time the UTXO was staked plus STAKE_SPLIT_AGE, then it's split.
curious. i always thought it was under
this is another version
if (GetWeight(block.GetBlockTime(), (int64_t)txNew.nTime) < nStakeSplitAge)
txNew.vout.push_back(CTxOut(0, scriptPubKeyOut)); //split stake
perhaps i just dont c++ enough
I think it's just rather confusing code. I thought the same thing you did at first.
heh. i appreciate it now. i amuse myself by getting such things arse about
interesting about the coldminting. i've been waiting for it from PPC.