Skip to content

Commit

Permalink
CAD-1067 bench: compute the pbft threshold from cluster size
Browse files Browse the repository at this point in the history
  • Loading branch information
deepfire committed Jul 1, 2020
1 parent 076cc91 commit bec1c41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions bench/lib-report.sh
Expand Up @@ -43,6 +43,7 @@ run_report_name() {
package_run() {
local tag report_name package
dir=${1:-.}
tag=$(run_tag "$dir")
report_name=$(run_report_name "$dir")

if is_run_broken "$dir"
Expand Down
6 changes: 5 additions & 1 deletion globals-bench-txgen-simple.nix
Expand Up @@ -122,7 +122,11 @@ in reportDeployment (rec {
coreNodes = map (n : n // {
services.cardano-node.nodeConfig =
pkgs.globals.environmentConfig.nodeConfig
// benchmarkingLogConfig;
// benchmarkingLogConfig
// {
PBftSignatureThreshold =
(1.0 / __length benchmarkingTopology.coreNodes) * 1.5;
};
}) (benchmarkingTopology.coreNodes or []);
};

Expand Down

0 comments on commit bec1c41

Please sign in to comment.