mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 20:37:17 +00:00
Use SSZ HTR as baseline (#6207)
* Use ssz htr as baseline to compare * Merge branch 'master' into fix-test * One more. Fix for TestBlockBodyRoot_NilIsSameAsEmpty * Merge branch 'fix-test' of github.com:prysmaticlabs/prysm into fix-test
This commit is contained in:
parent
f40a7575de
commit
edeb359ded
@ -4,6 +4,7 @@ import (
|
||||
"testing"
|
||||
|
||||
ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
|
||||
"github.com/prysmaticlabs/go-ssz"
|
||||
"github.com/prysmaticlabs/prysm/beacon-chain/state/stateutil"
|
||||
"github.com/prysmaticlabs/prysm/shared/testutil"
|
||||
)
|
||||
@ -14,7 +15,7 @@ func TestBlockRoot(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
expectedRoot, err := stateutil.BlockRoot(blk.Block)
|
||||
expectedRoot, err := ssz.HashTreeRoot(blk.Block)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@ -29,7 +30,7 @@ func TestBlockRoot(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
expectedRoot, err = stateutil.BlockRoot(blk.Block)
|
||||
expectedRoot, err = ssz.HashTreeRoot(blk.Block)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@ -43,7 +44,7 @@ func TestBlockRoot(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestBlockBodyRoot_NilIsSameAsEmpty(t *testing.T) {
|
||||
a, err := stateutil.BlockBodyRoot(ðpb.BeaconBlockBody{})
|
||||
a, err := ssz.HashTreeRoot(ðpb.BeaconBlockBody{})
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user