Skip to content

Commit

Permalink
feat(proposer): remove an unused flag (taikoxyz#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored Mar 7, 2023
1 parent 65bac2c commit 9ccfa5e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions cmd/flags/proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ var (
Value: rand.Uint64(),
Category: proposerCategory,
}
ShufflePoolContent = &cli.BoolFlag{
Name: "shufflePoolContent",
Usage: "Perform a weighted shuffle when building the transactions list to propose",
Value: false,
Category: proposerCategory,
}
TxPoolLocals = &cli.StringFlag{
Name: "txpool.locals",
Usage: "Perform a weighted shuffle when building the transactions list to propose",
Expand All @@ -60,7 +54,6 @@ var ProposerFlags = MergeFlags(CommonFlags, []cli.Flag{
L1ProposerPrivKey,
L2SuggestedFeeRecipient,
ProposeInterval,
ShufflePoolContent,
CommitSlot,
TxPoolLocals,
ProposeEmptyBlocksInterval,
Expand Down
2 changes: 0 additions & 2 deletions proposer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ type Config struct {
L1ProposerPrivKey *ecdsa.PrivateKey
L2SuggestedFeeRecipient common.Address
ProposeInterval *time.Duration
ShufflePoolContent bool
CommitSlot uint64
LocalAddresses []common.Address
ProposeEmptyBlocksInterval *time.Duration
Expand Down Expand Up @@ -79,7 +78,6 @@ func NewConfigFromCliContext(c *cli.Context) (*Config, error) {
L1ProposerPrivKey: l1ProposerPrivKey,
L2SuggestedFeeRecipient: common.HexToAddress(l2SuggestedFeeRecipient),
ProposeInterval: proposingInterval,
ShufflePoolContent: c.Bool(flags.ShufflePoolContent.Name),
CommitSlot: c.Uint64(flags.CommitSlot.Name),
LocalAddresses: localAddresses,
ProposeEmptyBlocksInterval: proposeEmptyBlocksInterval,
Expand Down

0 comments on commit 9ccfa5e

Please sign in to comment.