Skip to content

Commit

Permalink
Merge pull request #2404 from OffchainLabs/staker-dp-nil
Browse files Browse the repository at this point in the history
Add nil check for the staker's DataPoster
  • Loading branch information
PlasmaPower committed Jun 17, 2024
2 parents a5d4449 + a4dcd41 commit 9efbc16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arbnode/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,9 @@ func createNodeImpl(
if err := wallet.Initialize(ctx); err != nil {
return nil, err
}
stakerAddr = dp.Sender()
if dp != nil {
stakerAddr = dp.Sender()
}
whitelisted, err := stakerObj.IsWhitelisted(ctx)
if err != nil {
return nil, err
Expand Down

0 comments on commit 9efbc16

Please sign in to comment.