mirror of
https://github.com/seigler/govobject-proposal
synced 2025-07-27 06:46:10 +00:00
clean readme
This commit is contained in:
parent
35dbf0de9b
commit
392e53d336
1 changed files with 0 additions and 18 deletions
18
README.md
18
README.md
|
@ -1,20 +1,2 @@
|
||||||
# govobject-proposal
|
# govobject-proposal
|
||||||
|
|
||||||
int GetBudgetPaymentCycleBlocks(){
|
|
||||||
// Amount of blocks in a months period of time (using 2.6 minutes per) = (60*24*30)/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;
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue