Skip to content

Commit 87573ae

Browse files
committed
fix run node wiring
1 parent ece6de8 commit 87573ae

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

pkg/cmd/run_node.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,15 @@ func StartNode(
161161
mainKV := store.NewEvNodeKVStore(datastore)
162162
baseStore := store.New(mainKV)
163163

164+
var latestDAHeight uint64
164165
latestState, err := baseStore.GetState(cmd.Context())
165166
if err != nil {
166-
return fmt.Errorf("failed getting latest state to construct fiber client: %w", err)
167+
latestDAHeight = genesis.DAStartHeight
168+
} else {
169+
latestDAHeight = latestState.DAHeight
167170
}
168171

169-
daClient = block.NewFiberDAClient(fiberClient, nodeConfig, logger, latestState.DAHeight)
172+
daClient = block.NewFiberDAClient(fiberClient, nodeConfig, logger, latestDAHeight)
170173
} else {
171174
blobClient, err := blobrpc.NewWSClient(ctx, logger, nodeConfig.DA.Address, nodeConfig.DA.AuthToken, "")
172175
if err != nil {

0 commit comments

Comments
 (0)