mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
remove error return from HistoricalRoots (#15255)
* remove error return from HistoricalRoots * Radek's review
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user