Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #1

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/.idea
/.vs/ProjectSettings.json
/.vs/slnx.sqlite
/.vs/CCB/v15/Browse.VC.db
/.vs/CCB/v15/Browse.VC.opendb
.vs/CCB/v15/.suo
.vs/CCB/v15/ipch/AutoPCH/db8ae34deaeda3c4/VERSION_EDIT.ipch
.vs/VSWorkspaceState.json
.vs/slnx.sqlite-journal
58 changes: 57 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,57 @@
Visit our website at [ccb.cash](http://ccb.cash/)
![logo](https://ccbcoin.club/img/assets/logo.png)

Visit our website at [ccb.cash](http://ccb.cash/) ***NEW SITE IN DEVELOPMENT***

View the CryptoCashBack [Explorer](http://chain.ccbcoin.club/)

### Coin Specs
<table>
<tr><td>Algo</td><td>Quark</td></tr>
<tr><td>Block Time</td><td>60 Seconds</td></tr>
<tr><td>Difficulty Retargeting</td><td>Every Block</td></tr>
<tr><td>Max Coin Supply </td><td>100,000,000 SMRTC</td></tr>
<tr><td>Premine</td><td>10,000,000 SMRTC</td></tr>
</table>


### Reward Distribution Per Block

<table>
<th colspan=4>PoW Phase</th>
<tr><th>Block Height</th><th>Reward Amount</th><th>Notes</th><th>Duration (Days)</th></tr>
<tr><td>0</td><td>250 CCB</td><td>Genesis Block</td><td>0 Days</td></tr>
<tr><td>1</td><td>10,000,000 CCB</td><td>Initial Premine</td><td>0 Days</td></tr>
<tr><td>2-200</td><td>30 CCB</td><td rowspan=1>Closed Mining</td><td>1 Days</td></tr>
<tr><th colspan=4>PoS / MN Phase</th></tr>
<tr><td>201-25000</td><td>1 CCB</td><td rowspan=1>Coin Swap</td><td>17.2 Days</td></tr>
<tr><td>25000-50000</td><td>25 CCB</td><td rowspan=1>First Increase </td><td>17.3 Days</td></tr>
<tr><td>50000-75000</td><td>50 CCB</td><td rowspan=1>Second Increase </td><td>17.3 Days</td></tr>
<tr><td>75000-100000</td><td>100 CCB</td><td rowspan=1>Final Increase </td><td>17.3 Days</td></tr>
<tr><td>100000-125000</td><td>75 CCB</td><td rowspan=1>First Reduction </td><td>17.3 Days</td></tr>
<tr><td>125000-150000</td><td>50 CCB</td><td rowspan=1>Second Reduction </td><td>17.3 Days</td></tr>
<tr><td>150000-Infinite</td><td>25 CCB</td><td rowspan=1>Final Reduction </td><td>17.3 Days</td></tr>

</table>


### Masternode Rewards Per Block, 10,000 CCB Collateral

<table>
<tr><th>Block Height</th><th>Reward Amount</th><th>Duration (Days)</th><th>Development Fee</th></tr>
<tr><td>201-25000</td><td>80%</td><td>17.2 Days</td><td>0%</td></tr>
<tr><td>25000-60000 </td><td>40%</td><td>17.22 Days</td><td>0%</td></tr>
<tr><td>60000-65000 </td><td>42%</td><td>3.47 Days</td><td>0%</td></tr>
<tr><td>65000-70000 </td><td>44%</td><td>3.47 Days</td><td>0%</td></tr>
<tr><td>70000-75000 </td><td>46%</td><td>3.47 Days</td><td>10K Initial Dev Fee Then 10% Every Block</td></tr>
<tr><td>75000-80000 </td><td>48%</td><td>3.47 Days</td><td>10%</td></tr>
<tr><td>80000-85000 </td><td>50%</td><td>2.08 Days</td><td>10%</td></tr>
<tr><td>85000-88000 </td><td>53%</td><td>2.08 Days</td><td>10%</td></tr>
<tr><td>88000-91000 </td><td>56%</td><td>2.08 Days</td><td>10%</td></tr>
<tr><td>91000-94000 </td><td>59%</td><td>2.08 Days</td><td>10%</td></tr>
<tr><td>94000-97000 </td><td>62%</td><td>2.08 Days</td><td>10%</td></tr>
<tr><td>97000-100000 </td><td>65%</td><td>2.08 Days</td><td>10%</td></tr>
<tr><td>100000-125000 </td><td>70%</td><td>17.36 Days</td><td>10%</td></tr>
<tr><td>125000-150000 </td><td>75%</td><td>17.36 Days</td><td>10%</td></tr>
<tr><td>150000-175000 </td><td>80%</td><td>17.36 Days</td><td>10%</td></tr>
<tr><td>SeeSaw Rewards from this point on</td></tr>
</table>
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 1)
define(_CLIENT_VERSION_MINOR, 0)
define(_CLIENT_VERSION_MINOR, 1)
define(_CLIENT_VERSION_REVISION, 0)
define(_CLIENT_VERSION_BUILD, 1)
define(_CLIENT_VERSION_BUILD, 0)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2018)
AC_INIT([CryptoCashBack Core],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION],[http://bit.cryptocashbacks],[cryptocashback])
Expand Down
44 changes: 30 additions & 14 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "chainparams.h"

#include "random.h"
#include "util.h"
#include "utilstrencodings.h"

#include <assert.h>

#include "net.h"
#include "base58.h"
#include <boost/assign/list_of.hpp>


Expand Down Expand Up @@ -87,6 +86,7 @@ class CMainParams : public CChainParams
CMainParams()
{
networkID = CBaseChainParams::MAIN;
vTreasuryRewardAddress = ""; //Need to circle back to add dev address
strNetworkID = "main";
/**
* The message start string is designed to be unlikely to occur in normal data.
Expand All @@ -106,14 +106,14 @@ class CMainParams : public CChainParams
nRejectBlockOutdatedMajority = 950;
nToCheckBlockUpgradeMajority = 1000;
nMinerThreads = 0;
nTargetTimespan = 1 * 60;
nTargetSpacing = 1 * 60;
nLastPOWBlock = 500;
nMaturity = 151;
nTargetTimespan = 1 * 60; //1 Hour
nTargetSpacing = 1 * 60; //1 Hour
nLastPOWBlock = 200; //Changed from old 500 to new premine PoW stage
nMaturity = 60; //60 conf to be able to stake = 1hr
nMasternodeCountDrift = 20;
nMasternodeColleteralLimxDev = 5000; //Params().MasternodeColleteralLimxDev()
nMasternodeColleteralLimxDev = 10000; //Params().MasternodeColleteralLimxDev()
nModifierUpdateBlock = 1; // we use the version 2 for dmd
nMaxMoneyOut = 50000000 * COIN;
nMaxMoneyOut = 100000000 * COIN; //100,000,00 max supply

const char* pszTimestamp = "CryptoCashBack cryptocurrency";
CMutableTransaction txNew;
Expand All @@ -129,16 +129,16 @@ class CMainParams : public CChainParams
genesis.nTime = 1525929087;
genesis.nBits = 0x1e0ffff0;
genesis.nNonce = 21334304;

hashGenesisBlock = genesis.GetHash();
//printf("%s\n", hashGenesisBlock.ToString().c_str());
//printf("%s\n", genesis.hashMerkleRoot.ToString().c_str());
//printf("%s\n", hashGenesisBlock.ToString().c_str());
//printf("%s\n", genesis.hashMerkleRoot.ToString().c_str());
assert(hashGenesisBlock == uint256("0x00000a49ec81e566b6013e403ef710dae79742be34c920ec6ace4e0897879c7f"));
assert(genesis.hashMerkleRoot == uint256("0x81b81664271f0942a2868283a1f658425b5a0de3d41161a8836ccf066108af49"));


vSeeds.push_back(CDNSSeedData("node1.ccb.cash", "node1.ccb.cash"));
vSeeds.push_back(CDNSSeedData("node2.ccb.cash", "node2.ccb.cash"));
vSeeds.push_back(CDNSSeedData("n1.ccbcoin.club", "n1.ccbcoin.club"));
vSeeds.push_back(CDNSSeedData("n2.ccbcoin.club", "n2.ccbcoin.club"));
//vFixedSeeds.clear();
//vSeeds.clear();

Expand Down Expand Up @@ -174,6 +174,22 @@ class CMainParams : public CChainParams
return data;
}
};

std::string CChainParams::GetTreasuryRewardAddressAtHeight(int nHeight) const
{
return vTreasuryRewardAddress;

}

CScript CChainParams::GetTreasuryRewardScriptAtHeight(int nHeight) const
{
CBitcoinAddress address(GetTreasuryRewardAddressAtHeight(nHeight).c_str());
assert(address.IsValid());
CScript script = GetScriptForDestination(address.Get());
return script;

}

static CMainParams mainParams;

/**
Expand Down
5 changes: 5 additions & 0 deletions src/chainparams.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ class CChainParams
int64_t StartMasternodePayments() const { return nStartMasternodePayments; }
CBaseChainParams::Network NetworkID() const { return networkID; }

std::string vTreasuryRewardAddress;

std::string GetTreasuryRewardAddressAtHeight(int height) const;
CScript GetTreasuryRewardScriptAtHeight(int height) const;

protected:
CChainParams() {}

Expand Down
6 changes: 3 additions & 3 deletions src/clientversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
*/

//! These need to be macros, as clientversion.cpp's and cryptocashback*-res.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MAJOR 2
#define CLIENT_VERSION_MINOR 0
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD 1
#define CLIENT_VERSION_BUILD 0 //Beta Test Wallet
//bitcoingui.cpp L116
//! Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true
Expand All @@ -38,7 +38,7 @@
#define DO_STRINGIZE(X) #X

//! Copyright string used in Windows .rc files
#define COPYRIGHT_STR "2009-" STRINGIZE(COPYRIGHT_YEAR) " The Bitcoin Core Developers, 2014-" STRINGIZE(COPYRIGHT_YEAR) " The Dash and PIVX Core Developers, 2018-" STRINGIZE(COPYRIGHT_YEAR) " The CryptoCashBack Core Developers"
#define COPYRIGHT_STR "2009-" STRINGIZE(COPYRIGHT_YEAR) " The Bitcoin Core Developers, 2014-" STRINGIZE(COPYRIGHT_YEAR) " The Dash and PIVX Core Developers, 2018-" STRINGIZE(COPYRIGHT_YEAR) " The CryptoCashBack Core Developers" STRINGIZE(COPYRIGHT_YEAR) "TKB Trow Back - TFinch"

/**
* cryptocashbackd-res.rc includes this file, but it cannot cope with real c++ code.
Expand Down
Loading