-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coherent IT config passing #16137
base: compatible
Are you sure you want to change the base?
Coherent IT config passing #16137
Changes from 4 commits
c73837f
8f2eef2
11b5fbc
9a0ac1b
24ab32f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,12 +54,8 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct | |
; txpool_max_size = 10_000_000 | ||
; snark_worker_fee = "0.0002" | ||
; num_archive_nodes = 0 | ||
; proof_config = | ||
{ proof_config_default with | ||
work_delay = Some 1 | ||
; transaction_capacity = | ||
Some Runtime_config.Proof_keys.Transaction_capacity.small | ||
} | ||
; work_delay = 1 | ||
; transaction_capacity_log_2 = 2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit |
||
; slot_tx_end = Some slot_tx_end | ||
; slot_chain_end = Some slot_chain_end | ||
} | ||
|
@@ -73,6 +69,9 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct | |
let run network t = | ||
let open Malleable_error.Let_syntax in | ||
let logger = Logger.create () in | ||
let { Test_config.genesis_constants; constraint_constants; _ } = | ||
Network.constants network | ||
in | ||
let num_slots = slot_chain_end + 2 in | ||
let receiver = | ||
String.Map.find_exn (Network.block_producers network) "receiver" | ||
|
@@ -98,18 +97,15 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct | |
let pk = s.keypair.public_key |> Signature_lib.Public_key.compress in | ||
return ([%log info] "sender: %s" (pk_to_string pk)) ) | ||
in | ||
let window_ms = | ||
(Network.constraint_constants network).block_window_duration_ms | ||
in | ||
let window_ms = constraint_constants.block_window_duration_ms in | ||
let all_nodes = Network.all_mina_nodes network in | ||
let%bind () = | ||
wait_for t | ||
(Wait_condition.nodes_to_initialize (String.Map.data all_nodes)) | ||
in | ||
let genesis_timestamp = | ||
Block_time.to_time_exn | ||
@@ Block_time.of_int64 | ||
(Network.genesis_constants network).protocol.genesis_state_timestamp | ||
@@ Block_time.of_int64 genesis_constants.protocol.genesis_state_timestamp | ||
in | ||
let end_t = | ||
Time.add genesis_timestamp | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,12 +40,8 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct | |
; worker_nodes = 2 | ||
} | ||
; snark_worker_fee = "0.0001" | ||
; proof_config = | ||
{ proof_config_default with | ||
work_delay = Some 1 | ||
; transaction_capacity = | ||
Some Runtime_config.Proof_keys.Transaction_capacity.small | ||
} | ||
; work_delay = 1 | ||
; transaction_capacity_log_2 = 2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit |
||
} | ||
|
||
let transactions_sent = ref 0 | ||
|
@@ -123,12 +119,8 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct | |
let run network t = | ||
let open Malleable_error.Let_syntax in | ||
let logger = Logger.create () in | ||
let constants : Test_config.constants = | ||
{ genesis_constants = Network.genesis_constants network | ||
; constraint_constants = Network.constraint_constants network | ||
; compile_config = Network.compile_config network | ||
} | ||
in | ||
let constants = Network.constants network in | ||
let constraint_constants = constants.constraint_constants in | ||
let block_producer_nodes = | ||
Network.block_producers network |> Core.String.Map.data | ||
in | ||
|
@@ -142,7 +134,6 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct | |
let node = | ||
Core.String.Map.find_exn (Network.block_producers network) "node-a" | ||
in | ||
let constraint_constants = Network.constraint_constants network in | ||
let fish1_kp = | ||
(Core.String.Map.find_exn (Network.genesis_keypairs network) "fish1") | ||
.keypair | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,12 +40,8 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct | |
; worker_nodes = 5 | ||
} | ||
; snark_worker_fee = "0.0001" | ||
; proof_config = | ||
{ proof_config_default with | ||
work_delay = Some 1 | ||
; transaction_capacity = | ||
Some Runtime_config.Proof_keys.Transaction_capacity.medium | ||
} | ||
; work_delay = 1 | ||
; transaction_capacity_log_2 = 3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
} | ||
|
||
let transactions_sent = ref 0 | ||
|
@@ -89,12 +85,7 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct | |
|
||
let run network t = | ||
let open Malleable_error.Let_syntax in | ||
let constants : Test_config.constants = | ||
{ genesis_constants = Network.genesis_constants network | ||
; constraint_constants = Network.constraint_constants network | ||
; compile_config = Network.compile_config network | ||
} | ||
in | ||
let constants = Network.constants network in | ||
let logger = Logger.create () in | ||
let block_producer_nodes = | ||
Network.block_producers network |> Core.String.Map.data | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
slight preference for modifying type and changing transaction_capacity_log_2 to a the variable.