Skip to content

Commit

Permalink
Fork at 60100
Browse files Browse the repository at this point in the history
  • Loading branch information
Nillecram committed Feb 9, 2018
1 parent 9aa4978 commit 1a351a5
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 10 deletions.
9 changes: 9 additions & 0 deletions deployosx.sh
@@ -0,0 +1,9 @@
#!/bin/bash
OSX_DEPLOY_SCRIPT=contrib/macdeploy/macdeployqtplus
OSX_APP=Bitcoin_Lightning-Qt.app
OSX_QT_TRANSLATIONS=da,de,es,hu,ru,uk,zh_CN,zh_TW,fr
OSX_FANCY_PLIST=contrib/macdeploy/fancy.plist

$OSX_DEPLOY_SCRIPT $OSX_APP -add-qt-tr $OSX_QT_TRANSLATIONS -dmg -fancy $OSX_FANCY_PLIST -verbose 2


33 changes: 24 additions & 9 deletions src/main.cpp
Expand Up @@ -1368,26 +1368,41 @@ int64_t GetProofOfWorkReward(int nHeight, int64_t nFees)
}

// miner's coin stake reward
const int YEARLY_BLOCKCOUNT = 36000; //36000 block will execute with in 12 months
const int YEARLY_BLOCKCOUNT = 345600; //36000 block will execute with in 12 months

const int MONTHLY_BLOCKCOUNT = 28800;

/*
NOW : 36 MN + 12 STACK = 48 = 80 * 0.6 -> 60100
MONTH 1 : 48 MN + 16 STACK = 64 = 80 * 0.8 -> from 60100 to 88900
MONTH 2 : 60 MN + 20 STACK = 80 = 80 * 1 -> from 88900 -> 117700
YEAR 2 : 345600
*/
int64_t GetProofOfStakeReward(const CBlockIndex* pindexPrev, int64_t nCoinAge, int64_t nFees)
{
int nHeight = pindexPrev->nHeight + 1;
int64_t nSubsidy;
if (nHeight < YEARLY_BLOCKCOUNT) // 1st year
if (nHeight < 36000) // 1st year -> was 36k
nSubsidy = STATIC_POS_REWARD;
else if (nHeight < (2 * YEARLY_BLOCKCOUNT)) // 2nd year
else if (nHeight < 60100) // old 2nd year -> replaced with 60100 for fork
nSubsidy = STATIC_POS_REWARD * 0.6;
else if (nHeight < (3 * YEARLY_BLOCKCOUNT)) // 3rd year
else if (nHeight < 88900) //Correction for 1st year month 1
nSubsidy = STATIC_POS_REWARD * 0.8;
else if (nHeight < YEARLY_BLOCKCOUNT) //correction for 1st year month 2 until the 2nd year.
nSubsidy = STATIC_POS_REWARD * 1;
else if (nHeight < (2 * YEARLY_BLOCKCOUNT)) // 2nd year
nSubsidy = STATIC_POS_REWARD * 0.36;
else if (nHeight < (3 * YEARLY_BLOCKCOUNT)) // 3rd year
nSubsidy = STATIC_POS_REWARD * 0.36;
else if (nHeight < (4 * YEARLY_BLOCKCOUNT)) // 4th year
else if (nHeight < (4 * YEARLY_BLOCKCOUNT)) // 4th year
nSubsidy = STATIC_POS_REWARD * 0.216;
else if (nHeight < (5 * YEARLY_BLOCKCOUNT)) // 5th year
else if (nHeight < (5 * YEARLY_BLOCKCOUNT)) // 5th year
nSubsidy = STATIC_POS_REWARD * 0.1296;
else if (nHeight < (6 * YEARLY_BLOCKCOUNT)) // 6th year
else if (nHeight < (6 * YEARLY_BLOCKCOUNT)) // 6th year
nSubsidy = STATIC_POS_REWARD * 0.07776;
else if (nHeight < (7 * YEARLY_BLOCKCOUNT)) // 7th year
else if (nHeight < (7 * YEARLY_BLOCKCOUNT)) // 7th year
nSubsidy = STATIC_POS_REWARD * 0.046656;
else // 8th year
else // 8th year
nSubsidy = 3 * COIN;

return nSubsidy + nFees;
Expand Down
2 changes: 1 addition & 1 deletion src/qt/forms/addeditadrenalinenode.ui
Expand Up @@ -26,7 +26,7 @@
</sizepolicy>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Enter an Alias (friendly name) for your Master Node and its address (either clearnet IP and port or Tor onion address and port). The address should be in the format 123.456.789.123:9999 or akjdsafxjkhasdf.onion:9999. You must send exactly 3000 BLTG to the collateral address.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Enter an Alias (friendly name) for your Master Node and its address (either clearnet IP and port or Tor onion address and port). The address should be in the format 123.456.789.123:17127 or akjdsafxjkhasdf.onion:17127. You must send exactly 3000 BLTG to the collateral address.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>
Expand Down

0 comments on commit 1a351a5

Please sign in to comment.