remove error return from HistoricalRoots (#15255)

* remove error return from HistoricalRoots

* Radek's review
This commit is contained in:
Potuz
2025-05-07 13:06:30 -03:00
committed by GitHub
parent 0d3b7f0ade
commit c07479b99a
17 changed files with 36 additions and 97 deletions

View File

@@ -336,13 +336,9 @@ func printStates(stateC <-chan *modifiedState, doneC chan<- bool) {
log.Infof("block_roots : size = %s, count = %d", humanize.Bytes(size), count)
size, count = sizeAndCountOfByteList(st.StateRoots())
log.Infof("state_roots : size = %s, count = %d", humanize.Bytes(size), count)
roots, err := st.HistoricalRoots()
if err != nil {
log.WithError(err).Error("could not get historical roots")
} else {
size, count = sizeAndCountOfByteList(roots)
log.Infof("historical_roots : size = %s, count = %d", humanize.Bytes(size), count)
}
roots := st.HistoricalRoots()
size, count = sizeAndCountOfByteList(roots)
log.Infof("historical_roots : size = %s, count = %d", humanize.Bytes(size), count)
log.Infof("eth1_data : sizeSSZ = %s", humanize.Bytes(uint64(st.Eth1Data().SizeSSZ())))
size, count = sizeAndCountGeneric(st.Eth1DataVotes(), nil)
log.Infof("eth1_data_votes : sizeSSZ = %s, count = %d", humanize.Bytes(size), count)