diff options
| author | Suhas Daftuar <[email protected]> | 2017-05-07 14:10:19 -0400 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2017-09-05 15:05:28 -0400 |
| commit | 0311836f6927aec4ba5687ea12af35df3c509682 (patch) | |
| tree | 5d1b35310828f7299e039476a52146140f6bb0fc /src/net_processing.cpp | |
| parent | Merge #11179: rpc: Push down safe mode checks (diff) | |
| download | discoin-0311836f6927aec4ba5687ea12af35df3c509682.tar.xz discoin-0311836f6927aec4ba5687ea12af35df3c509682.zip | |
Allow setting nMinimumChainWork on command line
Diffstat (limited to 'src/net_processing.cpp')
| -rw-r--r-- | src/net_processing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 596ae1139..3ee4e5596 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; } |