insert state trie print function at writeBlockWithState function

This commit is contained in:
jmlee 2019-07-18 15:09:36 +09:00
parent 69fa644bd1
commit 10a53aad97

View file

@ -1279,6 +1279,7 @@ func (bc *BlockChain) writeBlockWithState(block *types.Block, receipts []*types.
return NonStatTy, err return NonStatTy, err
} }
triedb := bc.stateCache.TrieDB() triedb := bc.stateCache.TrieDB()
state.Print() // print state trie (jmlee)
// If we're running an archive node, always flush // If we're running an archive node, always flush
if bc.cacheConfig.TrieDirtyDisabled { if bc.cacheConfig.TrieDirtyDisabled {