File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 2323#include < vector>
2424
2525static const std::string MNEHF_REQUESTID_PREFIX = " mnhf" ;
26+ static const std::string DB_SIGNALS = " mnhf" ;
2627static const std::string DB_SIGNALS_v2 = " mnhf_s2" ;
2728
2829uint256 MNHFTxPayload::GetRequestId () const
@@ -334,6 +335,14 @@ std::optional<CMNHFManager::Signals> CMNHFManager::GetFromCache(const CBlockInde
334335 mnhfCache.insert (blockHash, signals);
335336 return signals;
336337 }
338+ if (!DeploymentActiveAt (*pindex, Params ().GetConsensus (), Consensus::DEPLOYMENT_MN_RR)) {
339+ // before mn_rr activation we are safe
340+ if (m_evoDb.Read (std::make_pair (DB_SIGNALS, blockHash), signals)) {
341+ LOCK (cs_cache);
342+ mnhfCache.insert (blockHash, signals);
343+ return signals;
344+ }
345+ }
337346 return std::nullopt ;
338347}
339348
You can’t perform that action at this time.
0 commit comments