Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-o-how committed May 23, 2024
1 parent 0d581f5 commit 88fffac
Showing 1 changed file with 22 additions and 27 deletions.
49 changes: 22 additions & 27 deletions crates/chia-consensus/src/consensus_constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,53 +136,48 @@ pub struct ConsensusConstants {
plot_filter_32_height: u32,
}


pub const TEST_CONSTANTS: ConsensusConstants = ConsensusConstants {
slot_blocks_target: 32,
min_blocks_per_challenge_block: 16,
max_sub_slot_blocks: 128,
max_sub_slot_blocks: 128,
num_sps_sub_slot: 64,
sub_slot_iters_starting: u64::pow(2,27),
difficulty_constant_factor: u128::pow(2,67),
sub_slot_iters_starting: u64::pow(2, 27),

difficulty_constant_factor: u128::pow(2, 67),
difficulty_starting: 7,
difficulty_change_max_factor: 3,
difficulty_change_max_factor: 3,

sub_epoch_blocks: 384,
sub_epoch_blocks: 384,
epoch_blocks: 4608,
significant_bits: 8,
discriminant_size_bits: 1024,
number_zero_bits_plot_filter: 9,
min_plot_size: 32,
max_plot_size: 50,
sub_slot_time_target: 600,
num_sp_intervals_extra: 3,
max_future_time2: 2 * 60,
number_of_timestamps: 11,
num_sp_intervals_extra: 3,
max_future_time2: 2 * 60,
number_of_timestamps: 11,
genesis_challenge: Bytes32::const_new([
0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14,
0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24,
0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c,
0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52, 0xb8, 0x55,
0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9,
0x24, 0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52,
0xb8, 0x55,
]),

agg_sig_me_additional_data: Bytes32::const_new([
0xcc, 0xd5, 0xbb, 0x71, 0x18, 0x35, 0x32, 0xbf,
0xf2, 0x20, 0xba, 0x46, 0xc2, 0x68, 0x99, 0x1a,
0x3f, 0xf0, 0x7e, 0xb3, 0x58, 0xe8, 0x25, 0x5a,
0x65, 0xc3, 0x0a, 0x2d, 0xce, 0x0e, 0x5f, 0xbb,
0xcc, 0xd5, 0xbb, 0x71, 0x18, 0x35, 0x32, 0xbf, 0xf2, 0x20, 0xba, 0x46, 0xc2, 0x68, 0x99,
0x1a, 0x3f, 0xf0, 0x7e, 0xb3, 0x58, 0xe8, 0x25, 0x5a, 0x65, 0xc3, 0x0a, 0x2d, 0xce, 0x0e,
0x5f, 0xbb,
]),
genesis_pre_farm_pool_puzzle_hash: Bytes32::const_new([
0xd2, 0x3d, 0xa1, 0x46, 0x95, 0xa1, 0x88, 0xae,
0x57, 0x08, 0xdd, 0x15, 0x22, 0x63, 0xc4, 0xdb,
0x88, 0x3e, 0xb2, 0x7e, 0xde, 0xb9, 0x36, 0x17,
0x8d, 0x4d, 0x98, 0x8b, 0x8f, 0x3c, 0xe5, 0xfc,
0xd2, 0x3d, 0xa1, 0x46, 0x95, 0xa1, 0x88, 0xae, 0x57, 0x08, 0xdd, 0x15, 0x22, 0x63, 0xc4,
0xdb, 0x88, 0x3e, 0xb2, 0x7e, 0xde, 0xb9, 0x36, 0x17, 0x8d, 0x4d, 0x98, 0x8b, 0x8f, 0x3c,
0xe5, 0xfc,
]),
genesis_pre_farm_farmer_puzzle_hash: Bytes32::const_new([
0x3d, 0x87, 0x65, 0xd3, 0xa5, 0x97, 0xec, 0x1d,
0x99, 0x66, 0x3f, 0x6c, 0x98, 0x16, 0xd9, 0x15,
0xb9, 0xf6, 0x86, 0x13, 0xac, 0x94, 0x00, 0x98,
0x84, 0xc4, 0xad, 0xda, 0xef, 0xcc, 0xe6, 0xaf,
0x3d, 0x87, 0x65, 0xd3, 0xa5, 0x97, 0xec, 0x1d, 0x99, 0x66, 0x3f, 0x6c, 0x98, 0x16, 0xd9,
0x15, 0xb9, 0xf6, 0x86, 0x13, 0xac, 0x94, 0x00, 0x98, 0x84, 0xc4, 0xad, 0xda, 0xef, 0xcc,
0xe6, 0xaf,
]),
max_vdf_witness_size: 64,

Expand All @@ -207,4 +202,4 @@ pub const TEST_CONSTANTS: ConsensusConstants = ConsensusConstants {
plot_filter_128_height: 10542000,
plot_filter_64_height: 15592000,
plot_filter_32_height: 20643000,
};
};

0 comments on commit 88fffac

Please sign in to comment.