Skip to content

Commit

Permalink
added logic to pass previous qchain getting error until epoch change
Browse files Browse the repository at this point in the history
  • Loading branch information
0xluk committed Mar 11, 2024
1 parent 391a777 commit bcd2172
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion validator/qchain/qchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ func getPrevQChainDigest(ctx context.Context, store *store.PebbleStore, initialE

previousTickQChainDigestStored, err := store.GetQChainDigest(ctx, tickNumber-1)
if err != nil {
return [32]byte{}, errors.Wrapf(err, "getting qChain digest for last tick: %d\n", tickNumber-1)
//returning nil error in order to not fail until epoch change
return [32]byte{}, nil
//return [32]byte{}, errors.Wrapf(err, "getting qChain digest for last tick: %d\n", tickNumber-1)
}

var previousTickQChainDigest [32]byte
Expand Down

0 comments on commit bcd2172

Please sign in to comment.