Commit ee39f95e authored by joohhnnn's avatar joohhnnn

fix format from 'make lint-go'

parent dd9c9965
......@@ -43,4 +43,3 @@ func main() {
log.Crit("Application failed", "message", err)
}
}
......@@ -27,4 +27,4 @@ func (*noopMetrics) RecordL2BlocksProposed(l2ref eth.L2BlockRef) {}
func (*noopMetrics) StartBalanceMetrics(log.Logger, *ethclient.Client, common.Address) io.Closer {
return nil
}
\ No newline at end of file
}
......@@ -6,7 +6,6 @@ import (
"github.com/urfave/cli/v2"
"github.com/ethereum-optimism/optimism/op-proposer/flags"
oplog "github.com/ethereum-optimism/optimism/op-service/log"
opmetrics "github.com/ethereum-optimism/optimism/op-service/metrics"
oppprof "github.com/ethereum-optimism/optimism/op-service/pprof"
......
......@@ -9,7 +9,6 @@ import (
"sync"
"time"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
......@@ -66,8 +65,8 @@ type L2OutputSubmitter struct {
mutex sync.Mutex
running bool
l2ooContract *bindings.L2OutputOracleCaller
l2ooABI *abi.ABI
l2ooContract *bindings.L2OutputOracleCaller
l2ooABI *abi.ABI
}
// NewL2OutputSubmitter creates a new L2 Output Submitter
......@@ -97,12 +96,12 @@ func NewL2OutputSubmitter(setup DriverSetup) (*L2OutputSubmitter, error) {
return &L2OutputSubmitter{
DriverSetup: setup,
done: make(chan struct{}),
ctx: ctx,
cancel: cancel,
done: make(chan struct{}),
ctx: ctx,
cancel: cancel,
l2ooContract: l2ooContract,
l2ooABI: parsed,
l2ooContract: l2ooContract,
l2ooABI: parsed,
}, nil
}
......@@ -132,7 +131,7 @@ func (l *L2OutputSubmitter) StopL2OutputSubmittingIfRunning() error {
return err
}
func (l *L2OutputSubmitter) StopL2OutputSubmitting() error{
func (l *L2OutputSubmitter) StopL2OutputSubmitting() error {
l.Log.Info("Stopping Proposer")
l.mutex.Lock()
......
......@@ -26,28 +26,28 @@ import (
"github.com/ethereum/go-ethereum/log"
)
type ProposerConfig struct{
type ProposerConfig struct {
// How frequently to poll L2 for new finalized outputs
PollInterval time.Duration
NetworkTimeout time.Duration
PollInterval time.Duration
NetworkTimeout time.Duration
L2OutputOracleAddr common.Address
// AllowNonFinalized enables the proposal of safe, but non-finalized L2 blocks.
// The L1 block-hash embedded in the proposal TX is checked and should ensure the proposal
// is never valid on an alternative L1 chain that would produce different L2 data.
// This option is not necessary when higher proposal latency is acceptable and L1 is healthy.
AllowNonFinalized bool
AllowNonFinalized bool
}
type ProposerService struct{
Log log.Logger
Metrics metrics.Metricer
type ProposerService struct {
Log log.Logger
Metrics metrics.Metricer
ProposerConfig
TxManager txmgr.TxManager
L1Client *ethclient.Client
RollupClient *sources.RollupClient
TxManager txmgr.TxManager
L1Client *ethclient.Client
RollupClient *sources.RollupClient
driver *L2OutputSubmitter
......@@ -307,4 +307,4 @@ var _ cliapp.Lifecycle = (*ProposerService)(nil)
// to start/stop/restart the L2Output-submission work, for use in testing.
func (ps *ProposerService) Driver() rpc.ProposerDriver {
return ps.driver
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment