Fabcoin Core  0.16.2
P2P Digital Currency
GenesisInfo.h
Go to the documentation of this file.
1 /*
2  This file is part of cpp-ethereum.
3 
4  cpp-ethereum is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  cpp-ethereum is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>.
16 */
22 #pragma once
23 
24 #include <string>
25 #include <libdevcore/FixedHash.h>
26 #include <libethcore/Common.h>
27 
28 namespace dev
29 {
30 namespace eth
31 {
32 
34 enum class Network
35 {
36  //Olympic = 0, ///< Normal Olympic chain.
37  MainNetwork = 1,
38  //Morden = 2, ///< Normal Morden chain.
39  Ropsten = 3,
40  MainNetworkTest = 69,
41  TransitionnetTest = 70,
42  FrontierTest = 71,
43  HomesteadTest = 72,
44  EIP150Test = 73,
45  EIP158Test = 74,
46  MetropolisTest = 75,
47  Special = 0xff,
48  fascMainNetwork = 9,
49  fascTestNetwork = 10
50 };
51 
52 std::string const& genesisInfo(Network _n);
53 h256 const& genesisStateRoot(Network _n);
54 
55 }
56 }
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
Definition: Arith256.cpp:15
FASC Homestead + EIP150 + EIP158 Rules active from block 0 to enum class Network. ...
Homestead + EIP150 Rules active from block 0 For BlockchainTests.
Network
The network id.
Definition: GenesisInfo.h:34
Normal Frontier/Homestead/DAO/EIP150/EIP158 chain without all the premine.
h256 const & genesisStateRoot(Network _n)
Definition: GenesisInfo.cpp:57
Homestead + EIP150 + EIP158 Rules active from block 0.
Just test the Homestead-era characteristics "forever" (no Frontier portion).
MainNetwork rules but without genesis accounts (for transaction tests).
Just test the Frontier-era characteristics "forever" (no Homestead portion).
std::string const & genesisInfo(Network _n)
Definition: GenesisInfo.cpp:37
New Ropsten Test Network.
All fork rules + Metropolis active from block 0.
Normal Frontier/Homestead/DAO/EIP150/EIP158/Metropolis chain.