No description
Find a file
2016-11-02 17:51:19 -04:00
.gitignore add .gitignore 2016-09-21 16:17:01 +01:00
bitcore-lib-dash.js simplify url regex 2016-09-25 08:27:43 -06:00
index.html first commit with drop down list instead of datepicker for payment start & end dates 2016-11-02 17:51:19 -04:00
package.json Initial commit 2016-09-18 13:06:59 -06:00
README.md first commit with drop down list instead of datepicker for payment start & end dates 2016-11-02 17:47:19 -04:00

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;
}