Skip to content

Commit

Permalink
rename command & scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Oct 5, 2023
1 parent bb4a6ea commit c89b6b7
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions cmd/blob-tester/main.go → cmd/blob-spammer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ func main() {
RpcHosts: rpcHosts,
WalletPrivkey: cliArgs.privkey,
WalletCount: 100,
WalletPrefund: utils.EtherToWei(uint256.NewInt(1)),
WalletMinfund: utils.EtherToWei(uint256.NewInt(1)),
WalletPrefund: utils.EtherToWei(uint256.NewInt(20)),
WalletMinfund: utils.EtherToWei(uint256.NewInt(10)),
}
err := scenario.Init(testerConfig)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package blobreplace
package combined

import (
"fmt"
Expand Down Expand Up @@ -44,7 +44,7 @@ type Scenario struct {

func NewScenario() scenariotypes.Scenario {
return &Scenario{
logger: logrus.WithField("scenario", "replace"),
logger: logrus.WithField("scenario", "combined"),
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package blobspam
package normal

import (
"fmt"
Expand Down Expand Up @@ -42,7 +42,7 @@ type Scenario struct {

func NewScenario() scenariotypes.Scenario {
return &Scenario{
logger: logrus.WithField("scenario", "spam"),
logger: logrus.WithField("scenario", "normal"),
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package blobreplace
package replacements

import (
"fmt"
Expand Down Expand Up @@ -44,7 +44,7 @@ type Scenario struct {

func NewScenario() scenariotypes.Scenario {
return &Scenario{
logger: logrus.WithField("scenario", "replace"),
logger: logrus.WithField("scenario", "replacements"),
}
}

Expand Down
12 changes: 6 additions & 6 deletions scenarios/scenarios.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ package scenarios
import (
"github.com/pk910/blob-spammer/scenariotypes"

bloball "github.com/pk910/blob-spammer/scenarios/blob-all"
blobreplace "github.com/pk910/blob-spammer/scenarios/blob-replace"
blobspam "github.com/pk910/blob-spammer/scenarios/blob-spam"
"github.com/pk910/blob-spammer/scenarios/combined"
"github.com/pk910/blob-spammer/scenarios/normal"
"github.com/pk910/blob-spammer/scenarios/replacements"
"github.com/pk910/blob-spammer/scenarios/wallets"
)

var Scenarios map[string]func() scenariotypes.Scenario = map[string]func() scenariotypes.Scenario{
"blob-all": bloball.NewScenario,
"blob-spam": blobspam.NewScenario,
"blob-replace": blobreplace.NewScenario,
"combined": combined.NewScenario,
"normal": normal.NewScenario,
"replacements": replacements.NewScenario,

"wallets": wallets.NewScenario,
}

0 comments on commit c89b6b7

Please sign in to comment.