Also produce full block hashes

This commit is contained in:
Ignotus Peverell
2018-12-14 22:12:54 +00:00
parent 194235a5a7
commit a71af7adae
2 changed files with 7 additions and 2 deletions
+3 -1
View File
@@ -187,11 +187,13 @@ pub fn genesis_main() -> core::Block {
mod test {
use super::*;
// TODO update the hash once genesis is set
// TODO hardcode the hashes once genesis is set
#[test]
fn mainnet_genesis_hash() {
let gen_hash = genesis_main().hash();
println!("mainnet genesis hash: {}", gen_hash.to_hex());
let gen_bin = core::ser::ser_vec(&genesis_main()).unwrap();
println!("mainnet genesis full hash: {}\n", gen_bin.hash().to_hex());
//assert_eq!(gene_hash.to_hex, "");
}
}