Add and use SignedBeaconBlockWriteOnly (#11968)

This commit is contained in:
terencechain
2023-02-08 08:39:14 -08:00
committed by GitHub
parent 0d6e8718fd
commit e1f7c52e6b
19 changed files with 173 additions and 150 deletions

View File

@@ -769,7 +769,7 @@ func TestReconstructFullBellatrixBlockBatch(t *testing.T) {
require.NoError(t, err)
reconstructed, err := service.ReconstructFullBellatrixBlockBatch(ctx, []interfaces.SignedBeaconBlock{wrapped})
require.NoError(t, err)
require.DeepEqual(t, []interfaces.SignedBeaconBlock{wantedWrapped}, reconstructed)
require.DeepEqual(t, []interfaces.SignedBeaconBlockWriteable{wantedWrapped}, reconstructed)
})
t.Run("properly reconstructs block batch with correct payload", func(t *testing.T) {
fix := fixtures()