{
private:
std::vector
std::string strMasterPrivKey;
std::string strTestPubKey;
std::string strMainPubKey;
public:
CSporkManager() {
strMainPubKey = "04549ac134f694c0243f503e8c8a9a986f5de6610049c40b07816809b0d1d06a21b07be27b9bb555931773f62ba6cf35a25fd52f694d4e1106ccd237a7bb899fdd";
strTestPubKey = "046f78dcf911fbd61910136f7f0f8d90578f68d0b3ac973b5040fb7afb501b5939f39b108b0569dca71488f5bbf498d92e4d1194f6f941307ffd95f75e76869f0e";
}
std::string GetSporkNameByID(int id);
int GetSporkIDByName(std::string strName);
bool UpdateSpork(int nSporkID, int64_t nValue);
bool SetPrivKey(std::string strPrivKey);
bool CheckSignature(CSporkMessage& spork);
bool Sign(CSporkMessage& spork);
void Relay(CSporkMessage& msg);
};
but where import the privkey, end how call sporkmanager .

spork
13:55:00

spork
13:56:18

spork SPORK_1_MASTERNODE_PAYMENTS_ENFORCEMENT_DEFAULT
13:56:18

spork
13:56:24

spork SPORK_1_MASTERNODE_PAYMENTS_ENFORCEMENT_DEFAULT 1
13:56:24

Invalid spork name
13:56:53

spork SPORK_1_MASTERNODE_PAYMENTS_ENFORCEMENT_DEFAULT [1]
13:56:53

Error: value is type array, expected int
13:57:01

spork SPORK_1_MASTERNODE_PAYMENTS_ENFORCEMENT_DEFAULT 1
13:57:01

Invalid spork name
13:57:21

spork SPORK_7_MASTERNODE_SCANNING 1
13:57:21

failure
13:57:26

spork SPORK_7_MASTERNODE_SCANNING [1]
13:57:26

Error: value is type array, expected int
13:57:36

spork SPORK_7_MASTERNODE_SCANNING [2]
13:57:36

Error: value is type array, expected int
13:57:39

spork SPORK_7_MASTERNODE_SCANNING [24242141]
13:57:39

Error: value is type array, expected int
13:58:49

spork settings 1
13:58:49

Invalid spork name
13:59:04

spork settings <1>
13:59:04

Error: Error parsing JSON:<1>
13:59:08

spork settings <2>
13:59:08

Error: Error parsing JSON:<2>
13:59:21

spork SPORK_7_MASTERNODE_SCANNING [<24242141>]
13:59:21

Error: Error parsing JSON:[<24242141>]
13:59:26

spork SPORK_7_MASTERNODE_SCANNING [<1>]
13:59:26

Error: Error parsing JSON:[<1>]
13:59:28

spork SPORK_7_MASTERNODE_SCANNING [<2>]
13:59:28

Error: Error parsing JSON:[<2>]
13:59:37

spork SPORK_7_MASTERNODE_SCANNING [
13:59:37

Error: Error parsing JSON:[
13:59:40

spork SPORK_7_MASTERNODE_SCANNING [key]
13:59:40

Error: Error parsing JSON:[key]
13:59:46

spork SPORK_7_MASTERNODE_SCANNING [5435234545345234534534534534]
13:59:46

Error: Error parsing JSON:[5435234545345234534534534534]
end what is this ?
what this do ?
#define SPORK_2_INSTANTX_DEFAULT 978307200 //2001-1-1
#define SPORK_3_INSTANTX_BLOCK_FILTERING_DEFAULT 1424217600 //2015-2-18
#define SPORK_5_MAX_VALUE_DEFAULT 1000 //1000 DASH
#define SPORK_7_MASTERNODE_SCANNING_DEFAULT 978307200 //2001-1-1