Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneh1999 committed Sep 26, 2024
1 parent 0d952f2 commit e764983
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions execution/gethexec/espresso_finality_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,19 @@ type EspressoFinalityNode struct {

config SequencerConfigFetcher
execEngine *ExecutionEngine
sequencer *Sequencer
namespace uint64

espressoClient *espressoClient.Client
nextSeqBlockNum uint64
}

func NewEspressoFinalityNode(execEngine *ExecutionEngine, configFetcher SequencerConfigFetcher, sequencer *Sequencer) *EspressoFinalityNode {
func NewEspressoFinalityNode(execEngine *ExecutionEngine, configFetcher SequencerConfigFetcher) *EspressoFinalityNode {
config := configFetcher()
if err := config.Validate(); err != nil {
panic(err)
}
return &EspressoFinalityNode{
execEngine: execEngine,
sequencer: sequencer,
config: configFetcher,
namespace: config.EspressoFinalityNodeConfig.Namespace,
espressoClient: espressoClient.NewClient(config.EspressoFinalityNodeConfig.HotShotUrl),
Expand Down
2 changes: 1 addition & 1 deletion execution/gethexec/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func CreateExecutionNode(
return nil, err
}
if config.Sequencer.EnableEspressoFinalityNode {
espressoFinalityNode := NewEspressoFinalityNode(execEngine, seqConfigFetcher, sequencer)
espressoFinalityNode := NewEspressoFinalityNode(execEngine, seqConfigFetcher)
txPublisher = espressoFinalityNode
} else {
txPublisher = sequencer
Expand Down

0 comments on commit e764983

Please sign in to comment.