Skip to content

Commit

Permalink
fix issues, add checkpoint, replace outdated seeds
Browse files Browse the repository at this point in the history
- fix issue #5
- fix permission issue (autogen.sh, share/genbuild.sh)
- fix -instantsenddepth parameter issue
  • Loading branch information
VIVO committed Apr 21, 2018
1 parent 4be0cfa commit 2d0962a
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
Empty file modified autogen.sh 100644 → 100755
Empty file.
Empty file modified share/genbuild.sh 100644 → 100755
Empty file.
12 changes: 7 additions & 5 deletions src/chainparams.cpp
Expand Up @@ -127,7 +127,8 @@ class CMainParams : public CChainParams {
assert(genesis.hashMerkleRoot == uint256S("0x35d3553e7bdc0568c8c37074cb7cc4bd930bd57ceff0799ddb0279487d3fd8df"));


vSeeds.push_back(CDNSSeedData("vivoseeds.win", "vivoseed1.vivoseeds.win"));
vSeeds.push_back(CDNSSeedData("vivoseed.dynu.net", "vivoseed.dynu.net"));
vSeeds.push_back(CDNSSeedData("seeds.vivocoin.net", "seed.seeds.vivocoin.net"));

// Vivo addresses start with 'V'
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,70);
Expand Down Expand Up @@ -157,10 +158,11 @@ class CMainParams : public CChainParams {

checkpointData = (CCheckpointData) {
boost::assign::map_list_of
( 0, uint256S("0x00000f6be3e151f9082a2b82c2916192a791090015b80979934a45d625460d62"))
( 5290, uint256S("000000000346e7d6b167a7aeccf6e521d9d78a7e0fe95f5b47d854b0bfc23654")),
1503127892, // * UNIX timestamp of last checkpoint block
98542, // * total number of transactions between genesis and last checkpoint
( 0, uint256S("0x00000f6be3e151f9082a2b82c2916192a791090015b80979934a45d625460d62"))
( 5290, uint256S("0x000000000346e7d6b167a7aeccf6e521d9d78a7e0fe95f5b47d854b0bfc23654"))
(161000, uint256S("0x0000000000f55b8708a236b2c8057d8396023d5d56ec2d1b120af40e3073755e")),
1524243256, // * UNIX timestamp of last checkpoint block
268579, // * total number of transactions between genesis and last checkpoint
// (the tx=... number in the SetBestChain debug.log lines)
1000 // * estimated number of transactions per day after checkpoint
};
Expand Down
4 changes: 2 additions & 2 deletions src/clientversion.h
Expand Up @@ -17,7 +17,7 @@
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 12
#define CLIENT_VERSION_REVISION 1
#define CLIENT_VERSION_BUILD 6
#define CLIENT_VERSION_BUILD 8

//! Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true
Expand All @@ -26,7 +26,7 @@
* Copyright year (2009-this)
* Todo: update this when changing our copyright comments in the source
*/
#define COPYRIGHT_YEAR 2017
#define COPYRIGHT_YEAR 2018

#endif //HAVE_CONFIG_H

Expand Down
2 changes: 1 addition & 1 deletion src/init.cpp
Expand Up @@ -875,7 +875,7 @@ void InitParameterInteraction()
}

if(!GetBoolArg("-enableinstantsend", fEnableInstantSend)){
if (SoftSetArg("-instantsenddepth", 0))
if (SoftSetArg("-instantsenddepth", "0"))
LogPrintf("%s: parameter interaction: -enableinstantsend=false -> setting -nInstantSendDepth=0\n", __func__);
}

Expand Down
10 changes: 5 additions & 5 deletions src/txmempool.h
Expand Up @@ -204,7 +204,7 @@ struct mempoolentry_txid
class CompareTxMemPoolEntryByDescendantScore
{
public:
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
{
bool fUseADescendants = UseDescendantScore(a);
bool fUseBDescendants = UseDescendantScore(b);
Expand All @@ -226,7 +226,7 @@ class CompareTxMemPoolEntryByDescendantScore
}

// Calculate which score to use for an entry (avoiding division).
bool UseDescendantScore(const CTxMemPoolEntry &a)
bool UseDescendantScore(const CTxMemPoolEntry &a) const
{
double f1 = (double)a.GetModifiedFee() * a.GetSizeWithDescendants();
double f2 = (double)a.GetModFeesWithDescendants() * a.GetTxSize();
Expand All @@ -241,7 +241,7 @@ class CompareTxMemPoolEntryByDescendantScore
class CompareTxMemPoolEntryByScore
{
public:
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
{
double f1 = (double)a.GetModifiedFee() * b.GetTxSize();
double f2 = (double)b.GetModifiedFee() * a.GetTxSize();
Expand All @@ -255,7 +255,7 @@ class CompareTxMemPoolEntryByScore
class CompareTxMemPoolEntryByEntryTime
{
public:
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
{
return a.GetTime() < b.GetTime();
}
Expand Down Expand Up @@ -650,7 +650,7 @@ typedef std::pair<double, CTxMemPool::txiter> TxCoinAgePriority;

struct TxCoinAgePriorityCompare
{
bool operator()(const TxCoinAgePriority& a, const TxCoinAgePriority& b)
bool operator()(const TxCoinAgePriority& a, const TxCoinAgePriority& b) const
{
if (a.first == b.first)
return CompareTxMemPoolEntryByScore()(*(b.second), *(a.second)); //Reverse order to make sort less than
Expand Down

0 comments on commit 2d0962a

Please sign in to comment.