From bcd21720db305034ba04f02fb5da7181477f0c03 Mon Sep 17 00:00:00 2001 From: 0xluk Date: Mon, 11 Mar 2024 20:45:08 +0200 Subject: [PATCH] added logic to pass previous qchain getting error until epoch change --- validator/qchain/qchain.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/validator/qchain/qchain.go b/validator/qchain/qchain.go index fdfbbb8..57f8a73 100644 --- a/validator/qchain/qchain.go +++ b/validator/qchain/qchain.go @@ -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