mirror of
https://github.com/seigler/govobject-proposal
synced 2025-07-27 06:46:10 +00:00
No description
.gitignore | ||
bitcore-lib-dash.js | ||
index.html | ||
package.json | ||
README.md |
govobject-proposal
int GetBudgetPaymentCycleBlocks(){ // Amount of blocks in a months period of time (using 2.6 minutes per) = (602430)/2.6 if(Params().NetworkID() == CBaseChainParams::MAIN) return 16616; //for testing purposes
return 50; //ten times per day
}
if(strCommand == "nextblock")
{
CBlockIndex* pindexPrev = chainActive.Tip();
if(!pindexPrev) return "unknown";
int nNext = pindexPrev->nHeight - pindexPrev->nHeight % GetBudgetPaymentCycleBlocks() + GetBudgetPaymentCycleBlocks();
return nNext;
}