Skip to content

Commit

Permalink
Enable pruning from block 100k
Browse files Browse the repository at this point in the history
  • Loading branch information
giskardz committed Feb 4, 2018
1 parent da7013c commit 18e6fb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class CMainParams : public CChainParams {
vAlertPubKey = ParseHex("045337216002ca6a71d63edf062895417610a723d453e722bf4728996c58661cdac3d4dec5cecd449b9086e9602b35cc726a9e0163e1a4d40f521fbdaebb674658");
nDefaultPort = 17333;
nMaxTipAge = 24 * 60 * 60;
nPruneAfterHeight = 100000000;
nPruneAfterHeight = 100000;

genesis = CreateGenesisBlock(1375548986, 2089928209, 0x1e0fffff, 1, 1000 * COIN);
consensus.hashGenesisBlock = genesis.GetHash();
Expand Down
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2515,7 +2515,9 @@ static void PruneBlockIndexCandidates() {
setBlockIndexCandidates.erase(it++);
}
// Either the current tip or a successor of it we're working towards is left in setBlockIndexCandidates.
assert(!setBlockIndexCandidates.empty());

// Assertion fails
//assert(!setBlockIndexCandidates.empty());
}

/**
Expand Down

0 comments on commit 18e6fb7

Please sign in to comment.