message: Add orphan blocks variables
diff: @@ -58,6 +58,17 @@ std::map<uint256, COrphanTx> mapOrphanTransactions GUARDED_BY(cs_main);
  std::map<COutPoint, std::set<std::map<uint256, COrphanTx>::iterator, IteratorComparator>> mapOrphanTransactionsByPrev GUARDED_BY(cs_main);
  void EraseOrphansFor(NodeId peer) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
  +struct COrphanBlock {
  + uint256 hashBlock;
  + uint256 hashPrev;
  + std::pair<COutPoint, unsigned int> stake;
  + std::vector<unsigned char> vchBlock;
  +};
  +std::map<uint256, COrphanBlock*> mapOrphanBlocks GUARDED_BY(cs_main);
  +std::multimap<uint256, COrphanBlock*> mapOrphanBlocksByPrev GUARDED_BY(cs_main);
  +std::set<std::pair<COutPoint, unsigned int>> setStakeSeenOrphan GUARDED_BY(cs_main);
  +size_t nOrphanBlocksSize = 0;
  +
  static size_t vExtraTxnForCompactIt = 0;
  static std::vector<std::pair<uint256, CTransactionRef>> vExtraTxnForCompact GUARDED_BY(cs_main);
  