Skip to content

Commit acfec4c

Browse files
committed
log the sizes of the state objects we are sending
1 parent 9601149 commit acfec4c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

statediff/service.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ import (
2323
"sync"
2424
"sync/atomic"
2525

26-
"github.com/ethereum/go-ethereum/crypto"
27-
2826
"github.com/ethereum/go-ethereum/common"
2927
"github.com/ethereum/go-ethereum/core"
3028
"github.com/ethereum/go-ethereum/core/types"
29+
"github.com/ethereum/go-ethereum/crypto"
3130
"github.com/ethereum/go-ethereum/event"
3231
"github.com/ethereum/go-ethereum/log"
3332
"github.com/ethereum/go-ethereum/node"
@@ -210,6 +209,7 @@ func (sds *Service) processStateDiff(currentBlock *types.Block, parentRoot commo
210209
if err != nil {
211210
return nil, err
212211
}
212+
log.Info(fmt.Sprintf("state diff object at block %d is %d bytes in length", currentBlock.Number().Uint64(), len(stateDiffRlp)))
213213
return sds.newPayload(stateDiffRlp, currentBlock, params)
214214
}
215215

@@ -255,6 +255,7 @@ func (sds *Service) processStateTrie(block *types.Block, params Params) (*Payloa
255255
if err != nil {
256256
return nil, err
257257
}
258+
log.Info(fmt.Sprintf("state trie object at block %d is %d bytes in length", block.Number().Uint64(), len(stateTrieRlp)))
258259
return sds.newPayload(stateTrieRlp, block, params)
259260
}
260261

0 commit comments

Comments
 (0)