mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +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)
|
||||
|
||||
stateTrieState, err := state_native.InitializeFromProtoCapella(st)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
start := time.Now()
|
||||
root, err := st.HashTreeRoot()
|
||||
root, err := stateTrieState.HashTreeRoot(context.Background())
|
||||
if err != nil {
|
||||
log.Fatal("couldn't hash")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user