mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 11:57:18 +00:00
Use Custom Block Hashing Method (#6501)
* blockroot * gaz * Merge refs/heads/master into useCustomMethod * Merge refs/heads/master into useCustomMethod * Merge refs/heads/master into useCustomMethod * Merge refs/heads/master into useCustomMethod * Merge refs/heads/master into useCustomMethod * Merge refs/heads/master into useCustomMethod * Merge refs/heads/master into useCustomMethod * Merge refs/heads/master into useCustomMethod
This commit is contained in:
parent
d42d685f78
commit
074e3c9aa7
@ -31,7 +31,6 @@ go_library(
|
||||
"//shared/params:go_default_library",
|
||||
"@com_github_pkg_errors//:go_default_library",
|
||||
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
||||
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
|
||||
"@com_github_sirupsen_logrus//:go_default_library",
|
||||
"@io_k8s_client_go//tools/cache:go_default_library",
|
||||
"@io_opencensus_go//trace:go_default_library",
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
|
||||
"github.com/prysmaticlabs/go-ssz"
|
||||
stateTrie "github.com/prysmaticlabs/prysm/beacon-chain/state"
|
||||
"github.com/prysmaticlabs/prysm/beacon-chain/state/stateutil"
|
||||
"github.com/prysmaticlabs/prysm/shared/bytesutil"
|
||||
"github.com/sirupsen/logrus"
|
||||
"go.opencensus.io/trace"
|
||||
@ -61,7 +61,7 @@ func (s *State) MigrateToCold(ctx context.Context, fSlot uint64, fRoot [32]byte)
|
||||
if len(blks) != 1 {
|
||||
return errUnknownBlock
|
||||
}
|
||||
missingRoot, err := ssz.HashTreeRoot(blks[0].Block)
|
||||
missingRoot, err := stateutil.BlockRoot(blks[0].Block)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user