aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2017-05-07 14:10:19 -0400
committerMarcoFalke <falke.marco@gmail.com>2017-11-02 13:08:43 -0400
commitda4908c3a05659846dae81b8d0bd73a04f7ed7c9 (patch)
treec3c0269c5244bb2bffd2459417c9ef34cdb77f3c /src/net_processing.cpp
parent41088795dd9a1c90bb379b2d5237d88ae8889c90 (diff)
downloadbitcoin-da4908c3a05659846dae81b8d0bd73a04f7ed7c9.tar.xz
Allow setting nMinimumChainWork on command line
Github-Pull: #10357 Rebased-From: 0311836f6927aec4ba5687ea12af35df3c509682
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index e09b56a631..5f117dea7e 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -466,7 +466,7 @@ void FindNextBlocksToDownload(NodeId nodeid, unsigned int count, std::vector<con
// Make sure pindexBestKnownBlock is up to date, we'll need it.
ProcessBlockAvailability(nodeid);
- if (state->pindexBestKnownBlock == nullptr || state->pindexBestKnownBlock->nChainWork < chainActive.Tip()->nChainWork || state->pindexBestKnownBlock->nChainWork < UintToArith256(consensusParams.nMinimumChainWork)) {
+ if (state->pindexBestKnownBlock == nullptr || state->pindexBestKnownBlock->nChainWork < chainActive.Tip()->nChainWork || state->pindexBestKnownBlock->nChainWork < nMinimumChainWork) {
// This peer has nothing interesting.
return;
}