mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 08:37:37 +00:00
fix(pcli): use state trie for HTR duration (#12629)
This commit is contained in:
parent
7e474b7a30
commit
145a485b75
@ -281,8 +281,12 @@ func benchmarkHash(sszPath string, sszType string) {
|
|||||||
}
|
}
|
||||||
deserializeDuration := time.Since(startDeserialize)
|
deserializeDuration := time.Since(startDeserialize)
|
||||||
|
|
||||||
|
stateTrieState, err := state_native.InitializeFromProtoCapella(st)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
root, err := st.HashTreeRoot()
|
root, err := stateTrieState.HashTreeRoot(context.Background())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("couldn't hash")
|
log.Fatal("couldn't hash")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user