Skip to content

Commit

Permalink
Fix proposer config for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailUshakoff committed Oct 24, 2024
1 parent bc5538a commit 7c8e197
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/taiko-client/driver/chain_syncer/blob/syncer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ func (s *BlobSyncerTestSuite) initProposer() {
TxSendTimeout: txmgr.DefaultBatcherFlagValues.TxSendTimeout,
TxNotInMempoolTimeout: txmgr.DefaultBatcherFlagValues.TxNotInMempoolTimeout,
},
GasNeededForProposingBlock: 0,
GasNeededForProvingBlock: 0,
PriceFluctuationModifier: 50,
OffChainCosts: big.NewInt(0),
}, nil, nil))

s.p = prop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package chainsyncer
import (
"bytes"
"context"
"math/big"

"os"
"testing"
Expand Down Expand Up @@ -99,6 +100,10 @@ func (s *ChainSyncerTestSuite) SetupTest() {
TxSendTimeout: txmgr.DefaultBatcherFlagValues.TxSendTimeout,
TxNotInMempoolTimeout: txmgr.DefaultBatcherFlagValues.TxNotInMempoolTimeout,
},
GasNeededForProposingBlock: 0,
GasNeededForProvingBlock: 0,
PriceFluctuationModifier: 50,
OffChainCosts: big.NewInt(0),
}, nil, nil))

s.p = prop
Expand Down
4 changes: 4 additions & 0 deletions packages/taiko-client/driver/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ func (s *DriverTestSuite) InitProposer() {
TxSendTimeout: txmgr.DefaultBatcherFlagValues.TxSendTimeout,
TxNotInMempoolTimeout: txmgr.DefaultBatcherFlagValues.TxNotInMempoolTimeout,
},
GasNeededForProposingBlock: 0,
GasNeededForProvingBlock: 0,
PriceFluctuationModifier: 50,
OffChainCosts: big.NewInt(0),
}, nil, nil))
s.p = p
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package handler

import (
"context"
"math/big"
"os"
"testing"
"time"
Expand Down Expand Up @@ -118,6 +119,10 @@ func (s *EventHandlerTestSuite) SetupTest() {
TxSendTimeout: txmgr.DefaultBatcherFlagValues.TxSendTimeout,
TxNotInMempoolTimeout: txmgr.DefaultBatcherFlagValues.TxNotInMempoolTimeout,
},
GasNeededForProposingBlock: 0,
GasNeededForProvingBlock: 0,
PriceFluctuationModifier: 50,
OffChainCosts: big.NewInt(0),
}, nil, nil))

s.proposer = prop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package submitter
import (
"bytes"
"context"
"math/big"
"os"
"testing"
"time"
Expand Down Expand Up @@ -145,6 +146,10 @@ func (s *ProofSubmitterTestSuite) SetupTest() {
L2SuggestedFeeRecipient: common.HexToAddress(os.Getenv("L2_SUGGESTED_FEE_RECIPIENT")),
ProposeInterval: 1024 * time.Hour,
MaxProposedTxListsPerEpoch: 1,
GasNeededForProposingBlock: 0,
GasNeededForProvingBlock: 0,
PriceFluctuationModifier: 50,
OffChainCosts: big.NewInt(0),
}, txMgr, txMgr))

s.proposer = prop
Expand Down
4 changes: 4 additions & 0 deletions packages/taiko-client/prover/prover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ func (s *ProverTestSuite) SetupTest() {
L2SuggestedFeeRecipient: common.HexToAddress(os.Getenv("L2_SUGGESTED_FEE_RECIPIENT")),
ProposeInterval: 1024 * time.Hour,
MaxProposedTxListsPerEpoch: 1,
GasNeededForProposingBlock: 0,
GasNeededForProvingBlock: 0,
PriceFluctuationModifier: 50,
OffChainCosts: big.NewInt(0),
}, s.txmgr, s.txmgr))

s.proposer = prop
Expand Down

0 comments on commit 7c8e197

Please sign in to comment.