Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 committed Jan 7, 2025
1 parent 4dfb828 commit 81a0767
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion cl/beacon/handler/states_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ func TestGetStateFullHistorical(t *testing.T) {
// setupTestingHandler(t, clparams.Phase0Version)
_, blocks, _, _, postState, handler, _, _, fcu, _ := setupTestingHandler(t, clparams.Phase0Version, log.Root(), true)

fmt.Println("AX")
postRoot, err := postState.HashSSZ()
require.NoError(t, err)

Expand Down
3 changes: 0 additions & 3 deletions cl/cltypes/solid/hash_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package solid

import (
"encoding/json"
"fmt"

libcommon "github.com/erigontech/erigon-lib/common"
"github.com/erigontech/erigon-lib/common/length"
Expand Down Expand Up @@ -156,8 +155,6 @@ func (h *hashList) Set(index int, newValue libcommon.Hash) {
}

func (h *hashList) hashVectorSSZ() ([32]byte, error) {
fmt.Println(h.MerkleTree == nil)

if h.MerkleTree == nil {
cap := uint64(h.c)
h.MerkleTree = &merkle_tree.MerkleTree{}
Expand Down
2 changes: 0 additions & 2 deletions cl/cltypes/solid/uint64slice_byte.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package solid
import (
"encoding/binary"
"encoding/json"
"fmt"
"strconv"

"github.com/erigontech/erigon-lib/common/length"
Expand Down Expand Up @@ -178,7 +177,6 @@ func (arr *byteBasedUint64Slice) Cap() int {

// HashListSSZ computes the SSZ hash of the slice as a list. It returns the hash and any error encountered.
func (arr *byteBasedUint64Slice) HashListSSZ() ([32]byte, error) {
fmt.Println(arr.MerkleTree == nil)
if arr.MerkleTree == nil {
arr.MerkleTree = &merkle_tree.MerkleTree{}
cap := uint64((arr.c*8 + length.Hash - 1) / length.Hash)
Expand Down
2 changes: 0 additions & 2 deletions cl/cltypes/solid/validator_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package solid

import (
"encoding/json"
"fmt"

libcommon "github.com/erigontech/erigon-lib/common"
"github.com/erigontech/erigon-lib/types/clonable"
Expand Down Expand Up @@ -152,7 +151,6 @@ func (v *ValidatorSet) CopyTo(t *ValidatorSet) {
}

func (v *ValidatorSet) DecodeSSZ(buf []byte, _ int) error {
fmt.Println("A")
if len(buf)%validatorSize > 0 {
return ssz.ErrBufferNotRounded
}
Expand Down
1 change: 0 additions & 1 deletion cl/phase1/forkchoice/fork_choice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ func TestForkChoiceBasic(t *testing.T) {
require.Equal(t, headSlot, uint64(3))
require.Equal(t, headRoot, libcommon.HexToHash("0x744cc484f6503462f0f3a5981d956bf4fcb3e57ab8687ed006467e05049ee033"))
// last block
fmt.Println("block0xd4")
require.NoError(t, store.OnBlock(ctx, block0xd4, false, true, false))
require.Equal(t, store.Time(), uint64(36))
require.Equal(t, store.ProposerBoostRoot(), libcommon.HexToHash("0x744cc484f6503462f0f3a5981d956bf4fcb3e57ab8687ed006467e05049ee033"))
Expand Down
1 change: 0 additions & 1 deletion cl/phase1/stages/stage_history_download.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ func SpawnStageHistoryDownload(cfg StageHistoryReconstructionCfg, ctx context.Co
}
}
cfg.antiquary.NotifyBackfilled()
fmt.Println(cfg.caplinConfig.ArchiveBlocks)
if cfg.caplinConfig.ArchiveBlocks {
cfg.logger.Info("Full backfilling finished")
} else {
Expand Down
1 change: 0 additions & 1 deletion cl/transition/impl/eth2/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,6 @@ func (I *impl) ProcessBlockHeader(s abstract.BeaconState, slot, proposerIndex ui
if err != nil {
return fmt.Errorf("unable to hash tree root of latest block header: %v", err)
}
fmt.Println("latestRoot", blockHeader)
if parentRoot != latestRoot {
return fmt.Errorf(
"block parent root: %x, does not match latest block root: %x",
Expand Down

0 comments on commit 81a0767

Please sign in to comment.