6 #ifndef PIVX_TIERTWO_MASTERNODE_META_MANAGER_H
7 #define PIVX_TIERTWO_MASTERNODE_META_MANAGER_H
15 static const std::string MN_META_CACHE_FILENAME =
"mnmetacache.dat";
16 static const std::string MN_META_CACHE_FILE_ID =
"magicMasternodeMetaCache";
39 READWRITE(obj.proTxHash, obj.lastOutboundAttempt, obj.lastOutboundSuccess);
56 std::map<uint256, CMasternodeMetaInfoPtr>
metaInfos;
64 template <
typename Stream>
68 std::vector<CMasternodeMetaInfo> tmpMetaInfo;
70 tmpMetaInfo.emplace_back(*p.second);
75 template <
typename Stream>
79 std::string strVersion;
85 std::vector<CMasternodeMetaInfo> tmpMetaInfo;
87 for (
auto& mm : tmpMetaInfo) {
88 metaInfos.emplace(mm.GetProTxHash(), std::make_shared<CMasternodeMetaInfo>(std::move(mm)));