Skip to content

Commit c78bfab

Browse files
authored
Fix Go Builds (#7123)
* change to ssz DeepEqual * gaz
1 parent 2ee025e commit c78bfab

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

beacon-chain/sync/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ go_library(
9191
"@com_github_prometheus_client_golang//prometheus:go_default_library",
9292
"@com_github_prometheus_client_golang//prometheus/promauto:go_default_library",
9393
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
94+
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
9495
"@com_github_sirupsen_logrus//:go_default_library",
9596
"@io_opencensus_go//trace:go_default_library",
9697
],

beacon-chain/sync/pending_blocks_queue.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import (
66
"sort"
77
"sync"
88

9-
"github.com/gogo/protobuf/proto"
9+
"github.com/prysmaticlabs/go-ssz"
10+
1011
"github.com/pkg/errors"
1112
ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
1213
"github.com/prysmaticlabs/prysm/beacon-chain/core/helpers"
@@ -262,7 +263,7 @@ func (s *Service) deleteBlockFromPendingQueue(slot uint64, b *ethpb.SignedBeacon
262263
}
263264
newBlks := make([]*ethpb.SignedBeaconBlock, 0, len(blks))
264265
for _, blk := range blks {
265-
if proto.Equal(blk, b) {
266+
if ssz.DeepEqual(blk, b) {
266267
continue
267268
}
268269
newBlks = append(newBlks, blk)

0 commit comments

Comments
 (0)