From fd70bcf3355688ae163a493bf31a7d9d1f757610 Mon Sep 17 00:00:00 2001 From: Cofresi Date: Wed, 2 Nov 2016 17:47:19 -0400 Subject: [PATCH 01/18] first commit with drop down list instead of datepicker for payment start & end dates --- README.md | 21 +++++++++- index.html | 119 +++++++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 132 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f83f325..3b1ba5f 100644 --- a/README.md +++ b/README.md @@ -1 +1,20 @@ -# govobject-proposal \ No newline at end of file +# 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; + } \ No newline at end of file diff --git a/index.html b/index.html index 913fdf1..629f62c 100644 --- a/index.html +++ b/index.html @@ -10,18 +10,122 @@ - +