Skip to content

Commit

Permalink
Cleanup genesis.rs a bit (mimblewimble#2390)
Browse files Browse the repository at this point in the history
  • Loading branch information
eupn authored and pharazen committed Mar 2, 2019
1 parent c237a00 commit a4cb305
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/src/genesis.rs
Expand Up @@ -47,8 +47,7 @@ pub fn genesis_dev() -> core::Block {
})
}

/// Placeholder for floonet genesis block, will definitely change before
/// release
/// Floonet genesis block
pub fn genesis_floo() -> core::Block {
let gen = core::Block::with_header(core::BlockHeader {
height: 0,
Expand Down Expand Up @@ -166,8 +165,7 @@ pub fn genesis_floo() -> core::Block {
gen.with_reward(output, kernel)
}

/// Placeholder for mainnet genesis block, will definitely change before
/// release so no use trying to pre-mine it.
/// Mainnet genesis block
pub fn genesis_main() -> core::Block {
let gen = core::Block::with_header(core::BlockHeader {
height: 0,
Expand Down Expand Up @@ -312,7 +310,7 @@ mod test {
let gen_hash = genesis_main().hash();
println!("mainnet genesis hash: {}", gen_hash.to_hex());
let gen_bin = ser::ser_vec(&genesis_main()).unwrap();
println!("floonet genesis full hash: {}\n", gen_bin.hash().to_hex());
println!("mainnet genesis full hash: {}\n", gen_bin.hash().to_hex());
assert_eq!(
gen_hash.to_hex(),
"40adad0aec27797b48840aa9e00472015c21baea118ce7a2ff1a82c0f8f5bf82"
Expand Down

0 comments on commit a4cb305

Please sign in to comment.