Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

activemasternode.h
Go to the documentation of this file.
1 // Copyright (c) 2014-2019 The Dash Core developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef ACTIVEMASTERNODE_H
6 #define ACTIVEMASTERNODE_H
7 
8 #include <chainparams.h>
9 #include <key.h>
10 #include <net.h>
11 #include <primitives/transaction.h>
12 #include <validationinterface.h>
13 
14 #include <evo/deterministicmns.h>
15 #include <evo/providertx.h>
16 
19 
22 
24  // Keys for the active Masternode
25  std::unique_ptr<CBLSPublicKey> blsPubKeyOperator;
26  std::unique_ptr<CBLSSecretKey> blsKeyOperator;
27 
28  // Initialized while registering Masternode
32 };
33 
34 
36 {
37 public:
46  };
47 
48 private:
50  std::string strError;
51 
52 public:
53  virtual void UpdatedBlockTip(const CBlockIndex* pindexNew, const CBlockIndex* pindexFork, bool fInitialDownload);
54 
55  void Init(const CBlockIndex* pindex);
56 
57  std::string GetStateString() const;
58  std::string GetStatus() const;
59 
60  static bool IsValidNetAddr(CService addrIn);
61 
62 private:
63  bool GetLocalAddress(CService& addrRet);
64 };
65 
66 #endif
CActiveMasternodeManager * activeMasternodeManager
CActiveMasternodeInfo activeMasternodeInfo
masternode_state_t state
A combination of a network address (CNetAddr) and a (TCP) port.
Definition: netaddress.h:143
An outpoint - a combination of a transaction hash and an index n into its vout.
Definition: transaction.h:26
bool GetLocalAddress(CService &addrRet)
virtual void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload)
Notifies listeners of updated block chain tip.
256-bit opaque blob.
Definition: uint256.h:123
The block chain is a tree shaped structure starting with the genesis block at the root...
Definition: chain.h:170
std::string GetStateString() const
static bool IsValidNetAddr(CService addrIn)
std::string GetStatus() const
std::unique_ptr< CBLSPublicKey > blsPubKeyOperator
void Init(const CBlockIndex *pindex)
std::unique_ptr< CBLSSecretKey > blsKeyOperator
Released under the MIT license