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:
+2
-2
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user