@@ -37,10 +37,10 @@ class CMasternodeBroadcastFactory
3737 std::string& strErrorRet);
3838private:
3939 static void createWithoutSignatures (
40- CTxIn txin,
41- CService service,
42- CPubKey pubKeyCollateralAddressNew,
43- CPubKey pubKeyMasternodeNew,
40+ const CTxIn& txin,
41+ const CService& service,
42+ const CPubKey& pubKeyCollateralAddressNew,
43+ const CPubKey& pubKeyMasternodeNew,
4444 MasternodeTier nMasternodeTier,
4545 bool deferRelay,
4646 CMasternodeBroadcast& mnbRet);
@@ -57,45 +57,15 @@ class CMasternodeBroadcastFactory
5757 CMasternodeBroadcast& mnb,
5858 std::string& strErrorRet);
5959
60- static bool Create (CTxIn vin,
61- CService service,
62- CKey keyCollateralAddressNew,
63- CPubKey pubKeyCollateralAddressNew,
64- CKey keyMasternodeNew,
65- CPubKey pubKeyMasternodeNew,
66- MasternodeTier nMasternodeTier,
67- std::string& strErrorRet,
68- CMasternodeBroadcast& mnbRet,
69- bool deferRelay);
70- static bool checkBlockchainSync (
71- std::string& strErrorRet, bool fOffline );
72- static bool setMasternodeKeys (
73- const std::string& strKeyMasternode,
74- std::pair<CKey,CPubKey>& masternodeKeyPair,
75- std::string& strErrorRet);
76- static bool setMasternodeCollateralKeys (
77- const std::string& txHash,
78- const std::string& outputIndex,
79- const std::string& service,
80- bool collateralPrivKeyIsRemote,
81- CTxIn& txin,
82- std::pair<CKey,CPubKey>& masternodeCollateralKeyPair,
83- std::string& error);
84- static bool checkMasternodeCollateral (
85- const CTxIn& txin,
86- const std::string& txHash,
87- const std::string& outputIndex,
88- const std::string& service,
89- MasternodeTier& nMasternodeTier,
90- std::string& strErrorRet);
91- static bool createArgumentsFromConfig (
92- const CMasternodeConfig::CMasternodeEntry configEntry,
93- std::string& strErrorRet,
94- bool fOffline ,
95- bool collateralPrivKeyIsRemote,
96- CTxIn& txin,
97- std::pair<CKey,CPubKey>& masternodeKeyPair,
98- std::pair<CKey,CPubKey>& masternodeCollateralKeyPair,
99- MasternodeTier& nMasternodeTier);
60+ static bool Create (const CTxIn& vin,
61+ const CService& service,
62+ const CKey& keyCollateralAddressNew,
63+ const CPubKey& pubKeyCollateralAddressNew,
64+ const CKey& keyMasternodeNew,
65+ const CPubKey& pubKeyMasternodeNew,
66+ MasternodeTier nMasternodeTier,
67+ std::string& strErrorRet,
68+ CMasternodeBroadcast& mnbRet,
69+ bool deferRelay);
10070};
101- #endif // MASTERNODE_BROADCAST_FACTORY_H
71+ #endif // MASTERNODE_BROADCAST_FACTORY_H
0 commit comments