Skip to content

Commit

Permalink
add esmeralda pre-mine immediate spend
Browse files Browse the repository at this point in the history
  • Loading branch information
hansieodendaal committed Oct 4, 2024
1 parent fb23f24 commit 5958767
Show file tree
Hide file tree
Showing 2 changed files with 264 additions and 169 deletions.
8 changes: 4 additions & 4 deletions base_layer/core/src/blocks/genesis_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,11 @@ pub fn get_esmeralda_genesis_block() -> ChainBlock {

// Hardcode the Merkle roots once they've been computed above
block.header.kernel_mr =
FixedHash::from_hex("351cc183f692dcba280ec4e8988538fc51ffdeeff13ed3ea868026c81df5cc17").unwrap();
FixedHash::from_hex("dfd59ec3471887a6dee64cffc18bbd02f55c834cd4aca1f90cef0b420a0dcd52").unwrap();
block.header.input_mr =
FixedHash::from_hex("212ce6f5f7fc67dcb73b2a8a7a11404703aca210a7c75de9e50d914c9f9942c2").unwrap();
FixedHash::from_hex("d7eef1f0329e95c37122bd8e2b376e41de4248ee67aaa8aa0adf59c675e0956a").unwrap();
block.header.output_mr =
FixedHash::from_hex("024b4cde6fdc73edbfde822c1496d7bdf156bc25caaf45eb6642fa62ff846964").unwrap();
FixedHash::from_hex("2702a0ce0ee676c783bae79ac49c7aef0ea738db0b50dab51b225707e9ac1e09").unwrap();
block.header.validator_node_mr =
FixedHash::from_hex("277da65c40b2cf99db86baedb903a3f0a38540f3a94d40c826eecac7e27d5dfc").unwrap();
}
Expand Down Expand Up @@ -539,7 +539,7 @@ mod test {
// Note: Generate new data for `pub fn get_esmeralda_genesis_block()` and `fn get_esmeralda_genesis_block_raw()`
// if consensus values change, e.g. new pre_mine or other
let block = get_esmeralda_genesis_block();
check_block(network, &block, 0, 164, 1);
check_block(network, &block, 6, 247, 7);
remove_network_env_var();
}

Expand Down
Loading

0 comments on commit 5958767

Please sign in to comment.