add prev_hash to logging

This commit is contained in:
Larry Ruane
2019-06-28 12:22:22 -05:00
parent 0813d73e97
commit 2454b05b52
2 changed files with 11 additions and 0 deletions

View File

@@ -217,6 +217,7 @@ func handleBlock(db *sql.DB, block *parser.Block) {
entry := log.WithFields(logrus.Fields{
"block_height": block.GetHeight(),
"block_hash": hex.EncodeToString(block.GetDisplayHash()),
"prev_hash": hex.EncodeToString(block.GetDisplayPrevHash()),
"block_version": block.GetVersion(),
"tx_count": block.GetTxCount(),
"sapling": block.HasSaplingTransactions(),