From acfec4c05fa35c08008a2056565517754b531c21 Mon Sep 17 00:00:00 2001 From: Ian Norden Date: Wed, 19 Aug 2020 14:44:11 -0500 Subject: [PATCH] log the sizes of the state objects we are sending --- statediff/service.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/statediff/service.go b/statediff/service.go index 5f37cfc0c..96ad03a48 100644 --- a/statediff/service.go +++ b/statediff/service.go @@ -23,11 +23,10 @@ import ( "sync" "sync/atomic" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/core/types" + "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/node" @@ -210,6 +209,7 @@ func (sds *Service) processStateDiff(currentBlock *types.Block, parentRoot commo if err != nil { return nil, err } + log.Info(fmt.Sprintf("state diff object at block %d is %d bytes in length", currentBlock.Number().Uint64(), len(stateDiffRlp))) return sds.newPayload(stateDiffRlp, currentBlock, params) } @@ -255,6 +255,7 @@ func (sds *Service) processStateTrie(block *types.Block, params Params) (*Payloa if err != nil { return nil, err } + log.Info(fmt.Sprintf("state trie object at block %d is %d bytes in length", block.Number().Uint64(), len(stateTrieRlp))) return sds.newPayload(stateTrieRlp, block, params) }