ingest: Log block and transaction hashes in display order
We should also be consistent in the SQLite database about either storing as TEXT in display order, or storing as BLOB in wire order. But as that's another breaking change, let's bundle it in with anything else we need to do to address this problem.
This commit is contained in:
parent
722118ade9
commit
c4a48902db
|
@ -201,7 +201,7 @@ func handleBlock(db *sql.DB, sequence int, blockData []byte) {
|
||||||
entry := log.WithFields(logrus.Fields{
|
entry := log.WithFields(logrus.Fields{
|
||||||
"seqnum": sequence,
|
"seqnum": sequence,
|
||||||
"block_height": block.GetHeight(),
|
"block_height": block.GetHeight(),
|
||||||
"block_hash": blockHash,
|
"block_hash": hex.EncodeToString(block.GetDisplayHash()),
|
||||||
"block_version": block.GetVersion(),
|
"block_version": block.GetVersion(),
|
||||||
"tx_count": block.GetTxCount(),
|
"tx_count": block.GetTxCount(),
|
||||||
"sapling": block.HasSaplingTransactions(),
|
"sapling": block.HasSaplingTransactions(),
|
||||||
|
@ -226,7 +226,7 @@ func handleBlock(db *sql.DB, sequence int, blockData []byte) {
|
||||||
)
|
)
|
||||||
entry = log.WithFields(logrus.Fields{
|
entry = log.WithFields(logrus.Fields{
|
||||||
"block_height": block.GetHeight(),
|
"block_height": block.GetHeight(),
|
||||||
"block_hash": blockHash,
|
"block_hash": hex.EncodeToString(block.GetDisplayHash()),
|
||||||
"tx_index": index,
|
"tx_index": index,
|
||||||
"tx_size": len(tx.Bytes()),
|
"tx_size": len(tx.Bytes()),
|
||||||
"sapling": tx.HasSaplingTransactions(),
|
"sapling": tx.HasSaplingTransactions(),
|
||||||
|
|
Loading…
Reference in New Issue