GenesisInfo.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. This file is part of cpp-ethereum.
  3. cpp-ethereum is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 3 of the License, or
  6. (at your option) any later version.
  7. cpp-ethereum is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. /** @file GenesisInfo.h
  15. * @author Gav Wood <i@gavwood.com>
  16. * @date 2014
  17. */
  18. #pragma once
  19. #include <string>
  20. #include <libdevcore/FixedHash.h>
  21. #include <libethcore/Common.h>
  22. namespace dev
  23. {
  24. namespace eth
  25. {
  26. /// The network id.
  27. enum class Network
  28. {
  29. //Olympic = 0, ///< Normal Olympic chain.
  30. Frontier = 1, ///< Normal Frontier/Homestead chain.
  31. //Morden = 2, ///< Normal Morden chain.
  32. Ropsten = 3, ///< New Ropsten Test Network
  33. Test = 70, ///< Normal Frontier/Homestead chain without all the premine.
  34. FrontierTest = 71, ///< Just test the Frontier-era characteristics "forever" (no Homestead portion).
  35. HomesteadTest = 72, ///< Just test the Homestead-era characteristics "forever" (no Frontier portion).
  36. EIP150Test = 73, ///< Homestead + EIP150 Rules active from block 0 For BlockchainTests
  37. EIP158Test = 74, ///< Homestead + EIP150 + EIP158 Rules active from block 0
  38. Special = 0xff ///< Something else.
  39. };
  40. std::string const& genesisInfo(Network _n);
  41. h256 const& genesisStateRoot(Network _n);
  42. }
  43. }