Genesis block for known chains, mine dev chains (#269)

Renamed mining parameter mode to chain type, with existing types
of CI testing, user testing, testnet1 or mainnet. The public
chains (testnet1 and mainnet) come with their fully pre-defined
genesis block.

Still need to set the nonce and cycle for testnet1 genesis.
This commit is contained in:
Ignotus Peverell
2017-11-15 16:49:15 -05:00
committed by GitHub
parent 6fb085a823
commit 91fdaa8320
13 changed files with 167 additions and 190 deletions
+2 -2
View File
@@ -608,7 +608,7 @@ mod tests {
use keychain::Keychain;
use std::sync::{Arc, RwLock};
use blake2;
use core::global::MiningParameterMode;
use core::global::ChainTypes;
use core::core::SwitchCommitHash;
macro_rules! expect_output_parent {
@@ -795,7 +795,7 @@ mod tests {
#[test]
fn test_immature_coinbase() {
global::set_mining_mode(MiningParameterMode::AutomatedTesting);
global::set_mining_mode(ChainTypes::AutomatedTesting);
let mut dummy_chain = DummyChainImpl::new();
let coinbase_output = test_coinbase_output(15);
dummy_chain.update_utxo_set(DummyUtxoSet::empty().with_output(coinbase_output));