From 3c9b9e7bf508cb9192ffd5bb76606513ae9baffe Mon Sep 17 00:00:00 2001 From: terence tsao Date: Mon, 3 May 2021 20:42:06 -0700 Subject: [PATCH] Add interop write block and state to disk (#8840) * Add interop write block and state to disk * Comment why false Co-authored-by: Raul Jordan --- beacon-chain/core/state/transition_no_verify_sig.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beacon-chain/core/state/transition_no_verify_sig.go b/beacon-chain/core/state/transition_no_verify_sig.go index b989d1dbe..bbec55d2e 100644 --- a/beacon-chain/core/state/transition_no_verify_sig.go +++ b/beacon-chain/core/state/transition_no_verify_sig.go @@ -9,6 +9,7 @@ import ( ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1" b "github.com/prysmaticlabs/prysm/beacon-chain/core/blocks" "github.com/prysmaticlabs/prysm/beacon-chain/core/helpers" + "github.com/prysmaticlabs/prysm/beacon-chain/core/state/interop" v "github.com/prysmaticlabs/prysm/beacon-chain/core/validators" iface "github.com/prysmaticlabs/prysm/beacon-chain/state/interface" "github.com/prysmaticlabs/prysm/shared/bls" @@ -54,6 +55,9 @@ func ExecuteStateTransitionNoVerifyAnySig( defer span.End() var err error + interop.WriteBlockToDisk(signed, false /* Has the block failed */) + interop.WriteStateToDisk(state) + if featureconfig.Get().EnableNextSlotStateCache { state, err = ProcessSlotsUsingNextSlotCache(ctx, state, signed.Block.ParentRoot, signed.Block.Slot) if err != nil {