Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

mnauth.h
Go to the documentation of this file.
1 // Copyright (c) 2019 The Dash Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef DASH_MNAUTH_H
6 #define DASH_MNAUTH_H
7 
8 #include <bls/bls.h>
9 #include <serialize.h>
10 
11 class CConnman;
12 class CDataStream;
13 class CDeterministicMN;
16 class CNode;
17 class UniValue;
18 
36 class CMNAuth
37 {
38 public:
41 
42 public:
44 
45  template <typename Stream, typename Operation>
46  inline void SerializationOp(Stream& s, Operation ser_action)
47  {
49  READWRITE(sig);
50  }
51 
52  static void PushMNAUTH(CNode* pnode, CConnman& connman);
53  static void ProcessMessage(CNode* pnode, const std::string& strCommand, CDataStream& vRecv, CConnman& connman);
54  static void NotifyMasternodeListChanged(bool undo, const CDeterministicMNList& oldMNList, const CDeterministicMNListDiff& diff);
55 };
56 
57 
58 #endif //DASH_MNAUTH_H
#define READWRITE(obj)
Definition: serialize.h:165
Double ended buffer combining vector and stream-like interfaces.
Definition: streams.h:103
static void NotifyMasternodeListChanged(bool undo, const CDeterministicMNList &oldMNList, const CDeterministicMNListDiff &diff)
Definition: mnauth.cpp:194
CBLSSignature sig
Definition: mnauth.h:40
ADD_SERIALIZE_METHODS
Definition: mnauth.h:43
uint256 proRegTxHash
Definition: mnauth.h:39
Definition: net.h:136
static void ProcessMessage(CNode *pnode, const std::string &strCommand, CDataStream &vRecv, CConnman &connman)
Definition: mnauth.cpp:57
static void PushMNAUTH(CNode *pnode, CConnman &connman)
Definition: mnauth.cpp:19
256-bit opaque blob.
Definition: uint256.h:123
This class handles the p2p message MNAUTH.
Definition: mnauth.h:36
Information about a peer.
Definition: net.h:800
void SerializationOp(Stream &s, Operation ser_action)
Definition: mnauth.h:46
Released under the MIT license