Remove Txtable

This commit is contained in:
Aditya Kulkarni
2019-09-25 12:17:36 -07:00
parent 3eaabea547
commit b89062cd53
2 changed files with 0 additions and 88 deletions

View File

@@ -265,28 +265,4 @@ func handleBlock(db *sql.DB, block *parser.Block) {
entry.Info("new block")
}
for index, tx := range block.Transactions() {
txHash := hex.EncodeToString(tx.GetEncodableHash())
err = storage.StoreTransaction(
db,
block.GetHeight(),
blockHash,
index,
txHash,
tx.Bytes(),
)
entry = log.WithFields(logrus.Fields{
"block_height": block.GetHeight(),
"block_hash": hex.EncodeToString(block.GetDisplayHash()),
"tx_index": index,
"tx_size": len(tx.Bytes()),
"sapling": tx.HasSaplingTransactions(),
"error": err,
})
if err != nil {
entry.Error("storing tx")
} else {
entry.Debug("storing tx")
}
}
}