Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions runner/payload/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package payload

import (
"context"
"errors"
"fmt"

clienttypes "github.com/base/base-bench/runner/clients/types"
benchtypes "github.com/base/base-bench/runner/network/types"
Expand Down Expand Up @@ -41,7 +41,7 @@ func NewPayloadWorker(ctx context.Context, log log.Logger, testConfig *benchtype
worker, err = simulator.NewSimulatorPayloadWorker(
ctx, log, sequencerClient.ClientURL(), params, privateKey, amount, &genesis, definition.Params)
default:
return nil, errors.New("invalid payload type")
return nil, fmt.Errorf("invalid payload type: %s", definition.Type)
}

return worker, err
Expand Down
3 changes: 3 additions & 0 deletions runner/payload/simulator/simulatorstats/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ type StatsConfig struct {
Opcodes *OpcodeStats `yaml:"opcodes"`
Precompiles *OpcodeStats `yaml:"precompiles"`
AvgGasUsed *float64 `yaml:"avg_gas_used"`
// NumCallers is the number of caller accounts to distribute transactions across.
// Defaults to 1 if not specified.
NumCallers *int `yaml:"num_callers"`
}

func (s *StatsConfig) ToStats() *Stats {
Expand Down
Loading
Loading