mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
rustfmt
This commit is contained in:
parent
23cf377d3d
commit
40e94f53b6
1 changed files with 13 additions and 4 deletions
|
@ -172,11 +172,17 @@ fn update_genesis_rs(gen: &core::core::Block) {
|
||||||
));
|
));
|
||||||
replacements.push((
|
replacements.push((
|
||||||
"prev_root".to_string(),
|
"prev_root".to_string(),
|
||||||
format!("Hash::from_hex(\"{}\").unwrap()", gen.header.prev_root.to_hex()),
|
format!(
|
||||||
|
"Hash::from_hex(\"{}\").unwrap()",
|
||||||
|
gen.header.prev_root.to_hex()
|
||||||
|
),
|
||||||
));
|
));
|
||||||
replacements.push((
|
replacements.push((
|
||||||
"output_root".to_string(),
|
"output_root".to_string(),
|
||||||
format!("Hash::from_hex(\"{}\").unwrap()", gen.header.output_root.to_hex()),
|
format!(
|
||||||
|
"Hash::from_hex(\"{}\").unwrap()",
|
||||||
|
gen.header.output_root.to_hex()
|
||||||
|
),
|
||||||
));
|
));
|
||||||
replacements.push((
|
replacements.push((
|
||||||
"range_proof_root".to_string(),
|
"range_proof_root".to_string(),
|
||||||
|
@ -187,7 +193,10 @@ fn update_genesis_rs(gen: &core::core::Block) {
|
||||||
));
|
));
|
||||||
replacements.push((
|
replacements.push((
|
||||||
"kernel_root".to_string(),
|
"kernel_root".to_string(),
|
||||||
format!("Hash::from_hex(\"{}\").unwrap()", gen.header.kernel_root.to_hex()),
|
format!(
|
||||||
|
"Hash::from_hex(\"{}\").unwrap()",
|
||||||
|
gen.header.kernel_root.to_hex()
|
||||||
|
),
|
||||||
));
|
));
|
||||||
replacements.push((
|
replacements.push((
|
||||||
"total_kernel_offset".to_string(),
|
"total_kernel_offset".to_string(),
|
||||||
|
|
Loading…
Reference in a new issue