diff options
| author | Jorge Timón <[email protected]> | 2016-04-06 16:00:25 +0200 |
|---|---|---|
| committer | Jorge Timón <[email protected]> | 2016-04-06 16:00:25 +0200 |
| commit | bf477bcc794360c145156c9e8f155e0215f70dd3 (patch) | |
| tree | fd601cae94998299f9ce329cb37321b5b01c0a87 /src/main.cpp | |
| parent | Merge #7802: [qa] httpbasics: Actually test second connection (diff) | |
| download | discoin-bf477bcc794360c145156c9e8f155e0215f70dd3.tar.xz discoin-bf477bcc794360c145156c9e8f155e0215f70dd3.zip | |
Trivial: Globals: Explicitly pass const CChainParams& to ProcessMessage()
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index b68c6affa..4e94ab780 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4475,9 +4475,8 @@ void static ProcessGetData(CNode* pfrom, const Consensus::Params& consensusParam } } -bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, int64_t nTimeReceived) +bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, int64_t nTimeReceived, const CChainParams& chainparams) { - const CChainParams& chainparams = Params(); RandAddSeedPerfmon(); LogPrint("net", "received: %s (%u bytes) peer=%d\n", SanitizeString(strCommand), vRecv.size(), pfrom->id); if (mapArgs.count("-dropmessagestest") && GetRand(atoi(mapArgs["-dropmessagestest"])) == 0) @@ -5487,7 +5486,7 @@ bool ProcessMessages(CNode* pfrom) bool fRet = false; try { - fRet = ProcessMessage(pfrom, strCommand, vRecv, msg.nTime); + fRet = ProcessMessage(pfrom, strCommand, vRecv, msg.nTime, chainparams); boost::this_thread::interruption_point(); } catch (const std::ios_base::failure& e) |