mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 13:28:01 -05:00
Update WORKSPACE With Latest SSZ (#3416)
This commit is contained in:
committed by
terence tsao
parent
a3c3a72e72
commit
adc27a0bc2
@@ -205,7 +205,7 @@ go_repository(
|
||||
|
||||
go_repository(
|
||||
name = "com_github_prysmaticlabs_go_ssz",
|
||||
commit = "72881c4223d824701b737af31cc987968510b228",
|
||||
commit = "9193cae6b7c3347054706b8466db139b8be90985",
|
||||
importpath = "github.com/prysmaticlabs/go-ssz",
|
||||
)
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ test_cases:
|
||||
b1: 5
|
||||
b2: 6
|
||||
b3: 6
|
||||
head: 'b2'
|
||||
head: 'b3'
|
||||
# Equal weights children, GHOST chooses b2 because it is higher lexicographically than b1
|
||||
- blocks:
|
||||
- id: 'b0'
|
||||
|
||||
@@ -949,7 +949,6 @@ func ProcessDeposit(beaconState *pb.BeaconState, deposit *ethpb.Deposit, valInde
|
||||
amount := deposit.Data.Amount
|
||||
index, ok := valIndexMap[bytesutil.ToBytes32(pubKey)]
|
||||
if !ok {
|
||||
|
||||
domain := helpers.Domain(beaconState, helpers.CurrentEpoch(beaconState), params.BeaconConfig().DomainDeposit)
|
||||
depositSig := deposit.Data.Signature
|
||||
if err := verifySigningRoot(deposit.Data, pubKey, depositSig, domain); err != nil {
|
||||
|
||||
@@ -400,7 +400,7 @@ func TestWinningCrosslink_CanGetWinningRoot(t *testing.T) {
|
||||
}
|
||||
want := ðpb.Crosslink{StartEpoch: ge, Shard: 1, DataRoot: []byte{'B'}}
|
||||
if !reflect.DeepEqual(winner, want) {
|
||||
t.Errorf("Did not get wanted crosslink, got: %v", winner)
|
||||
t.Errorf("Did not get wanted crosslink, got: %v, want %v", winner, want)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ func createDepositData(privKey *bls.SecretKey, pubKey *bls.PublicKey) (*ethpb.De
|
||||
WithdrawalCredentials: withdrawalCredentialsHash(pubKey.Marshal()),
|
||||
Amount: params.BeaconConfig().MaxEffectiveBalance,
|
||||
}
|
||||
sr, err := ssz.HashTreeRoot(di)
|
||||
sr, err := ssz.SigningRoot(di)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user