Dash Core
0.12.2.1
P2P Digital Currency
governance-keys.cpp
Go to the documentation of this file.
1
2
// // Copyright (c) 2014-2017 The Dash Core developers
3
// // Distributed under the MIT/X11 software license, see the accompanying
4
// // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6
// #ifndef GOVERNANCE_KEYS_H
7
// #define GOVERNANCE_KEYS_H
8
9
// #include <string>
10
// #include <vector>
11
// #include <map>
12
13
// #include <univalue.h>
14
// #include "support/allocators/secure.h"
15
// #include ""
16
17
// vector<CGovernanceKey> vGovernanceKeys;
18
// CCriticalSection cs_vGovernanceKeys;
19
20
// bool CGovernanceKeyManager::InitGovernanceKeys(std::string strError)
21
// {
22
23
// {
24
// LOCK(cs_vGovernanceKeys);
25
// vGovernanceKeys = mapMultiArgs["-addgovkey"];
26
// }
27
28
// BOOST_FOREACH(SecureString& strSecure, vGovernanceKeys)
29
// {
30
// std::vector<std::string> vecTokenized = SplitBy(strSubCommand, ":");
31
32
// if(vecTokenized.size() == 2) continue;
33
34
// CBitcoinSecret vchSecret;
35
// bool fGood = vchSecret.SetString(vecTokenized[0]);
36
37
// if(!fGood) {
38
// strError = "Invalid Governance Key : " + vecTokenized[0];
39
// return false;
40
// }
41
42
// CGovernanceKey key(vecTokenized[0], vecTokenized[1]);
43
// vGovernanceKeys.push_back(key);
44
// }
45
// }
src
drafted
governance-keys.cpp
Generated on Thu Dec 14 2017 13:15:02 for Dash Core by
1.8.14