fix appHash log. closes #1207

This commit is contained in:
Ethan Buchman 2018-02-19 15:32:09 -05:00
parent 0e68638af3
commit f4feb7703b

View File

@ -142,7 +142,10 @@ func (blockExec *BlockExecutor) Commit(block *types.Block) ([]byte, error) {
}
// ResponseCommit has no error code - just data
blockExec.logger.Info("Committed state", "height", block.Height, "txs", block.NumTxs, "appHash", res.Data)
blockExec.logger.Info("Committed state",
"height", block.Height,
"txs", block.NumTxs,
"appHash", fmt.Sprintf("%X", res.Data))
// Update mempool.
if err := blockExec.mempool.Update(block.Height, block.Txs); err != nil {