Skip to content

Commit

Permalink
add chkpoint. fix wallet mining error.
Browse files Browse the repository at this point in the history
  • Loading branch information
conan-equal-newone committed Jun 6, 2018
1 parent e342bc5 commit 7598a88
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,17 @@ class CMainParams : public CChainParams {
checkpointData = (CCheckpointData) {
{
{0, uint256S("0x00001828d845205a951f9609e011775e035b00c7fb476310261ef30460cdccab")},
}
{ 33333, uint256S("0000001d7e6a0857ce92883925e7164b03be20a584e1e900f8f2ae9e76aee77f")},
{ 66666, uint256S("000000025d8c25599f2650f45f7f5cc8465546dccd1f7f0d6ca30cb834e43d77")},
{ 123456, uint256S("00000016b5f2435eb8dd4d5be18e757ea0aa139b71defd3b290f8ac0c0629889")},
{ 156000, uint256S("0000001b5fa73a5bd1b78b2bf087e2734bd515774ee4ff970c0b19102cc4306c")},
}
};

chainTxData = ChainTxData{
// Data as of block 00000000f10257390e9967c00d893cb0a0fa61c8585f0eea6c78d7ef6b75e6d4 (height 1119981).
1507032424, // * UNIX timestamp of last known number of transactions
0, // * total number of transactions between genesis and that timestamp
// Data as of block 00000017fb4512999352c3ae0a9ea0aa0fc03e8118f74d4ece68df939bb33d93 (height 156001).
1528276166, // * UNIX timestamp of last known number of transactions
839317, // * total number of transactions between genesis and that timestamp
// (the tx=... number in the SetBestChain debug.log lines)
0.0750 // * estimated number of transactions per second after that timestamp
};
Expand Down Expand Up @@ -343,3 +347,4 @@ void UpdateVersionBitsParameters(Consensus::DeploymentPos d, int64_t nStartTime,
globalChainParams->UpdateVersionBitsParameters(d, nStartTime, nTimeout);
}


2 changes: 1 addition & 1 deletion src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams)
if (halvings >= 64)
return 0;

CAmount nSubsidy = 250 * COIN;
CAmount nSubsidy = 50 * COIN;
// Subsidy is cut in half every 210,000 blocks which will occur approximately every 4 years.
nSubsidy >>= halvings;
return nSubsidy;
Expand Down

0 comments on commit 7598a88

Please # to comment.