Skip to content

Commit

Permalink
fix: staker with self-validation (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
renlulu authored Jan 23, 2024
1 parent 836195f commit 5145ef3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions staker/l1_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"math/big"
"time"

"github.com/offchainlabs/nitro/arbstate"
"github.com/offchainlabs/nitro/das/eigenda"
"github.com/offchainlabs/nitro/staker/txbuilder"
"github.com/offchainlabs/nitro/util/arbmath"
"github.com/offchainlabs/nitro/validator"
Expand Down Expand Up @@ -50,7 +50,7 @@ type L1Validator struct {
wallet ValidatorWalletInterface
callOpts bind.CallOpts

das arbstate.DataAvailabilityReader
das eigenda.EigenDAReader
inboxTracker InboxTrackerInterface
txStreamer TransactionStreamerInterface
blockValidator *BlockValidator
Expand All @@ -62,7 +62,7 @@ func NewL1Validator(
wallet ValidatorWalletInterface,
validatorUtilsAddress common.Address,
callOpts bind.CallOpts,
das arbstate.DataAvailabilityReader,
das eigenda.EigenDAReader,
inboxTracker InboxTrackerInterface,
txStreamer TransactionStreamerInterface,
blockValidator *BlockValidator,
Expand Down
2 changes: 1 addition & 1 deletion staker/staker.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func NewStaker(
}
client := l1Reader.Client()
val, err := NewL1Validator(client, wallet, validatorUtilsAddress, callOpts,
statelessBlockValidator.daService, statelessBlockValidator.inboxTracker, statelessBlockValidator.streamer, blockValidator)
statelessBlockValidator.eigenDAService, statelessBlockValidator.inboxTracker, statelessBlockValidator.streamer, blockValidator)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 5145ef3

Please sign in to comment.