Hi,
How do you make sure that the superblocks are accepted?
If it is random you could get a superblock reward and when the other nodes validate it they get a totally different number and the block is not accepted...
What am I missing?
The random number is deterministic based off of the previous blocks hash.
How big are the random superblocks?
/ Superblocks Stake Reward Structure
@Devs: Is that the code for the random superblocks on github? I'm searching for it in the code and I didn't find it yet.
// Calculate coin age reward
int64_t nReward;
{
uint64_t nCoinAge;
CTxDB txdb("r");
if (!txNew.GetCoinAge(txdb, nCoinAge))
return error("CreateCoinStake : failed to calculate coin age");
int64_t nBonusMultiplier = 1;
nReward = GetProofOfStakeReward(nCoinAge, nBits, txNew.nTime, nFees, nCredit, prevHash, nBonusMultiplier);
if (nReward <= 0)
return false;
nCredit += nReward;
}