diff options
| author | Gavin Andresen <[email protected]> | 2012-04-02 11:22:11 -0700 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2012-04-02 11:22:11 -0700 |
| commit | 85ea8b4f4380dac803d43cd0b7829b107cc09e38 (patch) | |
| tree | 1174947cc5c9c5ca75bbe10b1b91796b78dffa56 /src/main.cpp | |
| parent | Merge pull request #998 from Diapolo/transactiontable (diff) | |
| parent | Limit getheaders to a hard 2000. (diff) | |
| download | discoin-85ea8b4f4380dac803d43cd0b7829b107cc09e38.tar.xz discoin-85ea8b4f4380dac803d43cd0b7829b107cc09e38.zip | |
Merge pull request #951 from TheBlueMatt/headerslimit
Limit getheaders to a hard 2000.
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index d795ca1df..ca75b9fdb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2504,8 +2504,8 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) } vector<CBlock> vHeaders; - int nLimit = 2000 + locator.GetDistanceBack(); - printf("getheaders %d to %s limit %d\n", (pindex ? pindex->nHeight : -1), hashStop.ToString().substr(0,20).c_str(), nLimit); + int nLimit = 2000; + printf("getheaders %d to %s\n", (pindex ? pindex->nHeight : -1), hashStop.ToString().substr(0,20).c_str()); for (; pindex; pindex = pindex->pnext) { vHeaders.push_back(pindex->GetBlockHeader()); |