Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions cl/cltypes/solid/attestation.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ func (s *SingleAttestation) Static() bool {

func (s *SingleAttestation) ToAttestation(memberIndexInCommittee int) *Attestation {
committeeBits := NewBitVector(maxCommitteesPerSlot)
committeeBits.SetBitAt(int(s.CommitteeIndex), true)
aggregationBits := NewBitList(0, aggregationBitsSizeElectra)
aggregationBits.SetOnBit(maxValidatorsPerCommittee*int(s.CommitteeIndex) + memberIndexInCommittee)
return &Attestation{
Expand Down
3 changes: 2 additions & 1 deletion cl/phase1/network/services/aggregate_and_proof_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
sentinel "github.com/erigontech/erigon-lib/gointerfaces/sentinelproto"
"github.com/erigontech/erigon-lib/log/v3"

libcommon "github.com/erigontech/erigon-lib/common"
"github.com/erigontech/erigon/cl/beacon/synced_data"
"github.com/erigontech/erigon/cl/clparams"
"github.com/erigontech/erigon/cl/cltypes"
Expand Down Expand Up @@ -348,7 +349,7 @@ func AggregateMessageSignature(
return err
}
pk := val.PublicKeyBytes()
pks = append(pks, pk)
pks = append(pks, libcommon.CopyBytes(pk))
return nil
}); err != nil {
return nil, nil, nil, err
Expand Down
3 changes: 1 addition & 2 deletions cl/phase1/network/services/sync_contribution_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (

"github.com/Giulio2002/bls"

"github.com/erigontech/erigon-lib/common"
libcommon "github.com/erigontech/erigon-lib/common"
sentinel "github.com/erigontech/erigon-lib/gointerfaces/sentinelproto"
"github.com/erigontech/erigon/cl/beacon/beaconevents"
Expand Down Expand Up @@ -297,7 +296,7 @@ func verifySyncContributionProofAggregatedSignature(s *state.CachingBeaconState,
subCommitteePubsKeys := make([][]byte, 0, len(subCommitteeKeys))
for i, key := range subCommitteeKeys {
if utils.IsBitOn(contribution.AggregationBits, i) {
subCommitteePubsKeys = append(subCommitteePubsKeys, common.Copy(key[:]))
subCommitteePubsKeys = append(subCommitteePubsKeys, libcommon.CopyBytes(key[:]))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cl/spectest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


tests:
wget https://github.com/ethereum/consensus-spec-tests/releases/download/v1.5.0-beta.0/mainnet.tar.gz
wget https://github.com/ethereum/consensus-spec-tests/releases/download/v1.5.0-beta.1/mainnet.tar.gz
tar xf mainnet.tar.gz
rm mainnet.tar.gz
# not needed for now
Expand Down
2 changes: 1 addition & 1 deletion cl/transition/impl/eth2/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ func (I *impl) ProcessWithdrawalRequest(s abstract.BeaconState, req *solid.Withd
// Verify pubkey exists
vindex, exist := s.ValidatorIndexByPubkey(reqPubkey)
if !exist {
log.Warn("ProcessWithdrawalRequest: validator index not found for pubkey %v", common.Bytes2Hex(reqPubkey[:]))
log.Warn("ProcessWithdrawalRequest: validator index not found", "pubkey", common.Bytes2Hex(reqPubkey[:]))
return nil
}
validator, err := s.ValidatorForValidatorIndex(int(vindex))
Expand Down

0 comments on commit 2e6edb4

Please sign in to comment.