From c2a5097686c12b56bf8cc578dce82b5f16edd4d3 Mon Sep 17 00:00:00 2001 From: Ian Norden Date: Wed, 19 Aug 2020 14:34:05 -0500 Subject: [PATCH] log the size of the state object --- pkg/service.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/service.go b/pkg/service.go index fab7b9a..f10a288 100644 --- a/pkg/service.go +++ b/pkg/service.go @@ -135,6 +135,7 @@ func (sds *Service) processStateDiff(currentBlock *types.Block, parentRoot commo if err != nil { return nil, err } + logrus.Infof("state diff object at block %d is %d bytes in length", currentBlock.Number().Uint64(), len(stateDiffRlp)) return sds.newPayload(stateDiffRlp, currentBlock, params) } @@ -190,6 +191,7 @@ func (sds *Service) processStateTrie(block *types.Block, params statediff.Params if err != nil { return nil, err } + logrus.Infof("state trie object at block %d is %d bytes in length", block.Number().Uint64(), len(stateTrieRlp)) return sds.newPayload(stateTrieRlp, block, params) }