mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 13:32:47 +01:00
32aa229c7f
* rename instantx.* file to instantsend.* * Reorganize Dash Specific code into folders add to privatesend folder the header files Signed-off-by: Pasta <Pasta@dash.org> add "masternode" to imports Signed-off-by: Pasta <Pasta@dash.org> add "masternode" to imports Signed-off-by: Pasta <Pasta@dash.org> add "masternode" to imports pt 2 Signed-off-by: Pasta <Pasta@dash.org>
29 lines
972 B
C++
29 lines
972 B
C++
// Copyright (c) 2014-2019 The Dash Core developers
|
|
// Distributed under the MIT/X11 software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef MASTERNODE_UTILS_H
|
|
#define MASTERNODE_UTILS_H
|
|
|
|
#include "evo/deterministicmns.h"
|
|
|
|
class CConnman;
|
|
|
|
class CMasternodeUtils
|
|
{
|
|
public:
|
|
typedef std::pair<arith_uint256, CDeterministicMNCPtr> score_pair_t;
|
|
typedef std::vector<score_pair_t> score_pair_vec_t;
|
|
typedef std::pair<int, const CDeterministicMNCPtr> rank_pair_t;
|
|
typedef std::vector<rank_pair_t> rank_pair_vec_t;
|
|
|
|
public:
|
|
static bool GetMasternodeScores(const uint256& nBlockHash, score_pair_vec_t& vecMasternodeScoresRet);
|
|
static bool GetMasternodeRank(const COutPoint &outpoint, int& nRankRet, uint256& blockHashRet, int nBlockHeight = -1);
|
|
|
|
static void ProcessMasternodeConnections(CConnman& connman);
|
|
static void DoMaintenance(CConnman &connman);
|
|
};
|
|
|
|
#endif//MASTERNODE_UTILS_H
|